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: ygsnian <hui.lv@xxxxxxxxx>
Subject: Re: [Xen-devel] Re: credits account issue
From: David Xu <davidxu06@xxxxxxxxx>
Date: Thu, 21 Jul 2011 21:57:46 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 21 Jul 2011 19:00:34 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tLiZVaj+2UVYo/4grj4e7CZSCLHByh8eN2eOzRYmCaQ=; b=ro2q34px8Mv4P73nEPxi5uzkweOcBJeVmvGrR9T7BGTsxiVoDHjr3eU9bfH0tmDZmf AwjkwZIo1qAD/lioomtKQvJvfogfRc1QL6Lt6NRUUQYKhlZNlXtzgMgUjbACxQ1eW4EM Xhx+fv2mz5xPYT0kPTfKQJFTr8E9P685jcYpQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1311298179809-4621457.post@xxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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>