CPU count

Thread Tools Search this Thread
# 2  
Try this:
mpstat |tail +2 |wc -l

or this:
echo $(($(mpstat |wc -l)-1))


Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Topas - CPU count inconsistent across LPARs
seeing weirdness across some LPARs - they all have 2 vCPUs allocated shared. With prtconf they show 2 CPUs, 'lsdev -c processor' concurs, and 'lsattr -El procX' shows that SMT is enabled and there are 2 SMT threads (power5, sorry). Yet running topas on them shows 2 CPUs on some and 4 on...... AIX
finding CPU count - reading sysinfo output
Hello, sysinfo throws out below 3 CPU counts. Can anyone help me understand what each of these means? CPU Count Socketed is 2 CPU Count Physical is 8 CPU Count Virtual is 16 First one seems obvious. However, I wonder how there can be 8 Physical CPUs, if...... Red Hat
Red Hat
CPU Count
Hi, I am observing high load average on RHEL5 server and need to check the number of core processors available on the box to give me a bigger picture on whether or not I should be worried. I have always checked the physical count quite simply..... # grep 'physical id' /proc/cpuinfo |...... Red Hat
Red Hat
topas and mpstat disagree on CPU count
I have a number of LPARs on one P520. All LPARs are running 5.3 and I observe the following: On some LPARs the number of CPUs found do not match between topas and mpstat. Server 1: $ mpstat System configuration: lcpu=4 ent=0.2 mode=Uncapped cpu min maj mpc int cs ics rq ...... AIX
virtualization (VCPU count according to CPU)
We have purchased four intels xeon processors Intel® Xeon® Processor E7530 (12M Cache, 1.86 GHz, 5.86 GT/s Intel® QPI) with SPEC Code(s) SLBRJ As per the specification each cpu has 6 cores therefore we have 24 cores (considering 4 cpus). Now how would i calculate the number of vcpus that can...... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers