Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-12 Thread Michal Hocko
On Wed 11-01-17 08:35:27, Vlastimil Babka wrote: > [+CC linux-api] > > On 01/11/2017 01:15 AM, David Rientjes wrote: > > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > > to do direct compaction and reclaim while all other thp allocations simply > > trigger kswapd

Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-12 Thread Michal Hocko
On Wed 11-01-17 08:35:27, Vlastimil Babka wrote: > [+CC linux-api] > > On 01/11/2017 01:15 AM, David Rientjes wrote: > > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > > to do direct compaction and reclaim while all other thp allocations simply > > trigger kswapd

Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-11 Thread Andrew Morton
On Tue, 10 Jan 2017 16:15:27 -0800 (PST) David Rientjes wrote: > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > to do direct compaction and reclaim while all other thp allocations simply > trigger kswapd and kcompactd in the background and

Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-11 Thread Andrew Morton
On Tue, 10 Jan 2017 16:15:27 -0800 (PST) David Rientjes wrote: > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > to do direct compaction and reclaim while all other thp allocations simply > trigger kswapd and kcompactd in the background and fail immediately. > >

Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-11 Thread Mel Gorman
On Tue, Jan 10, 2017 at 04:15:27PM -0800, David Rientjes wrote: > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > to do direct compaction and reclaim while all other thp allocations simply > trigger kswapd and kcompactd in the background and fail immediately. > > The

Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-11 Thread Mel Gorman
On Tue, Jan 10, 2017 at 04:15:27PM -0800, David Rientjes wrote: > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > to do direct compaction and reclaim while all other thp allocations simply > trigger kswapd and kcompactd in the background and fail immediately. > > The

Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-10 Thread Vlastimil Babka
[+CC linux-api] On 01/11/2017 01:15 AM, David Rientjes wrote: > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > to do direct compaction and reclaim while all other thp allocations simply > trigger kswapd and kcompactd in the background and fail immediately. > > The

Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-10 Thread Vlastimil Babka
[+CC linux-api] On 01/11/2017 01:15 AM, David Rientjes wrote: > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > to do direct compaction and reclaim while all other thp allocations simply > trigger kswapd and kcompactd in the background and fail immediately. > > The

[patch v2] mm, thp: add new defer+madvise defrag option

2017-01-10 Thread David Rientjes
There is no thp defrag option that currently allows MADV_HUGEPAGE regions to do direct compaction and reclaim while all other thp allocations simply trigger kswapd and kcompactd in the background and fail immediately. The "defer" setting simply triggers background reclaim and compaction for

[patch v2] mm, thp: add new defer+madvise defrag option

2017-01-10 Thread David Rientjes
There is no thp defrag option that currently allows MADV_HUGEPAGE regions to do direct compaction and reclaim while all other thp allocations simply trigger kswapd and kcompactd in the background and fail immediately. The "defer" setting simply triggers background reclaim and compaction for