From: Juergen Gross <juergen.gross@ts.fujitsu.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: George Dunlap <dunlapg@umich.edu>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] full support of setting scheduler parameters on domain creation
Date: Tue, 22 May 2012 07:43:17 +0200 [thread overview]
Message-ID: <4FBB2775.30306@ts.fujitsu.com> (raw)
In-Reply-To: <1337608431.24660.140.camel@zakaz.uk.xensource.com>
On 05/21/2012 03:53 PM, Ian Campbell wrote:
> On Mon, 2012-05-21 at 14:48 +0100, George Dunlap wrote:
>> On Mon, May 21, 2012 at 2:34 PM, Ian Campbell<Ian.Campbell@citrix.com> wrote:
>>>> Hmm. Scheduling parameters are handled in the hypervisor. I don't want to
>>>> export the knowledge about semantics to the tools. If this is no problem,
>>>> why can't I just set the defaults in the tools and omit asking the
>>>> hypervisor for the current settings?
>>> Exporting the idea that 0 is not a valid weight is (IMHO at least)
>>> better than exporting the fact that the default weight is (e.g.) 200 and
>>> hard coding that in multiple places.
>> I agree.
>>
>>> You could define a symbolic name if that would make you more comfortable
>>> (that would allow us to change the specific value without changing the
>>> API)
>> That is, as long as the "reasonable value" is the same for all of the
>> parameters.
> I actually meant a symbolic name for the default of each, rather than
> one for all of them.
-1 would fit for all parameters. This value is either invalid or "don't care".
>> I half wonder if having an "init schedule params" function which would
>> set each value to the default for that value would be useful, or if it
>> would be overkill.
>>
>> Of course, if we're doing that, it's only one step further to just
>> reading the actual scheduler parameters...
> I suppose we could make the autogenerated libxl_sched_params_init
> instead be a hand-coded thing which actually reads them.
Reading the scheduler parameters would require a new hypervisor interface
(e.g. a new sub-command of XEN_DOMCTL_scheduler_op) which will have to be
implemented by all schedulers supporting parameter changes.
I think this would be the cleanest solution. If this is the way to go, I
can prepare a patch.
BTW: I just discovered the first patch was not complete, as the original
coding to select the scheduler didn't take cpupools into account. It just
selected the default scheduler instead of the cpupool specific one.
Juergen
--
Juergen Gross Principal Developer Operating Systems
PDG ES&S SWE OS6 Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions e-mail: juergen.gross@ts.fujitsu.com
Domagkstr. 28 Internet: ts.fujitsu.com
D-80807 Muenchen Company details: ts.fujitsu.com/imprint.html
next prev parent reply other threads:[~2012-05-22 5:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-21 11:46 [PATCH] full support of setting scheduler parameters on domain creation Juergen Gross
2012-05-21 12:07 ` Ian Campbell
2012-05-21 13:23 ` Juergen Gross
2012-05-21 13:34 ` Ian Campbell
2012-05-21 13:48 ` Juergen Gross
2012-05-21 13:48 ` George Dunlap
2012-05-21 13:53 ` Ian Campbell
2012-05-22 5:43 ` Juergen Gross [this message]
2012-05-22 7:42 ` Dario Faggioli
2012-05-22 7:47 ` Juergen Gross
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=4FBB2775.30306@ts.fujitsu.com \
--to=juergen.gross@ts.fujitsu.com \
--cc=Ian.Campbell@citrix.com \
--cc=dunlapg@umich.edu \
--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).