From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: How to get the accurate physical CPU utilization in Dom0? Date: Thu, 27 Feb 2014 15:49:39 +0000 Message-ID: <530F5E93.7020804@citrix.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3235517607840402474==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Bei Guan Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============3235517607840402474== Content-Type: multipart/alternative; boundary="------------010106010405020302090900" --------------010106010405020302090900 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit On 27/02/14 15:06, Bei Guan wrote: > Hi, > > I run a PV DomU with 1 vcpu on Xen. I pin the vcpu to a physical CPU > core, such as core 3. Then, I run a cpu-bound process in DomU and the > vcpu utilization is 100% (got it with "xentop" in Dom0). > However, when I use "top" in Dom0 to see the physical CPU utilization, > the CPU core 3 utilization is zero or less than 1%. The utilization > expected of CPU core 3 is also 100% like the vcpu. Is it? Why I cannot > get the accurate physical CPU utilization with "top" command in Dom0? > > Any advice is appreciated. Thank you for your time. Xen is not KVM; dom0 is just another VM as far as Xen is concerned, so dom0's cpu3 is not domU's cpu3. Top in dom0 shows dom0's virtual cpu utilisation. I am not aware of a utility like top which gives the physical cpu information, distributed by physical cpu. ~Andrew --------------010106010405020302090900 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit
On 27/02/14 15:06, Bei Guan wrote:
Hi,

I run a PV DomU with 1 vcpu on Xen. I pin the vcpu to a physical CPU core, such as core 3. Then, I run a cpu-bound process in DomU and the vcpu utilization is 100% (got it with "xentop" in Dom0).
However, when I use "top" in Dom0 to see the physical CPU utilization, the CPU core 3 utilization is zero or less than 1%. The utilization expected of CPU core 3 is also 100% like the vcpu. Is it? Why I cannot get the accurate physical CPU utilization with "top" command in Dom0?

Any advice is appreciated. Thank you for your time.

Xen is not KVM; dom0 is just another VM as far as Xen is concerned, so dom0's cpu3 is not domU's cpu3.

Top in dom0 shows dom0's virtual cpu utilisation.  I am not aware of a utility like top which gives the physical cpu information, distributed by physical cpu.

~Andrew
--------------010106010405020302090900-- --===============3235517607840402474== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============3235517607840402474==--