This is the 1 cpu/node fix of the NUMA scheduler rewritten for the new cpumask handling. The previous version was a bit too aggressive with cross node balancing so I changed the default timings a bit such that the behavior is very similar to the old one. Here is what the patch does: - Links the frequency of cross-node balances to the number of failed local balance attempts. This simplifies the code by removing the too rigid cross-node balancing dependency of the timer interrupts. - Fixes the 1 CPU/node issue, i.e. eliminates local balance attempts for the nodes which have only one CPU. Can happen on any NUMA platform (playing around with a 2 CPU/node box and have a flaky CPU, so I have sometimes a node with only one CPU), is a major issue on AMD64. - Makes the cross-node balance frequency tunable by the parameter NUMA_FACTOR_BONUS. Its default setting is such that the scheduler behaves like before: cross node balance every 5 local node balances on an idle CPU, every 2 local node balances on a busy CPU. This parameter should be tuned for each platform depending on its NUMA factor. This simple patch is not meant as opposition to Andrew's attempt to NUMAize the whole scheduler. That one will definitely make NUMA coders' lives easier but I fear that it is a bit too complex for 2.6. The attached small incremental change is sufficient to solve the main problem. Besides, the change of the cross-node scheduling is compatible with Andrew's scheduler structure. I really don't like the timer-based cross-node balancing because it is too unflexible (no way to have different balancing intervals for each node) and I'd really like to get back to just one single point of entry for load balancing: the routine load_balance(), no matter whether we balance inside a timer interrupt or while the CPU is going idle. Erich