From: Dario Faggioli <dario.faggioli@citrix.com>
To: Meng Xu <xumengpanda@gmail.com>
Cc: Sisu Xi <xisisu@gmail.com>,
George Dunlap <george.dunlap@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
"mengxu@cis.upenn.edu" <mengxu@cis.upenn.edu>,
Chong Li <lichong659@gmail.com>,
Dagaen Golomb <dgolomb@seas.upenn.edu>
Subject: Re: [PATCH v2] Modified RTDS scheduler to use an event-driven model instead of polling.
Date: Fri, 10 Jul 2015 12:07:22 +0200 [thread overview]
Message-ID: <1436522842.22672.357.camel@citrix.com> (raw)
In-Reply-To: <CAENZ-+=GBRa4rBEq+f9Ax4h0_XHPfBJyr-E6FhGyh4pDGkQ69w@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2575 bytes --]
On Wed, 2015-07-08 at 20:46 -0700, Meng Xu wrote:
> 2015-07-08 1:01 GMT-07:00 Dario Faggioli <dario.faggioli@citrix.com>:
> But after thinking twice, maybe runq approach is a better way since it
> just make the position information more meaningful. As you described
> in the previous email, we can compare the position of a vcpu inserted
> into the runq with the number of pCPUs so as to quickly know which
> pCPU to tickle.
>
> > I appreciate this is a rather big change
> > (although, perhaps it looks bigger said than done), but I think it could
> > be worth pursuing.
>
> It is worth pursuing since it simplify the cpu tickling process a lot.
>
Great! :-)
> > I think that I'd like to know why you think adding another queue is
> > necessary, instead of just leaving the vCPUs in the actual runq. Is
> > there something bad about that which I'm missing?
>
> Actually, nothing bad. I just recalled the situation when we split a
> runq to runq and delpetedq. I was thinking it might be the case here
> as well. (Yes, it is different here since we can get more useful
> information to tickle cpu if we put vCPUs into runq instead of adding
> one more queue.) :-)
> >
IMO, having things split could be beneficial for scalability *BUT* only
in case we also get rid of the big spin lock. Until we won't get there
(which is not that urgent) using the same queue is fine.
For runq and depletedq, the same applies, with the small difference
that, since both need to be sorted, having two actual queues looks
easier than having just one with a marker, but that's only an
implementation detail, it's fine however it is. OTOH, in this case,
using runq only, without introducing another queue, actually helps
making things simpler!
> > Yes, but if we use two queues, we defeat at least part of this
> > optimization/simplification.
>
> Agree. Thanks! :-D
>
Perfect. Looking also at Dagaen replies, it sounds like we have a plan!
Looking forward to see the code! :-D
> > I don't think the added space would be a problem, but I don't see why we
> > need it.
>
> If we don't add another queue, no extra space. So we get free lunch here. :-)
>
Yeah, but let's not exaggerate with free lunches, I'm trying to loose
some weight! :-P
Thanks and 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-07-10 10:07 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-27 19:46 [PATCH v2] Modified RTDS scheduler to use an event-driven model instead of polling Dagaen Golomb
2015-06-27 19:53 ` Dagaen Golomb
2015-06-28 7:10 ` Meng Xu
2015-06-28 17:49 ` Dagaen Golomb
2015-06-28 19:11 ` Meng Xu
2015-06-28 20:17 ` Dagaen Golomb
2015-06-28 20:45 ` Meng Xu
2015-07-06 17:37 ` Dario Faggioli
2015-07-06 17:41 ` Dario Faggioli
2015-07-09 16:19 ` Dagaen Golomb
2015-06-28 7:06 ` Meng Xu
2015-07-06 17:30 ` Dario Faggioli
2015-07-07 5:51 ` Meng Xu
2015-07-07 14:03 ` Dario Faggioli
2015-07-08 5:56 ` Meng Xu
2015-07-08 8:01 ` Dario Faggioli
2015-07-09 3:46 ` Meng Xu
2015-07-09 16:39 ` Dagaen Golomb
2015-07-10 10:07 ` Dario Faggioli [this message]
2015-07-09 16:35 ` Dagaen Golomb
2015-07-09 16:31 ` Dagaen Golomb
2015-07-09 16:17 ` Dagaen Golomb
-- strict thread matches above, loose matches on Subject: below --
2015-07-03 5:12 Meng Xu
2015-07-06 11:51 ` Dario Faggioli
2015-06-27 19:35 Dagaen Golomb
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=1436522842.22672.357.camel@citrix.com \
--to=dario.faggioli@citrix.com \
--cc=dgolomb@seas.upenn.edu \
--cc=george.dunlap@eu.citrix.com \
--cc=lichong659@gmail.com \
--cc=mengxu@cis.upenn.edu \
--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 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.