WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Problems with enabling hypervisor C and P-state control

To: Niraj Tolia <ntolia@xxxxxxxxx>
Subject: RE: [Xen-devel] Problems with enabling hypervisor C and P-state control
From: "Yu, Ke" <ke.yu@xxxxxxxxx>
Date: Fri, 24 Oct 2008 11:14:45 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 23 Oct 2008 20:15:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7e45e2ac0810231649o7fd82c81ha09912cfa6a92b76@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <7e45e2ac0810220057w26b1ab45l8410c54346211d3f@xxxxxxxxxxxxxx> <49582C73AC36CC4C8C6C42390304E81C092722CF78@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <7e45e2ac0810231649o7fd82c81ha09912cfa6a92b76@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ack1aho0RtYFyYKIQnGx2aK8n0q9JQAGT7gg
Thread-topic: [Xen-devel] Problems with enabling hypervisor C and P-state control
Niraj Tolia wrote:
> 
> Hi Ke,
> 
> This seems to "work" but xenpm doesn't seem to be giving me the right
> data. On a completely idle system, the residency time of state C1 is
> 0ms. xentrace does report a large number of transitions though but
> they seem to be in rapid succession. Is this correct?
> 
> CPU4  320429115477 (+24006897)  cpu_idle_exit   [ C1 -> C0 ]
> CPU4  320429118141 (+    2664)  cpu_idle_entry  [ C0 -> C1 ]
> CPU4  320437500021 (+ 8381880)  cpu_idle_exit   [ C1 -> C0 ]
> CPU4  320437505493 (+    5472)  cpu_idle_entry  [ C0 -> C1 ]
> CPU4  320453123229 (+15617736)  cpu_idle_exit   [ C1 -> C0 ]
> CPU4  320453125992 (+    2763)  cpu_idle_entry  [ C0 -> C1 ]
> CPU4  320477132295 (+24006303)  cpu_idle_exit   [ C1 -> C0 ]
> CPU4  320477134968 (+    2673)  cpu_idle_entry  [ C0 -> C1 ]

Glad to see it "works" :) and thank for your feedback, it is valuable to us in 
term of improving the Xen PM functionality.

You are right, the output is not correct. And the root cause is xen PM 
statistics logic does not record the C1 time. The "hlt" C1 time can not be 
accurately calculated due to interrupt, so we hesitate to record the inaccurate 
value originally. Since now linux kernel already has the "near to accurate" C1 
time accouting, we are planing to port that patch to Xen. After that, xenpm 
will show correct info.

> 
> 
> Second, when I look at the P-state output (shown below), xenpm shows
> that the lowest P-state is only set on the first socket (this is a
> quad-core, quad-socket system). However, I have a feeling that this
> might be a problem with displaying the data rather than the underlying
> logic. Any ideas?
> 
> # xenpm | grep '*'
> *P3                  : freq       [1599 MHz]
> *P3                  : freq       [1599 MHz]
> *P3                  : freq       [1599 MHz]
> *P3                  : freq       [1599 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]
> *P0                  : freq       [2398 MHz]

This seems a bug. From the above info, I can not decided if it is xenpm issue 
or xen cpufreq issue. could you please provide more info, e.g.
- xen boot log (with loglvl=info), so that we can see if cpufreq driver is 
initialized in all cpus
- xentrace date on Px state, so that we can see if the Px transition really 
happened.

Best Regards
Ke

> 
> Cheers,
> Niraj
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel