[mmotm 02/Oct PATCH 2/3] adjust hugepage related field of /proc/meminfo

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KOSAKI Motohiro
Date: Wednesday, October 8, 2008 - 11:42 pm

adjust hugepage related field in /proc/meminfo.
(because vmscan-split-lru-lists-into-anon-file-sets.patch changed
length of other field)


before:

CommitLimit:     6028800 kB
Committed_AS:    8685888 kB
VmallocTotal:   17592177655808 kB
VmallocUsed:       28544 kB
VmallocChunk:   17592177626816 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
HugePages_Surp:      0
Hugepagesize:    262144 kB

after:

CommitLimit:     6028800 kB
Committed_AS:    8685888 kB
VmallocTotal:   17592177655808 kB
VmallocUsed:       28544 kB
VmallocChunk:   17592177626816 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:     262144 kB


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>

---
 mm/hugetlb.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Index: b/mm/hugetlb.c
===================================================================
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1459,11 +1459,11 @@ int hugetlb_report_meminfo(char *buf)
 {
 	struct hstate *h = &default_hstate;
 	return sprintf(buf,
-			"HugePages_Total: %5lu\n"
-			"HugePages_Free:  %5lu\n"
-			"HugePages_Rsvd:  %5lu\n"
-			"HugePages_Surp:  %5lu\n"
-			"Hugepagesize:    %5lu kB\n",
+			"HugePages_Total:   %5lu\n"
+			"HugePages_Free:    %5lu\n"
+			"HugePages_Rsvd:    %5lu\n"
+			"HugePages_Surp:    %5lu\n"
+			"Hugepagesize:   %8lu kB\n",
 			h->nr_huge_pages,
 			h->free_huge_pages,
 			h->resv_huge_pages,


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[mmotm 02/Oct PATCH 2/3] adjust hugepage related field of ..., KOSAKI Motohiro, (Wed Oct 8, 11:42 pm)
[mmotm 02/Oct PATCH 3/3] fix style issue of get_scan_ratio(), KOSAKI Motohiro, (Wed Oct 8, 11:43 pm)