[RFC] NUMA aware kthread_create() ?
From: Eric Dumazet
Date: Fri Dec 02 2005 - 05:35:57 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/