public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] node meminfo Active & Inactive pages to Kbytes
@ 2008-07-03 14:35 John Blackwood
  2008-07-03 22:42 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: John Blackwood @ 2008-07-03 14:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andi Kleen, Andrew Morton, Todd Allen

Hi Andrew and Andi,

We found a minor bug in the output of
/sys/devices/system/node/node[n]/meminfo
where the Active and Inactive values are in pages instead of Kbytes.

Looks like this occurred back in 2.6.20 when the code was changed
over to use node_page_state().

Thanks.

--- linux.2.6.26-rc8/drivers/base/node.c	2008-07-03 09:26:01.000000000 -0400
+++ new/drivers/base/node.c	2008-07-03 09:25:45.000000000 -0400
@@ -84,8 +84,8 @@ static ssize_t node_read_meminfo(struct
  		       nid, K(i.totalram),
  		       nid, K(i.freeram),
  		       nid, K(i.totalram - i.freeram),
-		       nid, node_page_state(nid, NR_ACTIVE),
-		       nid, node_page_state(nid, NR_INACTIVE),
+		       nid, K(node_page_state(nid, NR_ACTIVE)),
+		       nid, K(node_page_state(nid, NR_INACTIVE)),
  #ifdef CONFIG_HIGHMEM
  		       nid, K(i.totalhigh),
  		       nid, K(i.freehigh),

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-05 15:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-03 14:35 [PATCH] node meminfo Active & Inactive pages to Kbytes John Blackwood
2008-07-03 22:42 ` Andrew Morton
2008-07-05 15:15   ` John Blackwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox