From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by kanga.kvack.org (Postfix) with ESMTP id 6821E6B0035 for ; Thu, 30 Jan 2014 18:31:50 -0500 (EST) Received: by mail-pd0-f182.google.com with SMTP id v10so3644038pde.27 for ; Thu, 30 Jan 2014 15:31:50 -0800 (PST) Received: from mail-pd0-x22e.google.com (mail-pd0-x22e.google.com [2607:f8b0:400e:c02::22e]) by mx.google.com with ESMTPS id l8si8212646pao.152.2014.01.30.15.31.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Jan 2014 15:31:49 -0800 (PST) Received: by mail-pd0-f174.google.com with SMTP id z10so3635903pdj.33 for ; Thu, 30 Jan 2014 15:31:49 -0800 (PST) Date: Thu, 30 Jan 2014 15:31:45 -0800 (PST) From: David Rientjes 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Nishanth Aravamudan Cc: Eric Dumazet , Christoph Lameter , 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. > > Signed-off-by: Nishanth Aravamudan Acked-by: David Rientjes -- 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