Speed Boost: The Linux Kernel Can Run On Zero CPU Cores

Written by Michael Larabel in Linux Kernel on 2 April 2012 at 10:04 AM EDT. 9 Comments
LINUX KERNEL
A patch emerged out of IBM yesterday so that the Linux kernel can now has optimal SMP efficiency by being able to support running off zero CPU cores.

From Paul E. McKenney's mailing list message, "Although there have been numerous complaints about the complexity of parallel programming (especially over the past 5-10 years), the plain truth is that the incremental complexity of parallel programming over that of sequential programming is not as large as is commonly believed. Despite that you might have heard, the mind-numbing complexity of modern computer systems is not due so much to there being multiple CPUs, but rather to there being any CPUs at all. In short, for the ultimate in computer-system simplicity, the optimal choice is NR_CPUS=0. This commit therefore limits kernel builds to zero CPUs. This change has the beneficial side effect of rendering all kernel bugs harmless. Furthermore, this commit enables additional beneficial changes, for example, the removal of those parts of the kernel that are not needed when there are zero CPUs."

It's only about a 100 line article and covers Alpha, ARM, Blackfin, Hexagon, IA64, M32R, MIPS, MN10300, Parisc, PowerPC, S390, SPARC, TILE, and x86 architectures. The kernel config for the option now mentions zero CPUs will give you "ultimate reliability" and "minimize both memory footprint and bugs" and "Debloating is the way, NR_CPUS to zero today!!!"

Among the kernel developers commenting was AMD's Borislav Petkov who has confirmed this will work with AMD's upcoming CPU having zero CPU cores.

Before getting too worked up... Yes, this was an April Fools' Day kernel joke, unlike the Valve Linux stuff actually going down.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week