in reply to perl memory usage

Always remember that an operating system is, by design, extremely “lazy.” In other words:

You see, the odds are good that a process's future behavior will be similar to its recent behavior. Processes that are making use of big buffers (and that are not brilliantly written by their designers...) are likely to be grabbing and releasing those big buffers in a loop. Programs that have been run recently are much more likely to be run again soon, than are any that were not. Files that were used recently are the same way. So, there are plenty of extremely good reasons for the operating system to say, “if it's not actually squeaking, or if the squeaking doesn't matter to anyone else right now, don't bother to grease it.”