Re: [PATCH v2 2/5] mm, compaction: introduce kcompactd

2016-03-02 Thread Vlastimil Babka
>> +if (zone_watermark_ok(zone, cc.order, low_wmark_pages(zone), >> +cc.classzone_idx, 0)) { >> +success = true; >> +compaction_defer_reset(zone, cc.order, false); >> +} else if (cc.mode !=

Re: [PATCH v2 2/5] mm, compaction: introduce kcompactd

2016-03-02 Thread Vlastimil Babka
>> +if (zone_watermark_ok(zone, cc.order, low_wmark_pages(zone), >> +cc.classzone_idx, 0)) { >> +success = true; >> +compaction_defer_reset(zone, cc.order, false); >> +} else if (cc.mode !=

Re: [PATCH v2 2/5] mm, compaction: introduce kcompactd

2016-03-01 Thread Joonsoo Kim
On Mon, Feb 08, 2016 at 02:38:08PM +0100, Vlastimil Babka wrote: > Memory compaction can be currently performed in several contexts: > > - kswapd balancing a zone after a high-order allocation failure > - direct compaction to satisfy a high-order allocation, including THP page > fault attemps >

Re: [PATCH v2 2/5] mm, compaction: introduce kcompactd

2016-03-01 Thread Joonsoo Kim
On Mon, Feb 08, 2016 at 02:38:08PM +0100, Vlastimil Babka wrote: > Memory compaction can be currently performed in several contexts: > > - kswapd balancing a zone after a high-order allocation failure > - direct compaction to satisfy a high-order allocation, including THP page > fault attemps >

[PATCH v2 2/5] mm, compaction: introduce kcompactd

2016-02-08 Thread Vlastimil Babka
Memory compaction can be currently performed in several contexts: - kswapd balancing a zone after a high-order allocation failure - direct compaction to satisfy a high-order allocation, including THP page fault attemps - khugepaged trying to collapse a hugepage - manually from /proc The

[PATCH v2 2/5] mm, compaction: introduce kcompactd

2016-02-08 Thread Vlastimil Babka
Memory compaction can be currently performed in several contexts: - kswapd balancing a zone after a high-order allocation failure - direct compaction to satisfy a high-order allocation, including THP page fault attemps - khugepaged trying to collapse a hugepage - manually from /proc The