Re: [PATCH RFC 4/4] mm: support MADV_FREE in swapless system

2015-02-24 Thread Minchan Kim
On Tue, Feb 24, 2015 at 05:51:46PM +0100, Michal Hocko wrote: > On Tue 24-02-15 17:18:17, Minchan Kim wrote: > > Historically, we have disabled reclaiming completely with swapoff > > or non-swap configurable system. It did make sense but problem > > for lazy free pages is that we couldn't get a cha

Re: [PATCH RFC 4/4] mm: support MADV_FREE in swapless system

2015-02-24 Thread Michal Hocko
On Tue 24-02-15 17:18:17, Minchan Kim wrote: > Historically, we have disabled reclaiming completely with swapoff > or non-swap configurable system. It did make sense but problem > for lazy free pages is that we couldn't get a chance to discard > hinted pages in reclaim path in those systems. > > T

[PATCH RFC 4/4] mm: support MADV_FREE in swapless system

2015-02-24 Thread Minchan Kim
Historically, we have disabled reclaiming completely with swapoff or non-swap configurable system. It did make sense but problem for lazy free pages is that we couldn't get a chance to discard hinted pages in reclaim path in those systems. That's why current MADV_FREE implmentation drop pages inst