![]() | |||||||||||||
Messages in this thread |
> The second part of the patch extends the pooling NUMA scheduler to > have node affine tasks: > - Each process has a homenode assigned to it at creation time > (initial load balancing). Memory will be allocated from this node. Hmmm ... I was wondering how you achieved that without modifying alloc_pages ... until I saw this bit. #ifdef CONFIG_NUMA +#ifdef CONFIG_NUMA_SCHED +#define numa_node_id() (current->node) +#else #define numa_node_id() _cpu_to_node(smp_processor_id()) +#endif #endif /* CONFIG_NUMA */ I'm not convinced it's a good idea to modify this generic function, which was meant to tell you what node you're running on. I can't see it being used anywhere else right now, but wouldn't it be better to just modify alloc_pages instead to use current->node, and leave this macro as intended? Or make a process_node_id or something? Anyway, I'm giving your code a quick spin ... will give you some results later ;-) M. - 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-03-22 12:29 [W:0.228 / U:0.070 seconds] ©2003-2008 Jasper Spaans | |||||||||||||