RE: [PATCH] net: Avoid allocing memory on memoryless numa node

2020-10-11 Thread Tianxianting
: Avoid allocing memory on memoryless numa node On Sun, 11 Oct 2020 12:11:40 +0800 Xianting Tian wrote: > In architecture like powerpc, we can have cpus without any local > memory attached to it. In such cases the node does not have real memory. > > Use local_memory_node(), which is g

Re: [PATCH] net: Avoid allocing memory on memoryless numa node

2020-10-11 Thread Jakub Kicinski
On Sun, 11 Oct 2020 12:11:40 +0800 Xianting Tian wrote: > In architecture like powerpc, we can have cpus without any local memory > attached to it. In such cases the node does not have real memory. > > Use local_memory_node(), which is guaranteed to have memory. > local_memory_node is a noop in ot

[PATCH] net: Avoid allocing memory on memoryless numa node

2020-10-10 Thread Xianting Tian
In architecture like powerpc, we can have cpus without any local memory attached to it. In such cases the node does not have real memory. Use local_memory_node(), which is guaranteed to have memory. local_memory_node is a noop in other architectures that does not support memoryless nodes. Signed-