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 Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
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@lists.xensource.com http://lists.xensource.com/xen-devel
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@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
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@gmail.com] Sent: Friday, July 22, 2011 9:58 AM To: Lv, Hui Cc: xen-devel@lists.xensource.com 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<http://hui.lv>@intel.com<http://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@lists.xensource.com<mailto:Xen-devel@lists.xensource.com> http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel