在NUMA架构CPU上,为了使申请的内存空间对node有亲和性,尽量使得cpu访问本地内存而非远端内存,有利于提供CPU执行效率。
CPU访问不同类型节点内存的速度是不相同的:本地节点>邻居节点>远端节点。访问本地节点的速度最快,访问远端节点的速度最慢,即访问速度与节点的距离有关,距离越远访问速度越慢,此距离称作Node Distance。
http://t.zoukankan.com/zhenjing-p-linux_numa.html
创建线程:
struct task_struct *kthread_create_on_node(int (*threadfn)(void *data),
void *data, int node,
const char namefmt[],
...)
@替代原型:
kthread_create
NUMA 相关文献:
《Local and Remote Memory: Memory in a Linux NUMA System》
http://www.ilinuxkernel.com/files/Local.and.Remote.Memory.Memory.in.a.Linux.NUMA.System.pdf