* How to get the accurate physical CPU utilization in Dom0?
@ 2014-02-27 15:06 Bei Guan
2014-02-27 15:40 ` Roger Pau Monné
2014-02-27 15:49 ` Andrew Cooper
0 siblings, 2 replies; 4+ messages in thread
From: Bei Guan @ 2014-02-27 15:06 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 562 bytes --]
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.
--
Best Regards,
Bei Guan
[-- Attachment #1.2: Type: text/html, Size: 720 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to get the accurate physical CPU utilization in Dom0?
2014-02-27 15:06 How to get the accurate physical CPU utilization in Dom0? Bei Guan
@ 2014-02-27 15:40 ` Roger Pau Monné
2014-02-27 16:19 ` Bei Guan
2014-02-27 15:49 ` Andrew Cooper
1 sibling, 1 reply; 4+ messages in thread
From: Roger Pau Monné @ 2014-02-27 15:40 UTC (permalink / raw)
To: Bei Guan, xen-devel
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to get the accurate physical CPU utilization in Dom0?
2014-02-27 15:06 How to get the accurate physical CPU utilization in Dom0? Bei Guan
2014-02-27 15:40 ` Roger Pau Monné
@ 2014-02-27 15:49 ` Andrew Cooper
1 sibling, 0 replies; 4+ messages in thread
From: Andrew Cooper @ 2014-02-27 15:49 UTC (permalink / raw)
To: Bei Guan; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 862 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1602 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to get the accurate physical CPU utilization in Dom0?
2014-02-27 15:40 ` Roger Pau Monné
@ 2014-02-27 16:19 ` Bei Guan
0 siblings, 0 replies; 4+ messages in thread
From: Bei Guan @ 2014-02-27 16:19 UTC (permalink / raw)
To: Roger Pau Monné; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1170 bytes --]
Hi,
Thank you for all your advice. I have another one question.
How does the Xen scheduler map a vcpu to a physical CPU, if the host has
multi-cores? Is there any rules in the map? Or the map is irregular?
Thank you for your time.
2014-02-27 23:40 GMT+08:00 Roger Pau Monné <roger.pau@citrix.com>:
> 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.
>
>
--
Best Regards,
Bei Guan
[-- Attachment #1.2: Type: text/html, Size: 1714 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-27 16:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-27 15:06 How to get the accurate physical CPU utilization in Dom0? Bei Guan
2014-02-27 15:40 ` Roger Pau Monné
2014-02-27 16:19 ` Bei Guan
2014-02-27 15:49 ` Andrew Cooper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.