Re: [PATCH 3/3] mm, page_allocator: Only use per-cpu allocator for irq-safe requests

2017-01-13 Thread Mel Gorman
On Thu, Jan 12, 2017 at 06:02:38PM +0100, Vlastimil Babka wrote: > > Signed-off-by: Mel Gorman > > Acked-by: Hillf Danton > > Acked-by: Jesper Dangaard Brouer > > Very promising! But I have some worries. Should we put something like > VM_BUG_ON(in_interrupt()) into free_hot_cold_page() and rmqu

Re: [PATCH 3/3] mm, page_allocator: Only use per-cpu allocator for irq-safe requests

2017-01-12 Thread Vlastimil Babka
On 01/12/2017 11:43 AM, Mel Gorman wrote: Many workloads that allocate pages are not handling an interrupt at a time. As allocation requests may be from IRQ context, it's necessary to disable/enable IRQs for every page allocation. This cost is the bulk of the free path but also a significant perc