|
|
c7840d |
From a8f5ed65b745f96f5e5af72bace8e7c63b96fd4e Mon Sep 17 00:00:00 2001
|
|
|
c7840d |
From: Sanskriti Sharma <sansharm@redhat.com>
|
|
|
c7840d |
Date: Thu, 13 Sep 2018 10:01:58 -0400
|
|
|
2079c3 |
Subject: [PATCH 7/7] Fix: Add ShmemHugePages and ShmemPmdMapped to
|
|
|
c7840d |
system_meminfo[]
|
|
|
c7840d |
|
|
|
c7840d |
ShmemHugePages and ShmemPmdMapped were recently added to
|
|
|
c7840d |
/sys/devices/system/node/node*/meminfo. Adding entries for them in the
|
|
|
c7840d |
system_meminfo data structure got rid of the error "Token Node not in hash
|
|
|
c7840d |
table."
|
|
|
c7840d |
|
|
|
c7840d |
Signed-off-by: Sanskriti Sharma <sansharm@redhat.com>
|
|
|
c7840d |
Signed-off-by: Pingfan Liu <piliu@redhat.com>
|
|
|
c7840d |
---
|
|
|
c7840d |
numastat.c | 8 +++++---
|
|
|
c7840d |
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
|
c7840d |
|
|
|
c7840d |
diff --git a/numastat.c b/numastat.c
|
|
|
c7840d |
index 92d8496..25874db 100644
|
|
|
c7840d |
--- a/numastat.c
|
|
|
c7840d |
+++ b/numastat.c
|
|
|
c7840d |
@@ -122,9 +122,11 @@ meminfo_t system_meminfo[] = {
|
|
|
c7840d |
{ 27, "SReclaimable", "SReclaimable" },
|
|
|
c7840d |
{ 28, "SUnreclaim", "SUnreclaim" },
|
|
|
c7840d |
{ 29, "AnonHugePages", "AnonHugePages" },
|
|
|
c7840d |
- { 30, "HugePages_Total", "HugePages_Total" },
|
|
|
c7840d |
- { 31, "HugePages_Free", "HugePages_Free" },
|
|
|
c7840d |
- { 32, "HugePages_Surp", "HugePages_Surp" }
|
|
|
c7840d |
+ { 30, "ShmemHugePages", "ShmemHugePages" },
|
|
|
c7840d |
+ { 31, "ShmemPmdMapped", "ShmemPmdMapped" },
|
|
|
c7840d |
+ { 32, "HugePages_Total", "HugePages_Total" },
|
|
|
c7840d |
+ { 33, "HugePages_Free", "HugePages_Free" },
|
|
|
c7840d |
+ { 34, "HugePages_Surp", "HugePages_Surp" }
|
|
|
c7840d |
};
|
|
|
c7840d |
|
|
|
c7840d |
#define SYSTEM_MEMINFO_ROWS (sizeof(system_meminfo) / sizeof(system_meminfo[0]))
|
|
|
c7840d |
--
|
|
|
c7840d |
2.7.4
|
|
|
c7840d |
|