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] Re: credits account issue

To: David Xu <davidxu06@xxxxxxxxx>
Subject: RE: [Xen-devel] Re: credits account issue
From: "Lv, Hui" <hui.lv@xxxxxxxxx>
Date: Fri, 22 Jul 2011 10:06:53 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 21 Jul 2011 19:09:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAGjowiRu6855GnxOojhoQAN1SHGdMzaRY9w3UDaqVrPiWqRZyg@xxxxxxxxxxxxxx>
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: <CAGjowiT8usqfD3erQRE6sRJxS_pbk-zT9wCHLyy3M-5V9ovSrA@xxxxxxxxxxxxxx> <1311298179809-4621457.post@xxxxxxxxxxxxx> <CAGjowiRu6855GnxOojhoQAN1SHGdMzaRY9w3UDaqVrPiWqRZyg@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcxIEsJ5+iQENk9GRd6L+VHwMTCWjwAAQi3g
Thread-topic: [Xen-devel] Re: credits account issue

Yes, in current scheduler, XEN4.0+, there is “burn_credits” each time when the vcpu is de-scheduled.

It’s accurate than the previous version.  

 

From: David Xu [mailto:davidxu06@xxxxxxxxx]
Sent: Friday, July 22, 2011 9:58 AM
To: Lv, Hui
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Re: credits account issue

 

Hi,

Thanks for your reply. Has this solution been added to new credit scheduler? I am using Xen-3.4.2. And in this version, when the vcpu is de-scheduled, it seems the current vcpu is just inserted into runqueue and its credit is not deducted.

    if ( vcpu_runnable(current) )
        __runq_insert(cpu, scurr);
    else
        BUG_ON( is_idle_vcpu(current) || list_empty(runq) );

    snext = __runq_elem(runq->next);

Regards,
Cong

2011/7/21 ygsnian <hui.lv@intel.com>

when the vcpu is de-scheduled, it's credits will be deducted.

--
View this message in context: http://xen.1045712.n5.nabble.com/credits-account-issue-tp4621131p4621457.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

_______________________________________________
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
<Prev in Thread] Current Thread [Next in Thread>