All of lore.kernel.org
 help / color / mirror / Atom feed
* The caculation of the credit in credit_scheduler
@ 2010-11-05  7:06 Jiang, Yunhong
  2010-11-05  7:26 ` Zhang, Xiantao
  2010-11-09 14:26 ` George Dunlap
  0 siblings, 2 replies; 13+ messages in thread
From: Jiang, Yunhong @ 2010-11-05  7:06 UTC (permalink / raw)
  To: George Dunlap; +Cc: xen-devel@lists.xensource.com, Dong, Eddie, Zhang, Xiantao

When reading the credit scheduler code and doing experiment, I notice one thing interesting in current credit scheduler. For example, in following situation:

Hardware:
A powerful system with 64 CPUs.

Xen Environment:
Dom0 with 8 vCPU bound to CPU (0, 16~24)

3 HVM domain, all with 2 vCPUS, all bound as vcpu0->pcpu1, vcpu1->pcpu2. Among them, 2 are CPU intensive while 1 is I/O intensive.

The result shows that the I/O intensive domain will occupy more than 100% cpu, while the two cpu intensive domain each occupy 50%. 

IMHO it should be 66% for all domain.

The reason is how the credit is caculated. Although the 3 HVM domains is pinned to 2 PCPU and share the 2 CPUs, they will all get 2* 300 credit when credit account. That means the I/O intensive HVM domain will never be under credit, thus it will preempt the CPU intensive whenever it is boost (i.e. after I/O access to QEMU), and it is set to be TS_UNDER only at the tick time, and then, boost again.

I'm not sure if this is meaningful usage model and need fix, but I think it is helpful to show this to the list.

I didn't try credit2, so no idea if this will happen to credit2 also.

Thanks
--jyh

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-11-15  4:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-05  7:06 The caculation of the credit in credit_scheduler Jiang, Yunhong
2010-11-05  7:26 ` Zhang, Xiantao
2010-11-05  8:07   ` Keir Fraser
2010-11-05  9:33     ` Zhang, Xiantao
2010-11-05  9:45       ` Keir Fraser
2010-11-09 14:16   ` George Dunlap
2010-11-15  4:29     ` Zhang, Xiantao
2010-11-09 14:26 ` George Dunlap
2010-11-10  2:39   ` Jiang, Yunhong
2010-11-10  5:46     ` Juergen Gross
2010-11-10  5:55       ` Jiang, Yunhong
2010-11-10  6:03         ` Juergen Gross
2010-11-10 10:53           ` Jiang, Yunhong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.