On Thu, Oct 13, 2011 at 1:26 AM, V.Ravikumar
<[email protected]> wrote:
> I've a daemon process and I'm allocating heap memory for big character
> buffers using malloc/free.
> Each can take 5MB.
>
> Though I freed/deleted memory allocated for the buffers, the increased
> memory during the allocation time is not re-claiming back.This I observed
> using top command.

Yes, I think it's glibc - it may keep your memory, with the idea that
you'll request it again soon anyway. I don't know if there's a way to
force it to give the memory back to Linux.

_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to