Hi, I'm coming back on this, as servers with more and more ram appears, the free command show very false values.
With 32Gb of ram, just after reboot I have 280MB of ram used (on -/+ buffer/cache line :used) just after the end of "updatedb", I can see more than 3GB of ram used (YES 3GB of RAM on the second line : -/+ buffer/cache used) How can we correct this ? Nicolas 2010/1/24 Nico <[email protected]>: > Hi, > > Ok, so I did the work myself for those who are interested : > > before : > > > total used free shared buffers cached > Mem: 33088172 9587560 23500612 0 921836 6832320 > -/+ buffers/cache: 1833404 31254768 > Swap: 33554424 0 33554424 > > after : > > total used free shared buffers > cached slab > Mem: 33088172 9587684 23500488 0 921832 > 6832320 1660240 > -/+ buffers/cache/slab: 173292 32914880 > Swap: 33554424 0 33554424 > > this is more realistic, this server have nothing launched but sshd, > syslog, getty etc .. > > Regards. > > Nicolas > > 2010/1/18 Craig Small <[email protected]>: >> tags 565518 upstream >> thankyou >> On Sun, Jan 17, 2010 at 11:28:19PM +0100, Nico wrote: >>> slab cache usage (after the find/updatedb with a scan of all the >>> filesystem). This kind of memory usage >>> does not reflect user point of view, >>> because as soon as a program request memory, slab cache is reduced and >>> this memory can be used for userspace programs. >> There is a lot of that going on, which is why its difficult to know in >> Linux what your "real" memory usage is. >> >>> Yes ! exact, that's what I am saying. >>> You can monitor slab usage in /proc/meminfo or with the "slabtop" >>> command, but "free" does not take into account >>> the slab cache. >> That would be due to the fact the kernel figures don't either. >> >>> I don't know what to do, the user point of view (me and others, for >>> instance https://bugs.launchpad.net/ubuntu/+source/procps/+bug/126329 >>> ) is the free command doesnt reflect any more the >>> memory used by programs, I cannot say if the answer is changing the >>> kernel /proc interface or modifing userland "free" >> We definitely will not be modifying the Debian version alone, as this >> will mean you get different answers depending on the distribution. >> >> - Craig >> >> -- >> Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 >> http://www.enc.com.au/ csmall at : enc.com.au >> http://www.debian.org/ Debian GNU/Linux, software should be Free >> -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

