]> granicus.if.org Git - procps-ng/commit
free: reusing 'shared' for Shmem
authorJaromir Capik <jcapik@redhat.com>
Wed, 7 Aug 2013 16:21:43 +0000 (18:21 +0200)
committerJaromir Capik <jcapik@redhat.com>
Wed, 7 Aug 2013 16:21:43 +0000 (18:21 +0200)
commit9315d00f01f0aeeb6d00a97a1c8c91c12c5975ae
tree5155c0e0fcfdb8bd27b273e9d2e23b7ddc0a5c1f
parent5f663aee4734ece310e614abd48ba6ea2a81f11e
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