From: Ian Campbell <ian.campbell@citrix.com>
To: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"xisisu@gmail.com" <xisisu@gmail.com>,
Ian Jackson <Ian.Jackson@citrix.com>,
"chaowang@wustl.edu" <chaowang@wustl.edu>,
George Dunlap <George.Dunlap@citrix.com>,
"sokolsky@cis.upenn.edu" <sokolsky@cis.upenn.edu>,
"linhphan@cis.upenn.edu" <linhphan@cis.upenn.edu>,
"xumengpanda@gmail.com" <xumengpanda@gmail.com>,
"cdgill@cse.wustl.edu" <cdgill@cse.wustl.edu>,
"lu.wustl@gmail.com" <lu.wustl@gmail.com>,
"lichong659@gmail.com" <lichong659@gmail.com>,
"lee@cis.upenn.edu" <lee@cis.upenn.edu>,
"dgolomb@seas.upenn.edu" <dgolomb@seas.upenn.edu>,
"mengxu@cis.upenn.edu" <mengxu@cis.upenn.edu>
Subject: Re: [RFC] [Design] Better XL support of RTDS scheduler for Xen 4.6
Date: Tue, 24 Feb 2015 11:06:32 +0000 [thread overview]
Message-ID: <1424775992.27930.319.camel@citrix.com> (raw)
In-Reply-To: <1424775147.4742.56.camel@citrix.com>
On Tue, 2015-02-24 at 10:52 +0000, Dario Faggioli wrote:
> On Tue, 2015-02-24 at 10:37 +0000, Ian Campbell wrote:
> > On Mon, 2015-02-23 at 22:58 -0500, Meng Xu wrote:
> > > I'm not sure if other schedulers need such functionality right now,
> > > because the credit2 scheduler account for the credit based on each
> > > domain instead of each VCPU. But if the scheduler will consider the
> > > vcpu-level credit/budget accounting, this could be helpful.
> >
> > We should take it as given that some other scheduler will want
> > vcpu-level parameters in the future and decide now how we want that
> > interface to look across multiple schedulers now,
> >
> +1
>
> > with the big question
> > I suppose being a large union struct vs individual structs (and perhaps
> > a KeyedUnion).
> >
> Indeed.
>
> > At the domain level param level we have libxl_domain_sched_params in
> > libxl_domain_build_info and via libxl_domain_sched_params_set/get.
> >
> > We also have libxl_sched_credit_params and
> > libxl_sched_credit_params_get/set for the credit scheduler, but not for
> > other scheduler types.
> >
> > I don't recall how we ended up with both, are the credit ones
> > deprecated/legacy and the combined one the One True Way or the other way
> > around?
> >
> sched_credit_params are system level parameters, i.e., they apply to an
> instance of the credit scheduler as a whole (so, to all the host or to a
> cpupool).
Ah, ok, then yes these can be ignored for the purposes of this
conversation I think.
This means that the current interface is the one-big-struct type.
> > In any case, we should decide what we want for both per-domain and
> > per-vcpu parameters, with one eye on the libxl API guarantees, and try
> > and have them at least be somewhat consistent.
> >
> Exactly. My opinion would be to leave the per-domain interface alone as
> it is (we probably don't have much alternatives to this, BTW, due to API
> stability! :-D )
We do have the option of introducing a new/better interface so long as
the old one also continues working.
> and introduce a new (set of) API(s) for per-vcpu level
> parameters.
> The former will still be preferred/used by the schedulers that does not
> support different per-vcpu params, or by all the schedulers, if they
> want to set all the params for all the vcpus to the same values (e.g.,
> default values at domain creation time, if nothing is specified in the
> config file).
>
> The latter would be, of course, used by the schedulers that support
> different per-vcpu parameters and,
You seem to be implying ("still be preferred") that there will be some
sort of either/or choice here between the per-domain and per-vcpu
interfaces.
Surely a scheduler can have both domain-wide and per-vcpu parameters and
a given scheduler might implement either or both as it needs.
> if someone tries to use it with one
> of the others, we can return the usual whatever_NOTSUP_whatever.
Obviously.
Ian.
next prev parent reply other threads:[~2015-02-24 11:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-21 15:51 [RFC] [Design] Better XL support of RTDS scheduler for Xen 4.6 Meng Xu
2015-02-22 15:56 ` Meng Xu
2015-02-23 17:27 ` Dario Faggioli
2015-02-24 4:15 ` Meng Xu
2015-02-24 10:17 ` Dario Faggioli
2015-02-23 15:57 ` Wei Liu
2015-02-24 3:58 ` Meng Xu
2015-02-24 10:37 ` Ian Campbell
2015-02-24 10:52 ` Dario Faggioli
2015-02-24 11:06 ` Ian Campbell [this message]
2015-02-24 11:30 ` Dario Faggioli
2015-02-24 14:16 ` Ian Campbell
2015-02-24 16:35 ` Dario Faggioli
2015-02-25 2:42 ` Meng Xu
2015-02-25 8:44 ` Dario Faggioli
2015-02-25 13:17 ` Meng Xu
2015-02-24 10:58 ` Dario Faggioli
2015-02-24 11:08 ` Ian Campbell
2015-02-24 12:27 ` Wei Liu
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=1424775992.27930.319.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=George.Dunlap@citrix.com \
--cc=Ian.Jackson@citrix.com \
--cc=cdgill@cse.wustl.edu \
--cc=chaowang@wustl.edu \
--cc=dario.faggioli@citrix.com \
--cc=dgolomb@seas.upenn.edu \
--cc=lee@cis.upenn.edu \
--cc=lichong659@gmail.com \
--cc=linhphan@cis.upenn.edu \
--cc=lu.wustl@gmail.com \
--cc=mengxu@cis.upenn.edu \
--cc=sokolsky@cis.upenn.edu \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
--cc=xisisu@gmail.com \
--cc=xumengpanda@gmail.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.