mm: NUMA aware alloc_task_struct_node()
All kthreads being created from a single helper task, they all use memory from a single node for their kernel stack and task struct. This patch suite creates kthread_create_on_cpu(), adding a 'cpu' parameter to parameters already used by kthread_create(). This parameter serves in allocating memory for the new kthread on its memory node if available. Users of this new function are : ksoftirqd, kworker, migration, pktgend... This patch: Add a node parameter to alloc_task_struct(), and change its name to alloc_task_struct_node() This change is needed to allow NUMA aware kthread_create_on_cpu() Signed-off-by:Eric Dumazet <eric.dumazet@gmail.com> Acked-by:
David S. Miller <davem@davemloft.net> Reviewed-by:
Andi Kleen <ak@linux.intel.com> Acked-by:
Rusty Russell <rusty@rustcorp.com.au> Cc: Tejun Heo <tj@kernel.org> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: David Howells <dhowells@redhat.com> Cc: <linux-arch@vger.kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/frv/include/asm/processor.h 1 addition, 1 deletionarch/frv/include/asm/processor.h
- arch/frv/kernel/process.c 3 additions, 2 deletionsarch/frv/kernel/process.c
- arch/ia64/include/asm/thread_info.h 8 additions, 1 deletionarch/ia64/include/asm/thread_info.h
- arch/um/include/asm/processor-generic.h 1 addition, 1 deletionarch/um/include/asm/processor-generic.h
- kernel/fork.c 6 additions, 4 deletionskernel/fork.c
Please register or sign in to comment