xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Meng Xu <xumengpanda@gmail.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Ian Campbell <ian.campbell@citrix.com>,
	Sisu Xi <xisisu@gmail.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	George Dunlap <george.dunlap@eu.citrix.com>,
	Chenyang Lu <lu@cse.wustl.edu>,
	Dario Faggioli <dario.faggioli@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	Linh Thi Xuan Phan <ptxlinh@gmail.com>,
	Meng Xu <mengxu@cis.upenn.edu>, Chao Wang <chaowang@wustl.edu>,
	Chong Li <lichong659@gmail.com>,
	Dagaen Golomb <dgolomb@seas.upenn.edu>
Subject: Re: [PATCH v1 1/4] xen: add real time scheduler rt
Date: Fri, 29 Aug 2014 15:35:58 -0400	[thread overview]
Message-ID: <CAENZ-+m7FULo=ACpeyoFC_36g6F7-_dfRDPYMym=rbKthtqWpA@mail.gmail.com> (raw)
In-Reply-To: <54005E82020000780002EFB1@mail.emea.novell.com>


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

Hi Jan,


2014-08-29 5:05 GMT-04:00 Jan Beulich <JBeulich@suse.com>:

> >>> On 28.08.14 at 18:06, <xumengpanda@gmail.com> wrote:
> > ​As to your concern "I still don't see why such wouldn't be
> > applicable uniformly to all schedulers."​, are you suggesting that the
> > credit and credit2 scheduler could also allow users to set/get each
> VCPU's
> > parameters? (I think that could be possible but this should be some
> design
> > decision made by credit and credit2 scheduler developer?)
>
> Perhaps. But I think a more uniform interface to the individual
> schedulers would help on the tools side too. But in the end I'm
> just raising questions/concerns here, it's George who needs to
> be okay with your approach.
>

​Thank you very much for your questions and suggestions!

BTW, the ARINC653 scheduler in Xen also specifies each VCPU's parameters.
It's just FYI. :-)

In xen/include/public/sysctl.h, it specifies each vcpu's parameter in
sched_entries array.

/*

 * This structure is used to pass a new ARINC653 schedule from a

 * privileged domain (ie dom0) to Xen.

 */

struct xen_sysctl_arinc653_schedule {

    /* major_frame holds the time for the new schedule's major frame

     * in nanoseconds. */

    uint64_aligned_t     major_frame;

    /* num_sched_entries holds how many of the entries in the

     * sched_entries[] array are valid. */

    uint8_t     num_sched_entries;

    /* The sched_entries array holds the actual schedule entries. */

    struct {

        /* dom_handle must match a domain's UUID */

        xen_domain_handle_t dom_handle;

        /* If a domain has multiple VCPUs, vcpu_id specifies which one

         * this schedule entry applies to. It should be set to 0 if

         * there is only one VCPU for the domain. */

        unsigned int vcpu_id;

        /* runtime specifies the amount of time that should be allocated

         * to this VCPU per major frame. It is specified in nanoseconds */

        uint64_aligned_t runtime;

    } sched_entries[ARINC653_MAX_DOMAINS_PER_SCHEDULE];

};


>
> >> I think anything going into the seconds, not to speak of minutes or
> >> hours, range is already beyond boundaries of being reasonable /
> >> useful.
> >
> > ​Hmm, that's fair. If we want to limit the range to seconds, then uint32
> is
> > enough. However, what if some user really want to set the period/budget
> to
> > hours/days? Then we couldn't support it if we use uint32 type for
> > period/budget. (This is just my subtle concern. I'm not arguing that we
> > have to use uint64 or uint32. As long as everyone agrees with a type, I
> can
> > just change it to the agreed type very quickly.) Do you have any
> suggestion
> > of how we can reach an agreement and get the range finalized? ​
>
> Let's see what others, mainly George and Dario, think.
>

​Sure! Thanks!

Meng​


-- 


-----------
Meng Xu
PhD Student in Computer and Information Science
University of Pennsylvania

[-- Attachment #1.2: Type: text/html, Size: 5086 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:[~2014-08-29 19:35 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-24 22:58 Introduce rt real-time scheduler for Xen Meng Xu
2014-08-24 22:58 ` [PATCH v1 1/4] xen: add real time scheduler rt Meng Xu
2014-08-26 14:27   ` Jan Beulich
2014-08-27  2:07     ` Meng Xu
2014-08-27  6:26       ` Jan Beulich
2014-08-27 14:28         ` Meng Xu
2014-08-27 15:04           ` Jan Beulich
2014-08-28 16:06             ` Meng Xu
2014-08-29  9:05               ` Jan Beulich
2014-08-29 19:35                 ` Meng Xu [this message]
2014-09-03 14:08                 ` George Dunlap
2014-09-03 14:24                   ` Meng Xu
2014-09-03 14:35                     ` Dario Faggioli
2014-09-03 13:40   ` George Dunlap
2014-09-03 14:11     ` Meng Xu
2014-09-03 14:15       ` George Dunlap
2014-09-03 14:35         ` Meng Xu
2014-09-05  9:46     ` Dario Faggioli
2014-09-03 14:20   ` George Dunlap
2014-09-03 14:45     ` Jan Beulich
2014-09-03 14:59     ` Dario Faggioli
2014-09-03 15:27       ` Meng Xu
2014-09-03 15:46         ` Dario Faggioli
2014-09-03 17:13           ` George Dunlap
2014-09-03 15:13     ` Meng Xu
2014-09-03 16:06       ` George Dunlap
2014-09-03 16:57         ` Dario Faggioli
2014-09-03 17:18           ` George Dunlap
2014-09-04  2:15             ` Meng Xu
2014-09-04 14:27             ` Dario Faggioli
2014-09-04 15:30               ` Meng Xu
2014-09-05  9:36                 ` Dario Faggioli
2014-09-05 15:06                   ` Meng Xu
2014-09-05 15:09                     ` Dario Faggioli
2014-09-04  2:11         ` Meng Xu
2014-09-04 11:00           ` Dario Faggioli
2014-09-04 13:03           ` George Dunlap
2014-09-04 14:00             ` Meng Xu
2014-09-05 17:17   ` Dario Faggioli
2014-09-07  3:56     ` Meng Xu
2014-09-08 10:33       ` Dario Faggioli
2014-09-09 13:43         ` Meng Xu
2014-08-24 22:58 ` [PATCH v1 2/4] libxc: add rt scheduler Meng Xu
2014-09-05 10:34   ` Dario Faggioli
2014-09-05 17:17     ` Meng Xu
2014-09-05 17:50       ` Dario Faggioli
2014-08-24 22:58 ` [PATCH v1 3/4] libxl: " Meng Xu
2014-08-25 13:17   ` Wei Liu
2014-08-25 15:55     ` Meng Xu
2014-08-26  9:51       ` Wei Liu
2014-09-03 15:33   ` George Dunlap
2014-09-03 20:52     ` Meng Xu
2014-09-04 14:27     ` George Dunlap
2014-09-04 14:45       ` Dario Faggioli
2014-09-04 14:47       ` Meng Xu
2014-09-04 14:51         ` George Dunlap
2014-09-04 15:07           ` Meng Xu
2014-09-04 15:44             ` Dario Faggioli
2014-09-04 15:55               ` George Dunlap
2014-09-04 16:12                 ` Meng Xu
2014-09-05  9:19                   ` Dario Faggioli
2014-09-04 15:25         ` Dario Faggioli
2014-09-05 10:21   ` Dario Faggioli
2014-09-05 15:45     ` Meng Xu
2014-09-05 17:41       ` Dario Faggioli
2014-08-24 22:58 ` [PATCH v1 4/4] xl: introduce " Meng Xu
2014-08-25 13:31   ` Wei Liu
2014-08-25 16:12     ` Meng Xu
2014-09-03 15:52   ` George Dunlap
2014-09-03 22:28     ` Meng Xu
2014-09-05  9:40       ` Dario Faggioli
2014-09-05 14:43         ` Meng Xu

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='CAENZ-+m7FULo=ACpeyoFC_36g6F7-_dfRDPYMym=rbKthtqWpA@mail.gmail.com' \
    --to=xumengpanda@gmail.com \
    --cc=JBeulich@suse.com \
    --cc=chaowang@wustl.edu \
    --cc=dario.faggioli@citrix.com \
    --cc=dgolomb@seas.upenn.edu \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=lichong659@gmail.com \
    --cc=lu@cse.wustl.edu \
    --cc=mengxu@cis.upenn.edu \
    --cc=ptxlinh@gmail.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    --cc=xisisu@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 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).