All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <George.Dunlap@eu.citrix.com>
To: "Jiang, Yunhong" <yunhong.jiang@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	"Dong, Eddie" <eddie.dong@intel.com>,
	"Zhang, Xiantao" <xiantao.zhang@intel.com>
Subject: Re: The caculation of the credit in credit_scheduler
Date: Tue, 09 Nov 2010 14:26:42 +0000	[thread overview]
Message-ID: <4CD95A22.2090902@eu.citrix.com> (raw)
In-Reply-To: <789F9655DD1B8F43B48D77C5D30659732FD0A5C9@shsmsx501.ccr.corp.intel.com>

On 05/11/10 07:06, Jiang, Yunhong wrote:
> 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 suspect that the real reason you're having trouble is that pinning and 
the credit mechanism don't work very well together.  Instead of pinning, 
have you tried using the cpupools interface to make a 2-cpu pool to put 
the VMs into?  That should allow the credit to be divided appropriately.

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

Credit2 may do better at dividing.  However, it doesn't implement 
pinning (just ignores it).  So you couldn't do your test unless you used 
cpupools, or limited cpus=2 to Xen's commandline.

Also, credit2 isn't yet designed to handle 64 cpus yet, so it may not 
work very well on a system with 64 cores.

  -George

  parent reply	other threads:[~2010-11-09 14:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CD95A22.2090902@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=eddie.dong@intel.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xiantao.zhang@intel.com \
    --cc=yunhong.jiang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.