[PATCH 08/09] memcg: show inactive_ratio
- From: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
- Date: Sun, 30 Nov 2008 20:02:25 +0900 (JST)
add inactive_ratio field to memory.stat file.
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
---
mm/memcontrol.c | 3 +++
1 file changed, 3 insertions(+)
Index: b/mm/memcontrol.c
===================================================================
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1784,6 +1784,9 @@ static int mem_control_stat_show(struct
cb->fill(cb, "unevictable", unevictable * PAGE_SIZE);
}
+
+ cb->fill(cb, "inactive_ratio", mem_cont->inactive_ratio);
+
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 00/09] memcg: split-lru feature for memcg
- From: KOSAKI Motohiro
- [PATCH 00/09] memcg: split-lru feature for memcg
- Prev by Date: [PATCH 07/09] memcg: remove mem_cgroup_calc_reclaim()
- Next by Date: [PATCH 09/09] memcg: show reclaim stat
- Previous by thread: [PATCH 07/09] memcg: remove mem_cgroup_calc_reclaim()
- Next by thread: [PATCH 09/09] memcg: show reclaim stat
- Index(es):