Re: 'disposable' dirty pages [was: Out Of Memory in v. 2.1]

Chris Wedgwood (chris@cybernet.co.nz)
Thu, 8 Oct 1998 10:43:49 +1300


On Wed, Oct 07, 1998 at 12:02:06PM -0500, Ely Wilson wrote:

> Hmm, I'm wondering. I haev this application, it allocates 10
> blocks each 1 megs in size. Then I free() 5 of those blocks, but
> the program is still eating 10 megs of memory.
>
> Is this right?

Using the `normal' libc malloc - yes.

There are other mallocs out there which try to return the memory to
the kernel though.

-cw

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/