How to count number of physical and virtual processors on Solaris machine.?


 
Thread Tools Search this Thread
Operating Systems Solaris How to count number of physical and virtual processors on Solaris machine.?
# 1  
Old 11-11-2013
How to count number of physical and virtual processors on Solaris machine.?

hi,
I am using command
Code:
psrinfo -p

to check the number of physical processors present on any soalris machine.I want to check the number of virtual processors assigned for particular solaris machine.

which command/set of command need to be used which can grep or show the total virtual processors of solaris machine.
# 2  
Old 11-11-2013
Just omit "-p":
Code:
psrinfo

# 3  
Old 11-11-2013
thanks ... can you show or describe me what will be the output of
Code:
psrinfo

in case there are more than 1 virtual processors.

for eg : in case there are 2 virtual processors then whether the output of psrinfo will be as shown below or something different
bash-3.2# psrinfo
2 on-line since 09/23/2013 14:50:59
# 4  
Old 11-11-2013
There should be one line of output per virtual processor, so if you had two virtual CPUs, you should see two lines of output. If you are receiving only a single line, then your system sees a single virtual CPU.
# 5  
Old 11-11-2013
You can also add the -v switch to the -p and get the number of virtual processors:

Code:
psrinfo -pv
The physical processor has 8 virtual processors (0-7)

# 6  
Old 11-11-2013
i am receiving output as below :
Code:
 
bash-3.2# psrinfo
0       on-line   since 09/23/2013 14:50:59

does that means there is 1 virtual processors and
Code:
bash-3.2# psrinfo -p
1

so number of physical processors available is 1.
and
Code:
 
bash-3.2# psrinfo -pv
The physical processor has 1 virtual processor (0)
  x86 (chipid 0x0 GenuineIntel family 6 model 26 step 4 clock 2933 MHz)
        Intel(r) Xeon(r) CPU           X5670  @ 2.93GHz

so this means my soalris machien has one virtual and one physical processsor...please correct me if i am wrong.Smilie
# 7  
Old 11-11-2013
Also, this is "contemporary"... which practically means safe to use... just want to note that on Sun architectures that are older, the command won't necessarily produce "good" results...

So.. if... for example, you have SPARC IIIi, there are certain processors there that won't produce accurate data (don't worry it's a very limited few).

But for the most part, things work ok.

Personally, x86 has never been Sun's forte... I wouldn't trust it to produce anything reliable.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to find whether Solaris installed on physical machine or on a VMware/KVM?

Hi All, . I am trying to find whether Solaris 11 installed on physical server or on VMware/KVM. I tried uname -a but it's giving only whether i installed on X86 or sparc machine. I tried prtdiag command but it's giving below information. command : prtdiag -v |grep "System... (2 Replies)
Discussion started by: sravani25
2 Replies

2. UNIX for Beginners Questions & Answers

How to check everything are migrated after the physical to vmware virtual machine?

I have a physical machine , just use vmware tools migrated data to virtual machine . how can I check these two servers - old and new server , the data are the same , all files are copy to new server ? thanks (2 Replies)
Discussion started by: ust3
2 Replies

3. Solaris

Solaris 10 virtual - how do I tell physical host?

uname -a reports type Generic so I know its virtual. Assume its an ldom somewhere. How do I find out what physical host server is? (4 Replies)
Discussion started by: psychocandy
4 Replies

4. Solaris

Solaris virtual machine SPARC?

Hello, please, can somebody tell me if can i virtualize Solaris 11 SPARC architecture in a x86 PC? Virtualbox allows doing that? i need to run Solaris 11 SPARC to make a lab, and dont have any SUN machine to do on it. Thanks in advance! (9 Replies)
Discussion started by: MuziKizuM
9 Replies

5. Red Hat

Number of physical and virtual processors

Hi, i am trying to find out hpw many virtual and physical processors does any linux machine has: output of /proc/cpuinfo is as below : # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Xeon(R) CPU... (8 Replies)
Discussion started by: omkar.jadhav
8 Replies

6. Red Hat

My RHEL virtual Machine Does not have Virtual Machine Manager Desktop Tool

My RHEL virtual Machine Does not have Virtual Machine Manager Desktop Tool Hi, I don't seem to have the Virtual Machine Manager Desktop tool set up on my RHEL6 Machine. The Linux machine runs off VMWare player and I'm not sure whether it is a VMWare software issue or a problem with the RHEL6... (2 Replies)
Discussion started by: accipiter1
2 Replies

7. Solaris

Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12). I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies

8. Solaris

Solaris - physical to virtual migration on the same M5000

Hello, Firstly, apologies if the theme of this post is discussed elsewhere. At the moment we have a dual-domain M5000 running. Each domain is running with equal amounts of CPU and memory. What we'd like to do is move the 2 hosts in question (1 per domain) to a Solaris 10 zone of it's zone.... (2 Replies)
Discussion started by: nm146332
2 Replies

9. AIX

Maximum Limit of HMC to handle Physical Power Virtualization Physical Machine

Hello All, Can anybody please tell me what is the maximum limit of Physical IBM Power Machine which can be handled by single HMC at a single point of time? Thanks, Jenish (1 Reply)
Discussion started by: jenish_shah
1 Replies

10. HP-UX

How to find the number of physical processors and architecture in a hp-ux machine

Hi, I have two questions here. I need to find out the number of physical processors the HP-UX operating system is running in. Here i am referring to the physical processors in a system and not the number of cores. I can get the number of cores using the command 'ioscan -fnkC processor'.... (7 Replies)
Discussion started by: shawshank
7 Replies
Login or Register to Ask a Question