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] Performance difference between Xen versions

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, John Weekes <lists.xen@xxxxxxxxxxxxxxxxxx>, "Yu, Ke" <ke.yu@xxxxxxxxx>
Subject: RE: [Xen-devel] Performance difference between Xen versions
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Tue, 3 May 2011 10:16:38 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "mark.langsdorf@xxxxxxx" <mark.langsdorf@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Wang, Winston L" <winston.l.wang@xxxxxxxxx>, "Wei, Gang" <gang.wei@xxxxxxxxx>
Delivery-date: Mon, 02 May 2011 19:20:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110502193623.GB14666@xxxxxxxxxxxx>
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: <4DBE41C9.1010409@xxxxxxxxxxxxxx> <C9E41092.170DB%keir.xen@xxxxxxxxx> <4DBE7819020000780003F1B6@xxxxxxxxxxxxxxxxxx> <4DBEEF6D.8080204@xxxxxxxxxxxxxxxxxx> <20110502181222.GB7498@xxxxxxxxxxxx> <4DBEFB6E.4090201@xxxxxxxxxxxxxxxxxx> <4DBF0306.8040000@xxxxxxxxxxxxxxxxxx> <20110502193623.GB14666@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwJAEDsQ3zbKmIEQZWO4l3iERHf6AANqsiQ
Thread-topic: [Xen-devel] Performance difference between Xen versions
> From: Konrad Rzeszutek Wilk [mailto:konrad.wilk@xxxxxxxxxx]
> Sent: Tuesday, May 03, 2011 3:36 AM
> 
> > # xenpm get-cpufreq-para 5
> > cpu id               : 5
> > affected_cpus        : 5
> > cpuinfo frequency    : max [2268000] min [1600000] cur [2268000]
> > scaling_driver       : acpi-cpufreq
> > scaling_avail_gov    : userspace performance powersave ondemand
> > current_governor     : ondemand
> >   ondemand specific  :
> >     sampling_rate    : max [10000000] min [10000] cur [20000]
> >     up_threshold     : 80
> > scaling_avail_freq   : *2268000 2267000 2133000 2000000 1867000
> > 1733000 1600000
> > scaling frequency    : max [2268000] min [1600000] cur [2268000]
> > turbo mode           : enabled
> >
> > Does it do it silently? If so, how can I see the true frequency?
> 
> <looks aroud> You are asking me I presume?
> 
> Ummm, no idea. I would actually email the authors of the those patches (CC-ed
> here).

the actual scaling governor runs in the Xen hypervisor. As the default governor 
is
ondemand, which means that Xen tries to scale freq upon workload heuristic 
periodically (e.g. 20ms interval). 

scaling_avail_freq tells you available frequency steppings on current cpu, and
the one marked with "*" is the current freq. But since this call is async with 
the
ongoing ondemand decision, it's probably not the latest one if you just issue
one single call. But if you invoke the call multiple times, and then sample an
average freq, it should be close.

or, you can use "xenpm set-scaling-governor" to choose a different one such as
"userspace" if you want to deploy your own policy from userland.

Thanks
Kevin


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