linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: + memcg-show-swap-usage-in-stat-file.patch added to -mm tree
       [not found] <200908242004.n7OK4VT8016136@imap1.linux-foundation.org>
@ 2009-09-03 23:58 ` Daisuke Nishimura
  0 siblings, 0 replies; only message in thread
From: Daisuke Nishimura @ 2009-09-03 23:58 UTC (permalink / raw)
  To: akpm; +Cc: nishimura, balbir, kamezawa.hiroyu, linux-mm

This is a bugfix patch for memcg-show-swap-usage-in-stat-file.patch in mmotm.

I'm sorry for bothering you.

===
From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>

The usage of swap should be showed in bytes.

Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
---
 mm/memcontrol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index ae80de0..927e7e6 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2712,7 +2712,7 @@ static int mem_cgroup_get_local_stat(struct mem_cgroup *mem, void *data)
 	s->stat[MCS_PGPGOUT] += val;
 	if (do_swap_account) {
 		val = mem_cgroup_read_stat(&mem->stat, MEM_CGROUP_STAT_SWAPOUT);
-		s->stat[MCS_SWAP] += val;
+		s->stat[MCS_SWAP] += val * PAGE_SIZE;
 	}
 
 	/* per zone stat */

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-04  0:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200908242004.n7OK4VT8016136@imap1.linux-foundation.org>
2009-09-03 23:58 ` + memcg-show-swap-usage-in-stat-file.patch added to -mm tree Daisuke Nishimura

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