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] [PATCH] Accurate vcpu weighting for credit scheduler

To: "Atsushi SAKAI" <sakaia@xxxxxxxxxxxxxx>, "Emmanuel Ackaouy" <ackaouy@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Accurate vcpu weighting for credit scheduler
From: "George Dunlap" <George.Dunlap@xxxxxxxxxxxxx>
Date: Mon, 8 Dec 2008 11:01:55 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 08 Dec 2008 03:06:34 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=2dNXvEjGWw2itcF/x4PnwgfCid6E4+FTxbZT6gWHOvY=; b=CllaPtnY0I8dXkK5DmiwvUEWrTBByZyVAh4otEk9a0VzKJ6q41zKcGRD8nhtELAkhg J3ucm4cyU0aDkd9wHRqLjToHbnKGrSQDLStqsi0EJGR8M9asnMw9clHdi6HajC+FuA5V EOycnLW4cB1GZvB9RKJY4usVDBPH3whStKyvk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=L9mOrM1XS52hfAzjfOhzekV1qVZYCd2b7k93zoFyWq6+aUxENtB0bCsDGkHtrKsuEa 9Dtccvw4Dm+57QRB7+ipBiavxhv2saH4eoVqc9Y68IuiIyrkDqngw4/bI2CrrHUx4JeH HRGQPo/vlcPx3FLmAwIPA4TQp/41cAp6J4vVc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081208063436.E2C1118062@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/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: <20081208063436.E2C1118062@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Below, when you say "blocking", I assume you don't mean it in the
"do_block()" sense (i.e., are taken off the runqueue), but instead in
a more conventional sense; i.e., d[1-3]v0 are ahead of d4v0 in the
runqueue, and are thus "blocking" d4v0 from running?

Hmm... I can see how the "credit reset" is hurting the proportional
fairness.  The problem is I can't quite see what the credit reset was
there for in the first place, so I can't tell if this is going to
screw up some other corner case that it was designed to solve.  Why
not, for instance, just get rid of the conditional altogether?

Emmanuel, would you mind commenting?

 -George

On Mon, Dec 8, 2008 at 6:34 AM, Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx> wrote:
> Hi,
>
> This patch intends to accurate vcpu weighting
> for CPU intensive job.
>
> The reason of this problem is that
> vcpu round-robin queue blocks large weight vcpus
> by small weight vcpus.
>
> For example, we assume following case on 2pcpu environment.
> (with 4domains (each domain has 2vcpus))
>
> dom1 vcpu0,1 w128 credit  4
> dom2 vcpu0,1 w128 credit  4
> dom3 vcpu0,1 w256 credit  8
> dom4 vcpu0,1 w512 credit 15
>
>
> d4v0 gets 15ms credit each time.
> but if 3vcpus are blocking,(like d1v0, d2v0, d3v0)
> d4v0 credit becomes over 30msec(45msec=15x3times).
> Then d4v0 credit cleared.
> This makes d4v0 uses smaller credit than expected.
> This problem also occurs on d4v1 case.
> (blocked by d1v1, d2v1, d3v1)
>
>
> In my case, xentop shows following % for each domain.
> dom1 27
> dom2 28
> dom3 53
> dom4 88
>
> After this patch applied, each domain has following %.
> dom1 25
> dom2 25
> dom3 49
> dom4 99
>
> This patch adds condition that
> "credit clear function" should work
> when vcpu is not runnable.
>
>  sched_credit.c |    7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
>
> Signed-off-by: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
>
>
> Thanks
> Atsushi SAKAI
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>
>

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