RE: [PATCH] mm: Make allocator take care of memoryless numa node

2020-10-19 Thread Tianxianting
; iamjoonsoo@lge.com; a...@linux-foundation.org; linux...@kvack.org; linux-kernel@vger.kernel.org; k...@kernel.org; alexei.starovoi...@gmail.com Subject: Re: [PATCH] mm: Make allocator take care of memoryless numa node On Sun 18-10-20 14:18:37, Tianxianting wrote: > Thanks for the comments

Re: [PATCH] mm: Make allocator take care of memoryless numa node

2020-10-19 Thread Michal Hocko
On Sun 18-10-20 14:18:37, Tianxianting wrote: > Thanks for the comments > I found in current code, there are two places to call > local_memory_node(node) before calling kzalloc_node(), I think we can > remove them? I am not sure which code you are talking about. git grep shows me 2 places in blk-m

RE: [PATCH] mm: Make allocator take care of memoryless numa node

2020-10-18 Thread Tianxianting
) Cc: c...@linux.com; penb...@kernel.org; rient...@google.com; iamjoonsoo@lge.com; a...@linux-foundation.org; linux...@kvack.org; linux-kernel@vger.kernel.org; k...@kernel.org; alexei.starovoi...@gmail.com Subject: Re: [PATCH] mm: Make allocator take care of memoryless numa node On Mon 12-10-20

Re: [PATCH] mm: Make allocator take care of memoryless numa node

2020-10-12 Thread Christopher Lameter
On Mon, 12 Oct 2020, 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. > > In many places of current kernel code, it doesn't judge whether the node is > memoryless numa node before call

Re: [PATCH] mm: Make allocator take care of memoryless numa node

2020-10-12 Thread Michal Hocko
On Mon 12-10-20 16:27:39, 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. Yes, this is normal (unfortunately). > In many places of current kernel code, it doesn't judge whether the n

[PATCH] mm: Make allocator take care of memoryless numa node

2020-10-12 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. In many places of current kernel code, it doesn't judge whether the node is memoryless numa node before calling allocator interface. This patch is to use local