Core number and CPU number for SunOS


/*Core*/

bash-3.2$ kstat cpu_info | grep core_id | sort -u | wc -l 

For example:

bash-3.2$ uname -a
SunOS azdb1 5.10 Generic_147440-09 sun4u sparc SUNW,SPARC-Enterprise
bash-3.2$ 
bash-3.2$ kstat cpu_info | grep core_id | sort -u | wc -l 
 8

/*CPU*/

bash-3.2$ /usr/sbin/psrinfo -p 

For example


bash-3.2$ uname -a
SunOS azdb1 5.10 Generic_147440-09 sun4u sparc SUNW,SPARC-Enterprise
bash-3.2$ 
bash-3.2$ /usr/sbin/psrinfo -p 
2
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: