Number of physical and virtual processors

Thread Tools Search this Thread
Operating Systems Linux Red Hat Number of physical and virtual processors
# 8  
Old 11-18-2013
Actually, from a vm guest, this can be quite difficult. I mean, in most cases for most all hypervisor, any and all CPUs are virtual. The actually allocation given to a VM is often times only known to the hypervisor host itself and not to the guest.

On a physical box, it all depends.

If you have contemporary CPUs, and you have a relatively contemporary Linux, /proc/cpuinfo will likely show what you want. However, if you have older CPUs and/or older Linux, the information could be very inaccurate.

In your case, and this is a guess, looks like you've been assigned one virtual CPU.... what that means though, isn't well defined.
# 9  
Old 11-18-2013
This is a system with 1 physical CPU, quad-core:
% grep '^processor' /proc/cpuinfo
processor       : 0
processor       : 1
processor       : 2
processor       : 3
% awk '/^physical id/ && s[$NF]++==0' /proc/cpuinfo
physical id     : 0
% awk -F: '/^physical id/ {ph=$NF} /^core id/ && a[ph,$NF]++==0' /proc/cpuinfo
core id         : 0
core id         : 1
core id         : 2
core id         : 3

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Need help on physical and virtual cpu

HI, I need a command to find, 1) Avaiable Physical CPU 2) Avaiable virtual CPU TIA (1 Reply)
Discussion started by: sumanthupar
1 Replies

2. Solaris

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

hi, I am using command 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... (8 Replies)
Discussion started by: omkar.jadhav
8 Replies

3. UNIX for Advanced & Expert Users

Server is virtual or physical?

Hi All, How can I know whether the server I am connecting to is a virtual or physical one? The server might be having any Unix OS (Linux/Solaris/HP-UX etc.). Is there any system files / commands which can show these concrete information? Thanks in advance for the replies. sanzee (1 Reply)
Discussion started by: sanzee007
1 Replies

4. AIX

Processsing Units and Virtual Processors.

Hi, on redhat linux 5.5 (IBM PPC) os, whenever I am running the command top, it is showing 8 cpu. Processing Units Property Current Pending Minimum 0.1 Assigned 0.8 Maximum 1 Virtual Processors Property Current Pending Minimum 1 Assigned 4 ... (1 Reply)
Discussion started by: manoj.solaris
1 Replies

5. AIX

Need help understand Virtual Processors

First of all I have performed a Google search and internal search and found several descriptions but nothing I can wrap my head around and feel 100% confident about. I feel really silly for asking this as I manage a P6 570 with 12 lpars but I have difficulity with Virtual Processors. I can... (3 Replies)
Discussion started by: juredd1
3 Replies

6. Solaris

Physical or Virtual

Hi, I am on an Solaris machine "SunOS 5.10 Generic_139556-08 i86pc i386 i86pc" do i check if I am on an physical or an virtaul server. Thanks. (6 Replies)
Discussion started by: jjoy
6 Replies

7. UNIX for Dummies Questions & Answers

translating physical/virtual addresses

Hi all, I am new to Linux kernel/user space programming having been an assembly programmer in my previous life. I am now using 2.6.x kernel on an embedded CPU that has a few dedicated hardware blocks (including more CPU running just C-code, i.e., no operating system). There is a single DRAM... (1 Reply)
Discussion started by: agaurav
1 Replies

8. 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

9. UNIX for Advanced & Expert Users

AIX p5 virtual processors setting

Have a p570 LPAR capped/smt set to 4 physical processors. And currently have virtual processors set to 6 which gives 12 logical processors at AIX. This is for an Oracle9i database server running 4 instances. What should virtual processors be set to? at least initially? And how to determine when... (3 Replies)
Discussion started by: guttew
3 Replies

10. Shell Programming and Scripting

get physical and virtual memory

What command can i use to get the physical and virtual memory of a database? (7 Replies)
Discussion started by: tads98
7 Replies
Login or Register to Ask a Question