Package: linux-image-2.6.32-5-vserver-amd64
Version: 2.6.32-41
In a vserver based virtual machine /proc/meminfo shows incorrect values
of Buffers memory:
root@node2:~# uname -a
Linux node2 2.6.32-5-vserver-amd64 #1 SMP Mon Jan 16 19:31:31 UTC 2012
x86_64 GNU/Linux
root@node2:~# vserver vm enter
root@vm:/# cat /proc/meminfo |grep Buffers
Buffers: 80040 kB
root@vm:/#
And as a result 'free' command invoked in this virtual machine gives
very strange values:
vm # free
root@vm:/# free -k
total used free shared
buffers cached
Mem: 4000000 7868 3992132 0 79896 0
-/+ buffers/cache: 18014398509409956 4072028
Swap: 0 0 0
root@vm:/#
In this output the amount of used memory - buffers/cache is bigger than
I'm able to install in a physicall host:)
Here is a patch to resolve this problem -
http://comments.gmane.org/gmane.linux.vserver/17878
I applied this patch to 2.6.32-5-vserver kernel sources, compiled the
kernel, and now Buffers value of /proc/meminfo
is 0:
root@vm:/# free -k
total used free shared buffers cached
Mem: 4000000 5724 3994276 0 0 0
-/+ buffers/cache: 5724 3994276
Swap: 0 0 0
root@vm:/# cat /proc/meminfo |grep Buffers
Buffers: 0 kB
root@vm:/#
----
Stanislav Kholmanskikh
kholmansk...@ertelecom.ru
--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f6b47df.90...@ertelecom.ru