How to find the mapping of Virtual CPU of a Virtual machine to the physical CPU

How to find the mapping of Virtual CPU of a Virtual machine to the physical CPU

book

Article ID: CTX217763

calendar_today

Updated On:

Description

This article describes how to find the association between vcpu and pcpu. This will help in finding a particular physical CPU is loaded due to some interrupt issues


Instructions

  1. Shell into the xenserver console using putty

 

  1. Run the following command to find the association

 

# xl vcpu-list

 

Example output

 

[root@xen ~]# xl vcpu-list

Name                                ID     VCPU   CPU State   Time(s) CPU Affinity

Domain-0                             0     0             0   -b-   50823.4  0

Router                                   2     0            9   -b-    6593.2  all

 

Here the Virtual CPU 0 of the Router VM is running on physical CPU 9

 

You can get details of physical CPU by running #cat /proc/cpuinfo