From: Dario Faggioli <raistlin@linux.it>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
Juergen Gross <juergen.gross@ts.fujitsu.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH 3 of 3] libxl: make it possible to explicitly specify default sched params
Date: Thu, 24 May 2012 11:36:06 +0200 [thread overview]
Message-ID: <1337852166.13601.13.camel@Solace> (raw)
In-Reply-To: <1337850812.7229.18.camel@zakaz.uk.xensource.com>
[-- Attachment #1.1: Type: text/plain, Size: 3124 bytes --]
On Thu, 2012-05-24 at 10:13 +0100, Ian Campbell wrote:
> On Wed, 2012-05-23 at 22:19 +0100, Dario Faggioli wrote:
> > On Wed, 2012-05-23 at 20:28 +0100, George Dunlap wrote:
> > > Overall the idea of the patch looks good. There's just the thing
> > > about shoving all the various schedulers' parameters into one struct.
> > >
> > Yep, I really don't like that either.
>
> I think we reached to opposite conclusion when Deiter implemented the
> sched params support, but I don't really mind either way.
>
Yes, you're thinking right. Unfortunately, besides starting to
participate to that thread, I was off when consensus on that particular
aspect was reached. After that, I decided it is no such a big deal that
would worth a rewrite of the whole thing per-se, but if we are rewriting
it anyway, well... :-)
> I'm happy to
> go with whichever you guys think is best (which seems to be leaning
> toward separate structs?).
>
I am definitely leaning toward that, but of course it's George's opinion
the one that we should care most.
> > > One fall-out from it is that if you specify weight in your config file
> > > (or during domain creation), it will set the weight for credit or
> > > credit2, but use the defaults for sedf. This might be nice; but we're
> > > implicitly baking in an assumption that parameters with the same name
> > > have to have roughly similar meanings across all schedulers.
> > > Furthermore, if someone sets a "cap" in the config file, for example,
> > > but starts the VM in a pool running credit2, should we really just
> > > silently ignore it, or should we alert the user in some way?
> > >
> > I agree... Some mechanism for providing the user at least with a warning
> > would be useful.
>
> So xl should query the scheduler for the pool which has been specified
> in the config and parse the appropriate options? That seems doable.
>
That appears right to me, yes.
> At the libxl level I think this would end up being a KeyedUnion in the
> build info, selecting the appropriate per-sched params struct. Does that
> sound reasonable?
>
To me, definitely.
> > For what it counts, I'm all for option #2, i.e., each scheduler with its
> > own struct, set of helper functions, xl sub-command, etc. Something like
> > 'credit.cap = XX', 'credit2.weight = XX' or 'sedf.period = XXX' would be
> > nice, for discriminating them in the config file. It'd remain to decide
> > what to do with things like 'weight = XX', which we need to support for
> > backward compatibility, but I guess almost anything is fine, provided we
> > warn the user about what's happening and ask him to update the syntax.
>
> That all sounds fine, but not for 4.2 IMHO.
>
Yes, let's just put what xm has together for now, we can add all the
other stuff later.
Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2012-05-24 9:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-23 9:26 [PATCH 0 of 3] libxl: make it possible to explicitly specify default sched params Ian Campbell
2012-05-23 9:26 ` [PATCH 1 of 3] libxl: add internal function to get a domain's scheduler Ian Campbell
2012-05-23 19:47 ` George Dunlap
2012-05-24 8:55 ` Ian Campbell
2012-05-24 9:16 ` Dario Faggioli
2012-05-23 9:26 ` [PATCH 2 of 3] libxl: rename libxl_sched_params to libxl_sched_domain_params Ian Campbell
2012-05-23 19:49 ` George Dunlap
2012-05-23 9:26 ` [PATCH 3 of 3] libxl: make it possible to explicitly specify default sched params Ian Campbell
2012-05-23 10:51 ` Ian Jackson
2012-05-23 11:12 ` Dario Faggioli
2012-05-24 8:52 ` Ian Campbell
2012-05-24 9:15 ` Dario Faggioli
2012-05-23 19:28 ` George Dunlap
2012-05-23 19:34 ` George Dunlap
2012-05-23 21:19 ` Dario Faggioli
2012-05-24 9:13 ` Ian Campbell
2012-05-24 9:36 ` Dario Faggioli [this message]
2012-05-24 13:57 ` Ian Jackson
2012-05-24 14:02 ` Ian Campbell
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=1337852166.13601.13.camel@Solace \
--to=raistlin@linux.it \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=juergen.gross@ts.fujitsu.com \
--cc=xen-devel@lists.xen.org \
/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).