Re: [patch] mm: refactor inactive_file_is_low() to use get_lru_size()

2013-02-01 Thread Michal Hocko
On Fri 01-02-13 01:11:56, Johannes Weiner wrote: > An inactive file list is considered low when the its active > counter-part is bigger, regardless of whether it is a global zone LRU > list or a memcg zone LRU list. The only difference is in how the LRU > size is assessed. > > get_lru_size()

Re: [patch] mm: refactor inactive_file_is_low() to use get_lru_size()

2013-02-01 Thread Michal Hocko
On Fri 01-02-13 01:11:56, Johannes Weiner wrote: An inactive file list is considered low when the its active counter-part is bigger, regardless of whether it is a global zone LRU list or a memcg zone LRU list. The only difference is in how the LRU size is assessed. get_lru_size() does the

[patch] mm: refactor inactive_file_is_low() to use get_lru_size()

2013-01-31 Thread Johannes Weiner
An inactive file list is considered low when the its active counter-part is bigger, regardless of whether it is a global zone LRU list or a memcg zone LRU list. The only difference is in how the LRU size is assessed. get_lru_size() does the right thing for both global and memcg reclaim

[patch] mm: refactor inactive_file_is_low() to use get_lru_size()

2013-01-31 Thread Johannes Weiner
An inactive file list is considered low when the its active counter-part is bigger, regardless of whether it is a global zone LRU list or a memcg zone LRU list. The only difference is in how the LRU size is assessed. get_lru_size() does the right thing for both global and memcg reclaim