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] Power aware credit scheduler

To: "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Power aware credit scheduler
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Thu, 19 Jun 2008 17:24:19 +0800
Cc: ackaouy@xxxxxxxxx, "Wei, Gang" <gang.wei@xxxxxxxxx>, "Yu, Ke" <ke.yu@xxxxxxxxx>
Delivery-date: Thu, 19 Jun 2008 02:25:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <DD74FBB8EE28D441903D56487861CD9D30B14407@xxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjRyDPly+hYayDgSN6PPLduSJGRXQAIx2dAAABxE0A=
Thread-topic: [Xen-devel] Power aware credit scheduler
>From: Ian Pratt [mailto:Ian.Pratt@xxxxxxxxxxxxx] 
>Sent: 2008年6月19日 17:14
>
>> c) when cpu's freq is scaled dynamically
>>      When cpufreq/Px is enabled, cpu's frequency is adjusted
>> to different operation points driven by a on-demand governor. So
>> csched_acct may need take frequency difference among cpus into
>> consideration and total available credits won't be a simple 300 *
>> online cpu_number.
>
>We should also adjust the accounting of the credits consumed 
>in light of
>hyperthreading: we should scale the credit we subtract proportional to
>the how much of the period was spent competing with another 
>VCPU running
>on alternate hyperthread (we can tell this by seeing how much time the
>idle thread spent running on the other thread). 
>
>We can then scale the accounting according to some rough notion of the
>expected throughput of two hyperthreads e.g. experience on P4 CPU's
>suggests that a single VCPU will typically receive something 
>like 65% of
>its normal throughput when competing against another thread (total
>throughput 130%). We thus scale the amount of credit subtracted between
>65% and 100% depending on how much time was spent competing. 
>
>There's an argument that says we should at least have an option to
>prevent VCPUs from different guests running against each other in
>adjacent threads. This would be introducing a simple kind of gang
>scheduling.
>

Well, when such scale can be or should be applied to other facets,
original proposal on freq side doesn't apply as I replied to myself in
another mail, since credit scheduler can't anticipate the freq distribution
in next accounting phase, unless freq change is controlled by 
scheduler fully. But we'll experiment adding scheduler input into freq
governor as discussed with Keir. :-)

BTW, when such scale concepts takes more factors as mentioned
above, original tick based accounting seems more unconformable when
there's no direct map between tick and credit...

Thanks,
Kevin

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