Re: [PATCH v2] mm/page_alloc: skip setting nodemask when we are in interrupt

From: Pekka Enberg
Date: Mon Jul 06 2020 - 07:50:13 EST


On Mon, Jul 6, 2020 at 5:59 AM Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:
> When we are in the interrupt context, it is irrelevant to the
> current task context. If we use current task's mems_allowed, we
> can fair to alloc pages in the fast path and fall back to slow
> path memory allocation when the current node(which is the current
> task mems_allowed) does not have enough memory to allocate. In
> this case, it slows down the memory allocation speed of interrupt
> context. So we can skip setting the nodemask to allow any node
> to allocate memory, so that fast path allocation can success.
>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

Reviewed-by: Pekka Enberg <penberg@xxxxxxxxxx>