Re: [PATCH v3] mm: Allocate shrinker_map on appropriate NUMA node
From: Shakeel Butt
Date: Fri Jan 31 2020 - 12:23:09 EST
On Fri, Jan 31, 2020 at 8:09 AM Kirill Tkhai <ktkhai@xxxxxxxxxxxxx> wrote:
>
> mm: Allocate shrinker_map on appropriate NUMA node
>
> From: Kirill Tkhai <ktkhai@xxxxxxxxxxxxx>
>
> Despite shrinker_map may be touched from any cpu
> (e.g., a bit there may be set by a task running
> everywhere); kswapd is always bound to specific
> node. So, we will allocate shrinker_map from
> related NUMA node to respect its NUMA locality.
> Also, this follows generic way we use for allocation
> memcg's per-node data.
>
> Signed-off-by: Kirill Tkhai <ktkhai@xxxxxxxxxxxxx>
Reviewed-by: Shakeel Butt <shakeelb@xxxxxxxxxx>