xen-devel
RE: [Xen-devel] RE: xenpm: provide core/package cstate residencies
To: |
Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> |
Subject: |
RE: [Xen-devel] RE: xenpm: provide core/package cstate residencies |
From: |
"Wei, Gang" <gang.wei@xxxxxxxxx> |
Date: |
Wed, 14 Jul 2010 08:17:12 +0800 |
Accept-language: |
zh-CN, en-US |
Acceptlanguage: |
zh-CN, en-US |
Cc: |
Keir, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Fraser <keir.fraser@xxxxxxxxxxxxx>, "Wei, Gang" <gang.wei@xxxxxxxxx> |
Delivery-date: |
Tue, 13 Jul 2010 17:18:17 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<19516.45977.771646.816929@xxxxxxxxxxxxxxxxxxxxxxxx> |
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: |
<F26D193E20BBDC42A43B611D1BDEDE7113913C8CA8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C86110BD.1A71E%keir.fraser@xxxxxxxxxxxxx> <F26D193E20BBDC42A43B611D1BDEDE7113913C8D73@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <19516.45977.771646.816929@xxxxxxxxxxxxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
Thread-index: |
Acsiuy7VSNGAdQIyQwmle1fhxK0FLQAKwarQ |
Thread-topic: |
[Xen-devel] RE: xenpm: provide core/package cstate residencies |
On 2010 07 14 02:43, Ian Jackson wrote:
> Can I ask why these new performance counters are just named with
> numbers (pc3, pc6, pc7, cc3, cc6) ? Is this normal ? Should they be
> given more expansive names in the output from xenpm ?
pc stands for package cstate, cc stands for core cstate, it should be succinct.
Peopole caring about those numbers should understanding them correctly. More
expansive names in the xenpm output are not really needed.
> Also, I just went and looked at xenpm.c since you were adding a lot of
> code to the SIGINT handler, and it seems to me that the code is signal
> unsafe. It calls printf both from the main program and from the
> signal handler, and if you hit ^C while it's starting up it will
> probably crash in stdio. This is of course not your fault and not a
> reason not to apply your patch.
Let's discuss how to improve it. Maybe we can move those printf & loops in
SIGINT to main program and use a flag instead in SIGINT to control. But anyway,
let's do another incremental patch for this.
> Also, why loop again over the CPU topology, rather than doing the work
> in cpu_topology_func ?
cpu_topology_func just outputs the topology got via hypercall. But here we want
to calculate the cstate residencs for every core/package in a period, it is not
suitable to add this into cpu_topology_func.
> Sorry to ask lots of questions but I'm not very familiar with the
> xenpm code and how people use it.
Thanks for review it carefully. :-)
Jimmy
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|