All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Ian Campbell <Ian.Campbell@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>,
	"lichong659@gmail.com" <lichong659@gmail.com>,
	"lu.wustl@gmail.com" <lu.wustl@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 16:35:48 +0000	[thread overview]
Message-ID: <1424795745.4742.128.camel@citrix.com> (raw)
In-Reply-To: <1424787378.27930.352.camel@citrix.com>


[-- Attachment #1.1: Type: text/plain, Size: 2225 bytes --]

On Tue, 2015-02-24 at 14:16 +0000, Ian Campbell wrote:
> On Tue, 2015-02-24 at 11:30 +0000, Dario Faggioli wrote:

> > Semantically speaking, they just should be killed. OTOH, what I was
> > suggesting was this: if one calls libxl_domain_sched_params_set(), which
> > takes a libxl_domain_sched_params, the budget and priod there will be
> > interpreted as "for the whole domain", and applied to all the domain's
> > vcpus. It's in this sense that I see it an either/or:
> >  - at domain creation time, if the user does not say anything we'll use
> >    the domain-wide API for setting a default budget and period for all
> >    the vcpus.
> >  - if the user does say something in the config file (once this will be
> >    possible), or upon request, via the proper xl command, to modify the
> >    parameters of vcpu X, we'll use the vcpu-wide API.
> 
> The simplest (and IMHO least surprising) thing would be to have the
> per-vcpu ones override the per-domain ones. 
>
I agree.

> So at build time you would first call the per-domain set function with
> whatever parameters were provided, followed by setting any per-vcpu
> options which are configured.
> 
Yep.

> At run time via xl commands I guess they would be separate commands for
> domains vs vcpus, 
>
Yes, either there will be separate commands, or the same command will
have a way of specifying whether the parameters are to be considered
domain-wide, or just apply to one (or more) vcpus.

Still using RTDS as an example, this is what I was suggesting, earlier
in this thread
(http://www.gossamer-threads.com/lists/xen/devel/368154#368154):

    # xl sched-rtds -d 4 -p 10000 -b 5000 
     | 
     ---> sets all the vcpus of domain 4 to 5000/10000 

    # xl sched-rtds -d 3 -v 2 -p 5000 -b 2000 
     | 
     ---> set vcpu 2 of domain 4 to 2000/5000 

    # xl sched-rtds -d 2 -v 0 -p 10000 -b 1000 -v 1 -p 5000 -b 2500 
     | 
     ---> set vcpu 0 of domain 2 to 1000/10000 and vcpu 1 of 
          domain 2 to 2500/5000 

> and if you call the per-domain one I'd probably expect
> it to clobber any existing per-vcpu settings (i.e act like the vcpu
> option given --all).
> 
Exactly

Regards,
Dario

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2015-02-24 16:36 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
2015-02-24 11:30           ` Dario Faggioli
2015-02-24 14:16             ` Ian Campbell
2015-02-24 16:35               ` Dario Faggioli [this message]
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=1424795745.4742.128.camel@citrix.com \
    --to=dario.faggioli@citrix.com \
    --cc=George.Dunlap@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@citrix.com \
    --cc=cdgill@cse.wustl.edu \
    --cc=chaowang@wustl.edu \
    --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.