in reply to Avoiding Out of Memory Problem

Most people told me that there is nothing I can do for releasing memory (eg C) due to OS.

Perl can re-use memory from free()d structures even if they don't get released to the OS, and on some systems (linux for instance) undef $var releases most of the memory back to the OS in certain circumstances.

Not that that will help you if you allocate more than the available memory in the first place.