[PATCH 00/09] memcg: split-lru feature for memcg

KOSAKI Motohiro
2008-11-30T10:54:09Z

Recently, SplitLRU patch series dramatically improvement VM reclaim
logic.

it have following improvement.
(1) splite lru per page type
(2) introduce inactive/active anon balancing logic
(3) introduce anon/file balancing logic

Unfortunately, the improvement of memcgroup reclaim is incomplete.
Currently, it only has (1), but doesn't have (2) and (3).

This patch introduce (2) and (3) improvements to memcgroup.
this implementation is straightforward porting from global reclaim.

Therefere
- code is simple.
- memcg reclaim become efficiency as global reclaim.
- the logic is the same as global lru.
then, memcg reclaim debugging become easily.

this patch series has three part

[part 1: inactive-anon vs active-anon balancing improvement]
[01/09] inactive_anon_is_low() move to vmscan.c
[02/09] memcg: make inactive_anon_is_low()

[part 2: anon vs file balancing improvement]
[03/09] introduce zone_reclaim struct
[04/09] memcg: make zone_reclaim_stat
[05/09] make zone_nr_pages() helper function
[06/09] make get_scan_ratio() to memcg awareness
[07/09] memcg: remove mem_cgroup_calc_reclaim()

[part 3: add split-lru related statics field to /cgroup/memory.stat]
[08/09] memcg: show inactive_ratio
[09/09] memcg: show reclaim stat

patch against: mmotm 29 Nov 2008

Thanks!