[Crash-utility] [RFC PATCH 0/2] crash: Show memory overcommit data in dump_kmeminfo()

Aaron Tomlin atomlin at redhat.com
Fri Nov 21 12:13:16 UTC 2014


Hi,


The first patch changes dump_kmeminfo() to report overcommit information
similar to that displayed under the proc/meminfo file. It may be useful to
indicate memory over commitment abuse, for example with forced vmcores from
system hangs due to shortage of memory. The intended output is as follows:

  crash> kmem -i
		   PAGES        TOTAL      PERCENTAGE
      TOTAL MEM  1965332       7.5 GB         ----
	   FREE    78080       305 MB    3% of TOTAL MEM
	   USED  1887252       7.2 GB   96% of TOTAL MEM
	 SHARED   789954         3 GB   40% of TOTAL MEM
	BUFFERS   110606     432.1 MB    5% of TOTAL MEM
	 CACHED  1212645       4.6 GB   61% of TOTAL MEM
	   SLAB   146563     572.5 MB    7% of TOTAL MEM

     TOTAL SWAP  1970175       7.5 GB         ----
      SWAP USED        5        20 KB    0% of TOTAL SWAP
      SWAP FREE  1970170       7.5 GB   99% of TOTAL SWAP

   COMMIT LIMIT  2952841      11.3 GB         ----
      COMMITTED  1150595       4.4 GB   38% of TOTAL LIMIT

The second patch simply removes dump_zone_page_usage().

Tested under 3.16.4-200.fc20.x86_64 only.
Though this should work under RHEL5 (2.6.18) and above.

Aaron Tomlin (2):
  crash: Show memory overcommit data in dump_kmeminfo()
  crash: kill dump_zone_page_usage()

 help.c   |  40 +++++------
 memory.c | 229 ++++++++++++++++++++++++++++++++-------------------------------
 2 files changed, 134 insertions(+), 135 deletions(-)

-- 
1.9.3




More information about the Crash-utility mailing list