All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Kevin Tian <kevin.tian@intel.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	"keir@xen.org" <keir@xen.org>, Eddie Dong <eddie.dong@intel.com>,
	Hui Lv <hui.lv@intel.com>,
	Jiangang Duan <jiangang.duan@intel.com>,
	Zhidong Yu <zhidong.yu@intel.com>
Subject: Re: [PATCH v2] xen/credit scheduler; Use delay to control scheduling frequency
Date: Mon, 19 Dec 2011 12:05:42 +0000	[thread overview]
Message-ID: <4EEF36A60200007800068D43@nat28.tlf.novell.com> (raw)
In-Reply-To: <CAFLBxZb3Yc7G4QzEXKdfrVkoz1XGv09zTxCQCC4Dnkr-6M5K5Q@mail.gmail.com>

>>> On 19.12.11 at 12:32, George Dunlap <George.Dunlap@eu.citrix.com> wrote:
> On Mon, Dec 19, 2011 at 8:24 AM, Jan Beulich <JBeulich@suse.com> wrote:
>>> +         && vcpu_runnable(current)
>>> +         && !is_idle_vcpu(current)
>>> +         && runtime < MICROSECS(sched_ratelimit_us) )
>>> +    {
>>> +        snext = scurr;
>>> +        snext->start_time += now;
>>> +        perfc_incr(delay_ms);
>>> +        tslice = MICROSECS(sched_ratelimit_us);
>>
>> So if there happens to be a VM with
>>
>> MILLISECS(prv->tslice_ms) < MICROSECS(sched_ratelimit_us)
>>
>> it'd get *more* time than allowed/intended through this mechanism.
> 
> Yeah, if you set your default timeslice to 1ms, and then set your
> minimum scheduling rate to 5ms, you're going to get weird results. :-)
> 
> The way it stands now, the ratelimit value will override the timeslice
> value.  It had to be one way or the other; do you think the timeslice
> value should be the priority?

The minimum of both should be used, I would think.

Jan

  reply	other threads:[~2011-12-19 12:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Acy8a1J98NIQa/LRTpOgi509iCZVqg==>
2011-12-17  3:24 ` [PATCH v2] xen/credit scheduler; Use delay to control scheduling frequency Lv, Hui
2011-12-19  8:24   ` Jan Beulich
2011-12-19 11:32     ` George Dunlap
2011-12-19 12:05       ` Jan Beulich [this message]
2011-12-19 13:59         ` George Dunlap
2011-12-19 14:59           ` Jan Beulich
2011-12-19 15:25             ` Lv, Hui
2011-12-19 15:38               ` Jan Beulich
2011-12-19 16:48                 ` George Dunlap
2011-12-19 17:04                   ` Jan Beulich
2011-12-19 13:56     ` Lv, Hui
2011-12-19 10:54   ` 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=4EEF36A60200007800068D43@nat28.tlf.novell.com \
    --to=jbeulich@suse.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=eddie.dong@intel.com \
    --cc=hui.lv@intel.com \
    --cc=jiangang.duan@intel.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=zhidong.yu@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.