Re: [PATCH 5/8] mm, page_alloc: make THP-specific decisions more generic

2016-07-21 Thread Vlastimil Babka
On 07/20/2016 01:10 AM, David Rientjes wrote: On Mon, 18 Jul 2016, Vlastimil Babka wrote: This means we can further distinguish allocations that are costly order *and* additionally include the __GFP_NORETRY flag. As it happens, GFP_TRANSHUGE allocations do already fall into this category. This

Re: [PATCH 5/8] mm, page_alloc: make THP-specific decisions more generic

2016-07-19 Thread David Rientjes
On Mon, 18 Jul 2016, Vlastimil Babka wrote: > Since THP allocations during page faults can be costly, extra decisions are > employed for them to avoid excessive reclaim and compaction, if the initial > compaction doesn't look promising. The detection has never been perfect as > there is no gfp fla

[PATCH 5/8] mm, page_alloc: make THP-specific decisions more generic

2016-07-18 Thread Vlastimil Babka
Since THP allocations during page faults can be costly, extra decisions are employed for them to avoid excessive reclaim and compaction, if the initial compaction doesn't look promising. The detection has never been perfect as there is no gfp flag specific to THP allocations. At this moment it chec