credits account issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

credits account issue

smart2003
Hi,

The schedule tick interval of current credit scheduler (credit1) is 10ms. If one VM's timeslice is 15ms, 5ms(50 credits) will not be reduced from this VM's account, and another VM may be deducted 10ms (100 credits) when it only run 5ms. Is it right? And is there some good solution to handle this problem now? Thanks.

Regards,
Cong

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xensource.com/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: credits account issue

ygsnian
when the vcpu is de-scheduled, it's credits will be deducted.
Reply | Threaded
Open this post in threaded view
|

Re: credits account issue

smart2003
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
[hidden email]
http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xensource.com/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: credits account issue

ygsnian

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:[hidden email]]
Sent: Friday, July 22, 2011 9:58 AM
To: Lv, Hui
Cc: [hidden email]
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
[hidden email]
http://lists.xensource.com/xen-devel

 


_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xensource.com/xen-devel