From: Dario Faggioli <raistlin@linux.it>
To: George Dunlap <george.dunlap@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
Jan Beulich <JBeulich@suse.com>, "Lv, Hui" <hui.lv@intel.com>
Subject: Re: [PATCH] xen/sched_credit: Use delay to control scheduling frequency
Date: Tue, 20 Dec 2011 11:51:24 +0100 [thread overview]
Message-ID: <1324378284.6616.14.camel@Abyss> (raw)
In-Reply-To: <1324376802.2143.154.camel@elijah>
[-- Attachment #1.1: Type: text/plain, Size: 1415 bytes --]
On Tue, 2011-12-20 at 10:26 +0000, George Dunlap wrote:
> > I think that too, but maybe you can print some kind of warning when it
> > happens?
>
> I guess the consensus is that we should put in some effort to make the
> interface more polished.
>
Exactly! :-)
> How about this:
>
> First, add a ratelimit_us element to csched_priv, just like the current
> tslice_ms element.
>
> When the scheduler comes up (in csched_init), it checks to see if
> MICROSECS(sched_ratelimit_us) > MILLISECS(sched_credit_tslice_ms); if
> so, it prints a warning, and sets prv->ratelimit_us to
> 1000*prv->tslice_ms.
>
For what it counts, I'm more than fine with just printing some
"WARNING: rate-limit > time slice is nonsense", as well as doing as you
suggest... Or even with doing both! :-P
> In the future, when we implement the domctls to change a scheduler's
> ratelimit_us, and tslice_ms, we disallow changes which would violate the
> "ratelimit < tslice" rule (returning -EINVAL or something like that).
>
That makes a lot of sense.
Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-------------------------------------------------------------------
Dario Faggioli, http://retis.sssup.it/people/faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
PhD Candidate, ReTiS Lab, Scuola Superiore Sant'Anna, Pisa (Italy)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2011-12-20 10:51 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-19 22:13 [PATCH] xen/sched_credit: Use delay to control scheduling frequency Hui Lv
2011-12-20 9:07 ` Ian Campbell
2011-12-20 9:44 ` Lv, Hui
2011-12-20 10:09 ` Dario Faggioli
2011-12-20 10:26 ` George Dunlap
2011-12-20 10:51 ` Dario Faggioli [this message]
2011-12-20 12:14 ` Lv, Hui
2011-12-20 10:21 ` George Dunlap
-- strict thread matches above, loose matches on Subject: below --
2011-12-26 8:46 Hui Lv
2012-01-02 8:19 ` Jan Beulich
2012-01-05 4:08 ` Lv, Hui
2012-01-06 19:50 ` George Dunlap
2012-01-06 19:56 ` George Dunlap
2012-01-08 12:03 ` Lv, Hui
2012-01-09 9:49 ` George Dunlap
2012-01-09 10:22 Hui Lv
2012-01-10 10:05 ` George Dunlap
2012-01-24 12:01 ` George Dunlap
2012-01-24 14:17 ` Keir Fraser
2012-01-24 14:31 ` 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=1324378284.6616.14.camel@Abyss \
--to=raistlin@linux.it \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=george.dunlap@citrix.com \
--cc=hui.lv@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).