Re: [RFC 11/13] mm, compaction: add the ultimate direct compaction priority

2016-05-18 Thread Vlastimil Babka
On 05/16/2016 09:17 AM, Vlastimil Babka wrote: >Wouldn't it be better to pull the prio check into compaction_deferred >directly? There are more callers and I am not really sure all of them >would behave consistently. I'll check, thanks. Hm so the other callers of compaction_deferred() are in t

Re: [RFC 11/13] mm, compaction: add the ultimate direct compaction priority

2016-05-16 Thread Michal Hocko
On Mon 16-05-16 09:17:11, Vlastimil Babka wrote: > On 05/13/2016 03:38 PM, Michal Hocko wrote: > > On Tue 10-05-16 09:36:01, Vlastimil Babka wrote: [...] > > > such as hugetlbfs allocations, and reduce some corner-case OOM's for > > > non-costly > > > allocations. > > > > My testing has shown tha

Re: [RFC 11/13] mm, compaction: add the ultimate direct compaction priority

2016-05-16 Thread Vlastimil Babka
On 05/13/2016 03:38 PM, Michal Hocko wrote: On Tue 10-05-16 09:36:01, Vlastimil Babka wrote: During reclaim/compaction loop, it's desirable to get a final answer from unsuccessful compaction so we can either fail the allocation or invoke the OOM killer. However, heuristics such as deferred compa

Re: [RFC 11/13] mm, compaction: add the ultimate direct compaction priority

2016-05-13 Thread Michal Hocko
On Tue 10-05-16 09:36:01, Vlastimil Babka wrote: > During reclaim/compaction loop, it's desirable to get a final answer from > unsuccessful compaction so we can either fail the allocation or invoke the OOM > killer. However, heuristics such as deferred compaction or pageblock skip bits > can cause

[RFC 11/13] mm, compaction: add the ultimate direct compaction priority

2016-05-10 Thread Vlastimil Babka
During reclaim/compaction loop, it's desirable to get a final answer from unsuccessful compaction so we can either fail the allocation or invoke the OOM killer. However, heuristics such as deferred compaction or pageblock skip bits can cause compaction to skip parts or whole zones and lead to prema