On Sat, Jan 16, 2010 at 04:41:35PM +0100, Nicolas Parpandet wrote: > The "free" cmd does not show properly used memory, as you can see, > slab is not taken into account, "used / buffer cache" is a useless > information, Hello,
It's a big call to say "not show properly" with anything at all to do with Linux memory management. The problem is that nothing is defined that well. > for instance on this server : > r...@vzb:/etc/apt# free > total used free shared buffers cached > Mem: 33086568 137060 32949508 0 412 5468 > -/+ buffers/cache: 131180 32955388 [...] > Mem: 33086568 2664080 30422488 0 896132 24184 > -/+ buffers/cache: 1743764 31342804 Both of these sets of figures add up. I'm finding it difficult to work out which number you are having a problem with. > I may be necessary to substract slab usage from used col on the +/- buffer > cache row. Are you saying that buffers is not just buffers but buffers plus something else (say slab usage)? If so, you will need to talk to the kernel folk, because it comes directly from the kernel (grep 'Buffers:' /proc/meminfo). free just prints what it gets. - 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 debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org