Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline

From: David Rientjes
Date: Wed Dec 05 2018 - 14:00:24 EST


On Wed, 5 Dec 2018, Pingfan Liu wrote:

> > > And rather than using first_online_node, would next_online_node() work?
> > >
> > What is the gain? Is it for memory pressure on node0?
> >
> Maybe I got your point now. Do you try to give a cheap assumption on
> nearest neigh of this node?
>

It's likely better than first_online_node, but probably going to be the
same based on the node ids that you have reported since the nodemask will
simply wrap around back to the first node.