All of lore.kernel.org
 help / color / mirror / Atom feed
From: "kim.jin" <kim.jin@stromasys.com>
To: "George Dunlap" <George.Dunlap@eu.citrix.com>,
	MaoXiaoyun <tinnycloud@hotmail.com>
Cc: "xen devel" <xen-devel@lists.xensource.com>
Subject: Re: Re: [Xen-devel] strange CPU utilization, could related to creditschedule ?
Date: Mon, 17 Jan 2011 18:51:31 +0800	[thread overview]
Message-ID: <201101171851269743740@stromasys.com> (raw)
In-Reply-To: AANLkTim8+uv90egZuTZFcnmkp9Y_6Ayp-Ta+FQsFjwt3@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 3097 bytes --]

Then, how about the frequency of CPU? e.g., one VM have 1GHz CPUs, but the other have 2GHz CPUs. 

------------------				 
Best Regards!
 
Kim King
2011-01-17

-------------------------------------------------------------
George Dunlap
2011-01-17 18:41:35
MaoXiaoyun
xen devel
Re: [Xen-devel] strange CPU utilization, could related to creditschedule ?

>On Mon, Jan 17, 2011 at 3:52 AM, MaoXiaoyun <tinnycloud@hotmail.com> wrote:
>> Hi George:
>>        1.  From the algorithm, since domains credits is  direct proportion
>> to its weight,
>> I think if there are two cpu-bound domains with same weight, no matter how
>> many
>> vcpus they have, they will have the same CPU times accmulated, right?
>
>It used to be the case, yes.  But since that is very
>counter-intuitive, some months ago I introduced a change such that the
>weight is calculated on a per-vcpu basis.  If you look in
>csched_acct(), when accounting credit, weight of a domain is
>multiplied by sdom->active_vcpu_count.
>
>>        2. if 1 is true, what the different between domains with same
>> weight but have
>> different VCPUS(say one has 4 vcpus, another has 8)?
>
>If two domains have the same number of "active" vcpus (4 each, for
>example) they'll get the same amount of CPU time.  But if the 8-vcpu
>domain has 8 vcpus in "active" mode, it will get twice as much time.
>
>But this is a recent change; in earlier versions of Xen (before 3.4
>for sure, and possibly 4.0, I can't remember), if two VMs are given
>the same weight, they'll get the same cpu time.
>
>>        3. I am fully understand the problems of "credit 1 schedule "in your
>> ppt of "Xenschedulerstatus"
>>
>> (1)Client hypervisors and audio/video 
>>     Audio VM: 5% CPU
>>  2x Kernel-build VMs: 97% cpu
>>  30-40 audio skips over 5 minutes
>>
>> Do you mean "kernel-build VMs" has great impact on "Audio VM", and does
>> priority CSCHED_PRI_TS_BOOST
>> solve this?
>
>BOOST does not solve this problem.  I think I described the problem in
>the paper: BOOST is an unstable place to be -- you can't stay there
>very long.  The way BOOST works is this:
>* You are put into BOOST if your credits reach a certain threshold
>(30ms worth of credit)
>* You are taken out of BOOST if you are interrupted by a scheduler "tick"
>
>If you run at about 5% (or about 1/20 of the time), you can expect to
>be running on average every 20 ticks.  Since timer ticks happen every
>10ms, that means you can expect to stay in BOOST for an average of
>200ms.
>
>So no matter how little cpu you use, you'll flip back and forth
>between BOOST and normal, often several times per second.
>
>> many many thanks, those confusions really makes me headache, I am a bit of
>> silly.
>
>不是! 懂scheduling非常难.  It probably took me about six months to really
>understand what was going on. :-)
>
> -George
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@lists.xensource.com
>http://lists.xensource.com/xen-devel
>.

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

  reply	other threads:[~2011-01-17 10:51 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <SNT0-MC3-F148nSuKiM000aac29@SNT0-MC3-F14.Snt0.hotmail.com>
2010-11-21  6:26 ` Xen balloon driver discuss tinnycloud
2010-11-22  4:33   ` MaoXiaoyun
2010-11-22 17:46     ` Dan Magenheimer
2010-11-23 14:58       ` tinnycloud
2010-11-27  6:54       ` cloudroot
2010-11-28  2:36         ` Dan Magenheimer
2010-11-29  4:20           ` tinnycloud
2010-11-29  6:34           ` xiaoyun.maoxy
     [not found]           ` <002b01cb8f8f$852bda10$8f838e30$@maoxy@aliyun-inc.com>
2010-11-29  8:37             ` tinnycloud
2010-11-29 10:09             ` George Dunlap
2010-11-29 10:12           ` George Dunlap
2010-11-29 15:42             ` Dan Magenheimer
2010-11-28 13:00         ` Pasi Kärkkäinen
2010-11-29  6:56   ` Chu Rui
2010-11-29 10:55     ` 答复: [Xen-devel] " tinnycloud
2010-11-29 11:19       ` George Dunlap
2010-11-29 15:41         ` hotmaim
2010-11-30 10:50           ` George Dunlap
2010-11-30 13:58             ` tinnycloud
2010-11-30 16:39             ` Dan Magenheimer
2010-12-01  5:07             ` xiaoyun.maoxy
     [not found]             ` <00fe01cb9115$98319c80$c894d580$@maoxy@aliyun-inc.com>
2010-12-01  6:29               ` tinnycloud
2011-01-12 14:41                 ` strange CPU utilization, could related to credit schedule ? tinnycloud
2011-01-12 16:41                   ` George Dunlap
2011-01-13  4:29                     ` MaoXiaoyun
2011-01-17  3:52                       ` MaoXiaoyun
2011-01-17 10:41                         ` George Dunlap
2011-01-17 10:51                           ` kim.jin [this message]
2011-01-17 10:56                             ` Re: strange CPU utilization, could related to creditschedule ? George Dunlap
2011-01-17 11:30                             ` Re: Re: strange CPU utilization, could related tocreditschedule ? kim.jin
2010-11-30  3:51         ` 答复: [Xen-devel] Xen balloon driver discuss Chu Rui
2010-11-30 11:08           ` George Dunlap

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=201101171851269743740@stromasys.com \
    --to=kim.jin@stromasys.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=tinnycloud@hotmail.com \
    --cc=xen-devel@lists.xensource.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.