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] credit accounting question

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] credit accounting question
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Thu, 19 Jun 2008 08:27:04 +0100
Cc: ackaouy@xxxxxxxxx
Delivery-date: Thu, 19 Jun 2008 00:26:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D470B4E54465E3469E2ABBC5AFAC390F024D9445@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjRydH7f/H28zBQRE+97te0s5HyuwAFA0NS
Thread-topic: [Xen-devel] credit accounting question
User-agent: Microsoft-Entourage/11.4.0.080122
On 19/6/08 06:03, "Tian, Kevin" <kevin.tian@xxxxxxxxx> wrote:

> Then the net effect is in last accounting cycle (30ms), 'B' is put
> in a lower priority compared to other spin vcpus. Not sure whether
> this is an over-sensitive concern in real workload, since above
> is just one assumed scenario in my mind. Maybe in reality above
> transient unfairness will be fixed in a long run, from average P.O.V.
> 
> Simply from design point of view, how much overhead may add
> to schedule phase if adding fine-grained accounting there? The
> accounting logic in csched_vcpu_acct seems simple enough.
> csched_cpu_pick may be still kept in this 10ms tick, or relax it
> to 30ms is also OK?

I'm not really sure that the credit scheduler needs to be tick-based. Why
not account at nanosecond granularity and do away with the arbitrary tick
granularity? Some degree of hysteresis or minimum scheduling granularity
could be used to avoid an unnecessarily high rate of context switches.

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>