in reply to How to return unused memory to OS?

Which OS?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^2: How to return unused memory to OS?
by mihirjha (Novice) on Jan 11, 2008 at 07:34 UTC
    I am running my application on Linux and Solaris

      Linux should already return "large" (greater than 128K) memory blocks back to the OS since (as discussed in Re: Not able to release memory (malloc implementation)) it should already be using glibc 2.x ptmalloc (based on Doug Lea's malloc). My experience with Solaris is that its system malloc never returns memory back to the OS. Do you see any difference in memory behaviour between Linux and Solaris?