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] Credit Scheduler not working correct (3.0.4-0)

On Feb 1, 2007, at 12:32, Atsushi SAKAI wrote:
Hi, Emmanuel

I wrote down my guess based on previous study for Timo's cases.
(I ask you this behavior is specification or not previously.)
http://lists.xensource.com/archives/html/xen-devel/2006-10/ msg00365.html
This case is similar to case 2)
(when pinned-vcpu credit sum is over 1pcpu capacity)


Let's calculate on this.
Dom1 for 100Weight
Dom2 for 200Weight
But CPU resources is 200(2CPU x 100)
So these credits are Dom1:67 and Dom2:133
But These vcpus are pinned to pcpu0
pcpu0 has only 100. but credit total is 200.
This makes a problem.

These 2vcpu has same priority in credit scheduler,
 since it cannot not consume its credit.
So these vcpus are scheduled as round robin.
This makes equal consumption of pcpu0.

Is this wrong guess?

You've described the problem.

Arbitrary pinning makes system wide weighted fair share complex.
Within that problem set there are simple cases where we could easily
do better than now though.

Using cpumasks to take one physical CPU out of the system is one
such case. Arguably, we should have a notion of system partitions
to do this though but in the mean time, we can throw some code
together to not totally bail on weighted fair share when some simpler
uses of pinning are used.

I'll probably have time to look at this next week.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel