CORE NUMBER AND CPU NUMBER FOR Linux


/*CORE*/

[oracle@bakudcsprddb ~]$ cat /proc/cpuinfo | grep "core id" | sort -u | wc -l 


For example:


[oracle@bakudcsprddb ~]$ uname -a
Linux bakudcsprddb.azdmz.local 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
[oracle@bakudcsprddb ~]$ 
[oracle@bakudcsprddb ~]$ cat /proc/cpuinfo | grep "core id" | sort -u | wc -l 
2
[oracle@bakudcsprddb ~]$

/*CPU*/

[oracle@bakudcsprddb ~]$ cat /proc/cpuinfo | grep "physical id" | sort -u | wc -l

For example:


[oracle@bakudcsprddb ~]$ 
[oracle@bakudcsprddb ~]$ uname -a
Linux bakudcsprddb.azdmz.local 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
[oracle@bakudcsprddb ~]$ 
[oracle@bakudcsprddb ~]$ cat /proc/cpuinfo | grep "physical id" | sort -u | wc -l
1
[oracle@bakudcsprddb ~]$
Advertisements

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: