Detect CPU count from Shell
Recently I upgraded my CPU to a Dual Core 2 Duo and am now running the x86_64 version of Arch Linux in which the makepkg tool can take advantage of the multiple core CPU and run make using multiple threads (great stuff). This is accomplished through the -jX option of the make utility (where X is the CPU count: 2 in my case). One can see the tremendous benefits of this when, for example, compiling the kernel (for me the compilation time dropped by almost 45%; I checked!). (more…)
Enjoyed this post?, why not subscribe to the RSS feed!