xen-devel
RE: [Xen-devel] Power aware credit scheduler
To: |
"Emmanuel Ackaouy" <ackaouy@xxxxxxxxx>, "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxxx> |
Subject: |
RE: [Xen-devel] Power aware credit scheduler |
From: |
"Tian, Kevin" <kevin.tian@xxxxxxxxx> |
Date: |
Fri, 20 Jun 2008 08:57:46 +0800 |
Cc: |
xen-devel@xxxxxxxxxxxxxxxxxxx, "Wei, Gang" <gang.wei@xxxxxxxxx>, "Yu, Ke" <ke.yu@xxxxxxxxx> |
Delivery-date: |
Thu, 19 Jun 2008 17:58:41 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
In-reply-to: |
<F2E14792-E70B-436E-A0CD-C3135D8B751C@xxxxxxxxx> |
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<D470B4E54465E3469E2ABBC5AFAC390F024D9444@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <DD74FBB8EE28D441903D56487861CD9D30B14407@xxxxxxxxxxxxxxxxxxxxxx> <D470B4E54465E3469E2ABBC5AFAC390F024D9452@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <DD74FBB8EE28D441903D56487861CD9D30B14D7D@xxxxxxxxxxxxxxxxxxxxxx> <F2E14792-E70B-436E-A0CD-C3135D8B751C@xxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
Thread-index: |
AcjSIsjqJDtHospoQzO7hmlCctTD2QAS4Xfw |
Thread-topic: |
[Xen-devel] Power aware credit scheduler |
>From: Emmanuel Ackaouy [mailto:ackaouy@xxxxxxxxx]
>Sent: 2008年6月19日 23:40
>
>On Jun 19, 2008, at 15:30 , Ian Pratt wrote:
>> That's OK -- it's fine to account in arrears, and doing so
>will have
>> the
>> right influence on how we schedule things in the future. That's why
>> it's important to move from tick accounting to absolute.
>
>I actually still don't agree it's important to move from tick
>accounting
>to absolute. CPU wall clock time is an approximation of service to
>start with. From the point of view of basic short term fairness and
>load balancing, tick based accounting works well and is simple to
>scale.
>
>Accounting for shared resources of physical CPUs makes sense,
>be it caches or memory buses (or the pipeline in the hyperthread
>case). But you can't really do that precisely: 2 CPUs may share a
>memory bus, but perhaps one of them is compute bound out of its
>L1 cache. What is the point of precisely measuring wall clock CPU
>time if you're then going to multiply that number by some constant
>that may or may not reflect the real impact of resource sharing in
>that case?
>
I'm not sure how fairness is ensured in my posted example in first
mail with a tick-based accounting. Maybe, long-term fairness is still
approximately achieved in average, but at last micro-accounting level
may not perform well which impacts guest with such requirement.
The effect of precisely accounting with multiply is hard to judge now
without some experiments to prove. However to be absolute without
multiply is still more natural way to go, IMO.
>IMO, the more pressing problem is to approximately account for
>shared physical resources and scale the cpu_pick() and cpu_kick()
>mechanisms to improve efficiency on medium and large hierarchical
>systems. It's probably ok to approximate the cost of sharing physical
>resources using reasonable constants (ie 0.65 when co-scheduled
>on hyperthreads).
>
This is good.
Thanks,
Kevin
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|