Re: [RFC 08/13] mm, compaction: simplify contended compaction handling

2016-05-16 Thread Vlastimil Babka
On 05/13/2016 03:09 PM, Michal Hocko wrote: >@@ -1564,14 +1564,11 @@ static enum compact_result compact_zone(struct zone *zone, struct compact_contro >trace_mm_compaction_end(start_pfn, cc->migrate_pfn, >cc->free_pfn, end_pfn, sync, ret); > >- if (ret == COMPACT

Re: [RFC 08/13] mm, compaction: simplify contended compaction handling

2016-05-13 Thread Michal Hocko
On Tue 10-05-16 09:35:58, Vlastimil Babka wrote: > Async compaction detects contention either due to failing trylock on > zone->lock > or lru_lock, or by need_resched(). Since 1f9efdef4f3f ("mm, compaction: > khugepaged should not give up due to need_resched()") the code got quite > complicated to

[RFC 08/13] mm, compaction: simplify contended compaction handling

2016-05-10 Thread Vlastimil Babka
Async compaction detects contention either due to failing trylock on zone->lock or lru_lock, or by need_resched(). Since 1f9efdef4f3f ("mm, compaction: khugepaged should not give up due to need_resched()") the code got quite complicated to distinguish these two up to the __alloc_pages_slowpath() le