diff options
author | Jaromir Capik <jcapik@redhat.com> | 2013-09-09 16:15:54 +0200 |
---|---|---|
committer | Jaromir Capik <jcapik@redhat.com> | 2013-09-09 16:54:00 +0200 |
commit | 827fc0302ee7df3bb64a437b9e885fdcd64d6979 (patch) | |
tree | 5194a87838dcbb042e80969a8166ce146e90f013 | |
parent | 06c19f5ba4e8fcb704936609e8ef7d328ca54a28 (diff) | |
download | procps-ng-827fc0302ee7df3bb64a437b9e885fdcd64d6979.tar.gz |
free: clarification of credits for the Shmem support
An unpleasant thing happened when I comitted the shmem support
for the 'free' tool. We already had a merge request from
Adrian Brzezinski in the queue, doing exactly the same.
As Adrian deserves credits, I'm reverting the change
and re-applying with the next commit in order to make
him a part of the project history.
-rw-r--r-- | free.1 | 7 | ||||
-rw-r--r-- | proc/sysinfo.c | 3 |
2 files changed, 3 insertions, 7 deletions
@@ -11,11 +11,8 @@ free \- Display amount of free and used memory in the system .SH DESCRIPTION .B free displays the total amount of free and used physical and swap memory in the -system, as well as the buffers used by the kernel. -The shared memory column represents either the MemShared value (2.4 series -kernels) or the Shmem value (2.6 series kernels and later) taken from the -/proc/meminfo file. The value is zero if none of the entries is exported -by the kernel. +system, as well as the buffers used by the kernel. The shared memory column +should be ignored; it is obsolete. .SH OPTIONS .TP \fB\-b\fR, \fB\-\-bytes\fR diff --git a/proc/sysinfo.c b/proc/sysinfo.c index fb98c8a..15cdb83 100644 --- a/proc/sysinfo.c +++ b/proc/sysinfo.c @@ -629,14 +629,13 @@ void meminfo(void){ {"LowTotal", &kb_low_total}, {"Mapped", &kb_mapped}, // kB version of vmstat nr_mapped {"MemFree", &kb_main_free}, // important - {"MemShared", &kb_main_shared}, // obsolete since kernel 2.6! (sharing the variable with Shmem replacement) + {"MemShared", &kb_main_shared}, // important, but now gone! {"MemTotal", &kb_main_total}, // important {"NFS_Unstable", &kb_nfs_unstable}, {"PageTables", &kb_pagetables}, // kB version of vmstat nr_page_table_pages {"ReverseMaps", &nr_reversemaps}, // same as vmstat nr_page_table_pages {"SReclaimable", &kb_swap_reclaimable}, // "swap reclaimable" (dentry and inode structures) {"SUnreclaim", &kb_swap_unreclaimable}, - {"Shmem", &kb_main_shared}, // kernel 2.6 and later (sharing the output variable with obsolete MemShared) {"Slab", &kb_slab}, // kB version of vmstat nr_slab {"SwapCached", &kb_swap_cached}, {"SwapFree", &kb_swap_free}, // important |