[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.