ABOUT nproc print the number of processing units available TYPICAL COMMANDLINE SESSION [bash] $nproc 2 $nproc –ignore=1 1 $grep -c ^processor /proc/cpuinfo 2 $cat /proc/cpuinfo | awk ‘/^processor/{print $3=$3+1}’ | tail -1 2 $cat /proc/cpuinfo | awk ‘/^processor/{print $3}’ 0 1 $lscpu | grep CPU CPU op-mode(s): 32-bit, 64-bit CPU(s): 2 On-line CPU(s) list: 0,1 …
Tag Archives: nproc
number of processing units.
$nproc 1 $nproc –all 1 $ nproc Print the number of processing units available to the current process, which may be less than the number of online processors