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