lkml.org 
[lkml]   [2005]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[RFC] NUMA aware kthread_create() ?
Hi

Is there any plans about making a kthread_create_on_cpu() version of
kthread_create(), so that memory allocated for thread stack/info is allocated
on the node of the target CPU ?

There is a mention about kthread_create_on_cpu() in a comment in
include/linux/kthread.h, but no implementation.

The current use pattern is

p = kthread_create(ksoftirqd, hcpu, "ksoftirqd/%d", hotcpu);
if (IS_ERR(p)) { error ... }
kthread_bind(p, hotcpu);
So the thread memory is currently allocated on the node of the current cpu, ie
not the target cpu (hotcpu in this example)

Thank you
Eric Dumazet
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-12-02 11:39    [W:0.142 / U:0.536 seconds]
©2003-2014 Jasper Spaans. Advertise on this site