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

    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
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-12-02 11:39    [W:0.044 / U:4.940 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site