Re: [PATCH 07/14] vrange: Purge volatile pages when memory is tight

2013-10-08 Thread John Stultz
On 10/07/2013 08:27 PM, Zhan Jianyu wrote: > On Thu, Oct 3, 2013 at 8:51 AM, John Stultz wrote: >> static inline int page_referenced(struct page *page, int is_locked, >> struct mem_cgroup *memcg, >> - unsigned long *vm_flags) >> +

Re: [PATCH 07/14] vrange: Purge volatile pages when memory is tight

2013-10-07 Thread Zhan Jianyu
On Thu, Oct 3, 2013 at 8:51 AM, John Stultz wrote: > static inline int page_referenced(struct page *page, int is_locked, > struct mem_cgroup *memcg, > - unsigned long *vm_flags) > + unsigned long *vm

[PATCH 07/14] vrange: Purge volatile pages when memory is tight

2013-10-02 Thread John Stultz
From: Minchan Kim This patch adds purging logic of volatile pages into direct reclaim path so that if vrange pages is selected as victim by VM, they could be discarded rather than swapping out. Direct purging doesn't consider volatile page's age because it would be better to free the page rather