Re: [PATCH RFC 3/4] mm: move lazy free pages to inactive list

2015-02-25 Thread Michal Hocko
On Wed 25-02-15 09:27:28, Minchan Kim wrote: > On Tue, Feb 24, 2015 at 05:14:08PM +0100, Michal Hocko wrote: > > On Tue 24-02-15 17:18:16, Minchan Kim wrote: > > > MADV_FREE is hint that it's okay to discard pages if memory is > > > pressure and we uses reclaimers(ie, kswapd and direct reclaim) >

Re: [PATCH RFC 3/4] mm: move lazy free pages to inactive list

2015-02-25 Thread Michal Hocko
On Wed 25-02-15 09:27:28, Minchan Kim wrote: On Tue, Feb 24, 2015 at 05:14:08PM +0100, Michal Hocko wrote: On Tue 24-02-15 17:18:16, Minchan Kim wrote: MADV_FREE is hint that it's okay to discard pages if memory is pressure and we uses reclaimers(ie, kswapd and direct reclaim) s@if

Re: [PATCH RFC 3/4] mm: move lazy free pages to inactive list

2015-02-24 Thread Minchan Kim
On Tue, Feb 24, 2015 at 05:14:08PM +0100, Michal Hocko wrote: > On Tue 24-02-15 17:18:16, Minchan Kim wrote: > > MADV_FREE is hint that it's okay to discard pages if memory is > > pressure and we uses reclaimers(ie, kswapd and direct reclaim) > > s@if memory is pressure@if there is memory

Re: [PATCH RFC 3/4] mm: move lazy free pages to inactive list

2015-02-24 Thread Michal Hocko
On Tue 24-02-15 17:18:16, Minchan Kim wrote: > MADV_FREE is hint that it's okay to discard pages if memory is > pressure and we uses reclaimers(ie, kswapd and direct reclaim) s@if memory is pressure@if there is memory pressure@ > to free them so there is no worth to remain them in active >

[PATCH RFC 3/4] mm: move lazy free pages to inactive list

2015-02-24 Thread Minchan Kim
MADV_FREE is hint that it's okay to discard pages if memory is pressure and we uses reclaimers(ie, kswapd and direct reclaim) to free them so there is no worth to remain them in active anonymous LRU list so this patch moves them to inactive LRU list. A arguable issue for the approach is whether

[PATCH RFC 3/4] mm: move lazy free pages to inactive list

2015-02-24 Thread Minchan Kim
MADV_FREE is hint that it's okay to discard pages if memory is pressure and we uses reclaimers(ie, kswapd and direct reclaim) to free them so there is no worth to remain them in active anonymous LRU list so this patch moves them to inactive LRU list. A arguable issue for the approach is whether

Re: [PATCH RFC 3/4] mm: move lazy free pages to inactive list

2015-02-24 Thread Michal Hocko
On Tue 24-02-15 17:18:16, Minchan Kim wrote: MADV_FREE is hint that it's okay to discard pages if memory is pressure and we uses reclaimers(ie, kswapd and direct reclaim) s@if memory is pressure@if there is memory pressure@ to free them so there is no worth to remain them in active anonymous

Re: [PATCH RFC 3/4] mm: move lazy free pages to inactive list

2015-02-24 Thread Minchan Kim
On Tue, Feb 24, 2015 at 05:14:08PM +0100, Michal Hocko wrote: On Tue 24-02-15 17:18:16, Minchan Kim wrote: MADV_FREE is hint that it's okay to discard pages if memory is pressure and we uses reclaimers(ie, kswapd and direct reclaim) s@if memory is pressure@if there is memory pressure@