xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Meng Xu <xumengpanda@gmail.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>,
	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>, Jan Beulich <JBeulich@suse.com>,
	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, 5 Sep 2014 11:36:36 +0200	[thread overview]
Message-ID: <1409909796.2673.256.camel@Solace.lan> (raw)
In-Reply-To: <CAENZ-+mkwqJH8YhtqVuky_DCecfMjKTG5Jo9K7acTsDEDdHztg@mail.gmail.com>


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

On gio, 2014-09-04 at 11:30 -0400, Meng Xu wrote:
> 
> 
> 2014-09-04 10:27 GMT-04:00 Dario Faggioli <dario.faggioli@citrix.com>:

>         > > For instance, I can put, in an SMP guest, two real-time
>         applications
>         > > with different timing requirements, and pin each one to a
>         different
>         > > (v)cpu (I mean pin *inside* the guest). At this point, I'd
>         like for each
>         > > vcpu to have a set of RT scheduling parameters, at the Xen
>         level, that
>         > > matches the timing requirements of what's running inside.
>         > >
>         > > This may not look so typical in a server/cloud
>         environment, but can
>         > > happen (at least in my experience) in a mobile/embedded
>         env.
>         >
>         > But to play devil's advocate for a minute here:
>         >
>         
>         Hehe, please, be my guest! :-D :-D
>         
>         > couldn't you just put
>         > them in two different single-vcpu VMs then?
>         >
>         
> 
> 
> ​Well, let me give a simpler example:
> Suppose we have three tasks in one VM, each task has period 4ms and
> budget ​6ms (its utilization is 2/3).
>
You mean budget=4ms and period=6ms, don't you? :-)

>  If all these three tasks starts execution at the same time, we can
> use two full-capacity vcpus (200% capacity cpu resource) to schedule
> these three tasks. 
> However if you want to get two VMs, each of which has a full capacity
> vcpu (100% capacity cpu), we cannot schedule these three tasks,
> because one tasks cannot (well, at least very hard) migrate from one
> VM to another. 
> 
But... In this case, in the former configuration (1 VM with 2 vcpus),
each vcpu would (or at least can) have the same bandwidth of 100%, i.e.,
the same parameters... or am I missing something?

What we're tying to assess here, is the usefulness of the possibility of
setting _different_ parameters (and hence different pcpu bandwidth) for
each vcpu.

Also, it looks like you're assuming to have a real-time scheduler inside
the VM, which may or may not be the case.

> ​This is just a simple example, we could of course have an example
> like this but the vcpus are not full-capacity vcpus. :-)
> 
Yeah, well, perhaps it's a bit too simple. :-D

Don't get me wrong, I continue thinking per-vcpu params is something we
really want, it's just the example I'm not sure I'm getting/liking.

I still think the example of multiple, concurrent and strictly related
activities having different timing requirements to be a really sensible
one. In fact, in that case, especially if one does not have a real-time
scheduler inside the guest, mapping those requirements on the Xen
scheduler is the easier (only?) way to port the app from baremetal to
virtual machine!

Regards,
Dario

PS. BTW, Meng, can you use plain text emails when sending to the list?

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.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: 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:[~2014-09-05  9:36 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
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 [this message]
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=1409909796.2673.256.camel@Solace.lan \
    --to=dario.faggioli@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=chaowang@wustl.edu \
    --cc=dgolomb@seas.upenn.edu \
    --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 \
    --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 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).