Re: Heap memory is not re-claiming.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, Oct 13, 2011 at 2:12 PM, Jeff Donner <jeffrey.donner@xxxxxxxxx> wrote:
On Thu, Oct 13, 2011 at 1:26 AM, V.Ravikumar
<ravikumar.vallabhu@xxxxxxxxx> 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.
   If this is the case then memory should not keep on increase albeit how long process may run. right?
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux