From: Dario Faggioli <dario.faggioli@citrix.com>
To: Meng Xu <xumengpanda@gmail.com>, "Yu-An(Victor) Chen" <chen116@usc.edu>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: xen 4.5.0 rtds scheduler perform poorly with 2vms
Date: Sun, 29 Nov 2015 17:27:09 +0100 [thread overview]
Message-ID: <1448814429.7833.303.camel@citrix.com> (raw)
In-Reply-To: <CAENZ-+mN9mDy+vSBb99X2v68Qj2QqBm1v26x9TkOLDv3Tsy38g@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2863 bytes --]
On Sun, 2015-11-29 at 10:38 -0500, Meng Xu wrote:
>
>
> 2015-11-29 7:46 GMT-05:00 Yu-An(Victor) Chen <chen116@usc.edu>:
> > Hi Meng,
> >
> Hi,
>
> >
> > So I will rewrite my setup here again, but this time I shorten the
> > period and budget for RTDS like you suggested:
> >
> Nice! :-)
>
>
> > -----------------------------------------------------------------
> > ------------------------------------------------------------
> >
> (I like this line, BTW. :-D)
> >
> >
> > for xen-credit : 2vms (both vm are given 8 vCPUs) sharing 8 cores
> > (cpu 0-7) using credit scheduler(both with weight of 800 and
> > capacity of 400)
> > for xen-rtds: 2 vms (both vm are given 8 vCPUs) sharing 8 cores
> > (cpu0-7) using RTDS (both with period of 4000(4ms) and budget of
> > 2000(2ms)))
> > In both setup, dom0 is using 1 core from cpu 8-15
> >
> > In both setup:
> >
> > I loaded VM2 with constant running task with total utilization of 4
> > cores.
> > and in VM1 I run iterations of tasks of total utilization rate of 1
> > cores, 2 cores, 3 cores, 4 cores, and then record their
> > schedulbility.
> > -----------------------------------------------------------------
> > ------------------------------------------------------------
> >
> > So st_jobs_stats for the missed deadline jobs are:
> >
> > trial #1 composed of 2 tasks: total tasks utilization rate = 1
> >
> > (period, exe, deadline)=(21ms,12.023ms,21ms) -> miss all deadline
> > (period, exe, deadline)=(100ms,37.985ms,100ms) -> no miss
> >
> yes, this is the information I need and we can solve the mystery
> now...
> Let's look at this task:
> (period, exe, deadline)=(21ms,12.023ms,21ms) -> miss all deadline
> Its utilization is 12.023 / 21 ~= 0.5614;
> Your VCPU utilization is only 2ms / 4ms = 0.5
> So even when this task is pinned to one VCPU, it will still miss
> deadline because it has only one thread. :-)
>
Mmmm... As I said many times, I don't remember much of all those RT
schedulability formulas, but, is really that simple? I mean, if the in-
guest scheduling algorithm is global (e.g., global-EDF), the task could
migrate, couldn't it?
Is it really the case that you can never schedule tasks with U greater
than the smaller U of the various vCPUs (which seems to me to be what
you're implying)?
Anyway...
> So basically, it is because your configuration is incorrect. That's
> also why you need to read some literatures in real-time scheduling
> theory. ;-)
>
... I totally agree with this! ;-D
Regards,
Dario
>
--
<<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
next prev parent reply other threads:[~2015-11-29 16:27 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 15:42 xen 4.5.0 rtds scheduler perform poorly with 2vms Yu-An(Victor) Chen
2015-11-23 16:07 ` Meng Xu
2015-11-23 16:35 ` Yu-An(Victor) Chen
2015-11-24 2:23 ` Meng Xu
2015-11-24 4:57 ` Yu-An(Victor) Chen
2015-11-24 6:19 ` Meng Xu
2015-11-25 0:15 ` Dario Faggioli
2015-11-27 16:36 ` Yu-An(Victor) Chen
2015-11-27 17:23 ` Dario Faggioli
2015-11-27 17:41 ` Meng Xu
2015-11-27 19:50 ` Yu-An(Victor) Chen
2015-11-28 0:17 ` Meng Xu
2015-11-28 12:20 ` Yu-An(Victor) Chen
2015-11-28 15:09 ` Meng Xu
2015-11-29 12:46 ` Yu-An(Victor) Chen
2015-11-29 15:38 ` Meng Xu
2015-11-29 16:27 ` Dario Faggioli [this message]
2015-11-29 16:44 ` Meng Xu
2015-11-29 18:16 ` Yu-An(Victor) Chen
2015-12-01 8:59 ` Dario Faggioli
2015-12-01 10:11 ` Lars Kurth
2015-12-01 16:01 ` Yu-An(Victor) Chen
2015-12-02 5:54 ` Meng Xu
2015-12-02 10:54 ` Wei Liu
2015-12-02 11:01 ` Ian Campbell
2015-12-02 11:27 ` Dario Faggioli
2015-12-02 11:03 ` Lars Kurth
2015-12-02 11:19 ` Dario Faggioli
2015-12-02 16:57 ` Meng Xu
2015-11-29 16:18 ` Dario Faggioli
2015-11-29 16:21 ` 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=1448814429.7833.303.camel@citrix.com \
--to=dario.faggioli@citrix.com \
--cc=chen116@usc.edu \
--cc=xen-devel@lists.xen.org \
--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.