memory reported under linux higher that allocated?

Benoit Tremblay trembb22 at hotmail.com
Thu Feb 14 20:39:14 UTC 2008


Hi, I have 4 gig of RAM and when I allocate 3 gig the <top> utilities show that my application is using 87% of the available RAM, so it's a half a gig more, why? The application is not doing any disk access. 
 
I just do a couple of malloc and the same amount of free at exit. I count all malloc by incrementing a "m" variable and I decrement the same "m" variable when doing free and at the program exit I display the value of "m" and it is zero. I stop doing malloc when my "m" variable reach 3 gigabytes so I am sure I allocate only 3 gigabytes so why my application is using 87% of all available RAM? Benoit
_________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20080214/70621f1c/attachment-0001.html 


More information about the users mailing list