[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <486CE3CD.7090907@ccur.com>
Date: Thu, 3 Jul 2008 10:35:57 -0400
From: John Blackwood <john.blackwood@...r.com>
To: <linux-kernel@...r.kernel.org>
CC: Andi Kleen <andi-suse@...stfloor.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Todd Allen <todd.allen@...r.com>
Subject: [PATCH] node meminfo Active & Inactive pages to Kbytes
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),
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists