]> granicus.if.org Git - procps-ng/commit
free: reusing 'shared' for Shmem
authorAdrian Brzezinski <adrb@wp.pl>
Tue, 23 Jul 2013 18:33:00 +0000 (20:33 +0200)
committerJaromir Capik <jcapik@redhat.com>
Mon, 9 Sep 2013 14:54:00 +0000 (16:54 +0200)
commit13f20a48119894638a98b9a17a714704c69492d4
treeee4fa61a8c652519c0b4447f508abd798df7a8a5
parent827fc0302ee7df3bb64a437b9e885fdcd64d6979
free: reusing 'shared' for Shmem

Previously the shared memory column was always zero
for 2.6 series kernels (and later) due to the fact,
that the value was taken from the MemShared entry
that disappeared with 2.6 series kernels.
Later a new Shmem entry appeared in the /proc/meminfo
file and the 'shared' column now displays either
the MemShared or the Shmem value (depending on their
presence - the presence is mutually exclusive).
If none of the two entries is exported by the kernel,
then the column is zero.
free.1
proc/sysinfo.c