From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-f175.google.com (mail-qc0-f175.google.com [209.85.216.175]) by kanga.kvack.org (Postfix) with ESMTP id 80B0B6B0031 for ; Fri, 31 Jan 2014 10:14:57 -0500 (EST) Received: by mail-qc0-f175.google.com with SMTP id x13so7106655qcv.20 for ; Fri, 31 Jan 2014 07:14:57 -0800 (PST) Received: from qmta09.emeryville.ca.mail.comcast.net (qmta09.emeryville.ca.mail.comcast.net. [2001:558:fe2d:43:76:96:30:96]) by mx.google.com with ESMTP id f67si7753661qgf.196.2014.01.31.07.14.55 for ; Fri, 31 Jan 2014 07:14:55 -0800 (PST) Date: Fri, 31 Jan 2014 09:14:51 -0600 (CST) From: Christoph Lameter Subject: Re: [PATCH] kthread: ensure locality of task_struct allocations In-Reply-To: <20140130230812.GA874@linux.vnet.ibm.com> Message-ID: References: <20140128183808.GB9315@linux.vnet.ibm.com> <1391062491.28432.68.camel@edumazet-glaptop2.roam.corp.google.com> <20140130230812.GA874@linux.vnet.ibm.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Nishanth Aravamudan Cc: David Rientjes , Eric Dumazet , Eric Dumazet , LKML , Anton Blanchard , Andrew Morton , Tejun Heo , Oleg Nesterov , Jan Kara , Thomas Gleixner , Tetsuo Handa , linux-mm@kvack.org, Wanpeng Li , Joonsoo Kim , Ben Herrenschmidt On Thu, 30 Jan 2014, Nishanth Aravamudan wrote: > In the presence of memoryless nodes, numa_node_id() will return the > current CPU's NUMA node, but that may not be where we expect to allocate > from memory from. Instead, we should rely on the fallback code in the > memory allocator itself, by using NUMA_NO_NODE. Also, when calling > kthread_create_on_node(), use the nearest node with memory to the cpu in > question, rather than the node it is running on. Looks good to me. Reviewed-by: Christoph Lameter -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org