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

2020-10-11 Thread Tianxianting
Dangaard Brouer ; John Fastabend ; Martin KaFai Lau ; Song Liu ; Yonghong Song ; Andrii Nakryiko ; KP Singh ; Network Development ; bpf ; LKML Subject: Re: [PATCH] bpf: Avoid allocing memory on memoryless numa node On Sat, Oct 10, 2020 at 1:55 AM Xianting Tian wrote: > > In architectur

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

2020-10-11 Thread Alexei Starovoitov
On Sat, Oct 10, 2020 at 1:55 AM 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

[PATCH] bpf: 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.