From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= Subject: Re: How to get the accurate physical CPU utilization in Dom0? Date: Thu, 27 Feb 2014 16:40:54 +0100 Message-ID: <530F5C86.4060902@citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 , xen-devel List-Id: xen-devel@lists.xenproject.org On 27/02/14 16: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? top in Dom0 will only show CPU utilization of Dom0 (Xen is not a type 2 hypervisor, so Dom0 is no different than any other DomU in this aspect), if you want to see CPU utilization of all domains you should use xl top (xentop). Roger.