CPU count

Tags
beginners

 

 
Thread Tools Search this Thread
# 1  
Old 04-03-2006
CPU count

Is there an easy way in Solaris to count the number of processors?
# 2  
Old 04-03-2006
Try this:
Code:
mpstat |tail +2 |wc -l

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

# 3  
Old 04-03-2006
# psrinfo -v
 

|
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 maraixadm AIX 3 1 Week Ago 04:24 PM
Entitled CPU lesser Than Used CPU !! Thala AIX 11 06-25-2014 03:43 AM
Is it possible to combine multiple CPU to act as a single CPU on the same server? Dissa UNIX for Dummies Questions & Answers 6 03-11-2014 02:36 PM
Compare file1 header count with file2 line count pone2332 Shell Programming and Scripting 4 02-26-2014 03:37 PM
finding CPU count - reading sysinfo output hnhegde Red Hat 2 10-15-2012 08:00 AM
CPU Count Duffs22 Red Hat 10 02-03-2012 10:53 AM
topas and mpstat disagree on CPU count petervg AIX 1 01-11-2012 09:23 AM
virtualization (VCPU count according to CPU) pinga123 UNIX for Dummies Questions & Answers 1 11-10-2010 02:29 PM
Difference between CPU CHIP and CPU ID kumarmani Solaris 3 10-27-2010 09:35 AM
count identical strings print last row and count dcfargo Shell Programming and Scripting 2 07-07-2010 11:36 AM
cpu-shares vs cpu-cap in solaris fugitive Solaris 9 10-08-2009 09:31 AM
Multi CPU Solaris system shows 100% CPU usage. mahive Solaris 4 05-27-2009 04:52 PM
how to get persistant cpu utilization values per process per cpu in linux (! top,ps) pankajd UNIX for Dummies Questions & Answers 3 10-09-2008 12:26 PM
How to down a particular CPU in a server, witch is having 16 CPU's b.janardhanguru Solaris 5 05-21-2008 11:42 AM
How to count the record count in an EBCDIC file. oracle8 UNIX for Dummies Questions & Answers 1 07-26-2006 08:22 PM