All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@citrix.com>
To: Dario Faggioli <raistlin@linux.it>
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 10:26:42 +0000	[thread overview]
Message-ID: <1324376802.2143.154.camel@elijah> (raw)
In-Reply-To: <1324375765.6616.9.camel@Abyss>

On Tue, 2011-12-20 at 10:09 +0000, Dario Faggioli wrote:
> On Tue, 2011-12-20 at 17:44 +0800, Lv, Hui wrote: 
> > > It that constraint enforced anywhere?
> > 
> > Currently, it's not constraint enforced. 
> > I think George have gave the explanation in yesterday's discussion.
> > 
> 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.

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.

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).

Thoughts?

 -George

  reply	other threads:[~2011-12-20 10:26 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 [this message]
2011-12-20 10:51         ` Dario Faggioli
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=1324376802.2143.154.camel@elijah \
    --to=george.dunlap@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=hui.lv@intel.com \
    --cc=raistlin@linux.it \
    --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.