From: Milan Boberic <milanboberic94@gmail.com>
To: Dario Faggioli <dfaggioli@suse.com>
Cc: Andrew.Cooper3@citrix.com, tim@xen.org, julien.grall@arm.com,
stefano@stabellini.net, JBeulich@suse.com,
xen-devel@lists.xenproject.org
Subject: Re: null scheduler bug
Date: Thu, 27 Sep 2018 15:15:29 +0200 [thread overview]
Message-ID: <CADJ6SV2FP6Deu7SevTDNjT2sOJ2nQMeAOUS0J8jemamONfftiA@mail.gmail.com> (raw)
In-Reply-To: <39666f3710ae7adfbb43c9dc0efac0d60245c411.camel@suse.com>
Hi,
I applied patch and vwfi=native and everything works fine, I can
create and destroy guest domain as many times as I want.
I have to ask, will this patch have any impact on performance (I will
test it later, but I just need your opinions)?
And what this patch exactly do? I need to fully understand it because
I need to document it in my master thesis which will be finished soon
thanks to you people :D
Thank you for taking your time to make this patch, best regards!
On Thu, Sep 27, 2018 at 11:51 AM Dario Faggioli <dfaggioli@suse.com> wrote:
>
> On Tue, 2018-09-25 at 19:49 +0200, Dario Faggioli wrote:
> > [Adding a few people to the Cc-list. See below...]
> > On Tue, 2018-09-25 at 12:15 +0100, Julien Grall wrote:
> > > On 09/25/2018 10:02 AM, Dario Faggioli wrote:
> > > > On Mon, 2018-09-24 at 22:46 +0100, Julien Grall wrote:
> > > > >
> > My knowledge of RCU themselves would need refreshing, though. I
> > managed
> > to getbecome reasonably familiar with how the implementation we
> > imported works back then, when working on the said issue, but I guess
> > I
> > better go check the code again.
> >
> > I'm Cc-ing the people that have reviewed the patches and helping with
> > the idle timer problem, in case anyone has bright ideas out of the
> > top
> > of his head.
> >
> > Perhaps we should "just" get away from using RCU for domain
> > destruction
> > (but I'm just tossing the idea around, without much consideration
> > about
> > whether it's the right solution, or about how hard/feasible it really
> > is).
> >
> > Or maybe we can still use the timer, in some special way, if we have
> > wfi=native (or equivalent)...
> >
> So, I've had a look (but only a quick one).
>
> If we want to do something specific within the domain destruction path,
> we can add an rcu_barrier() there (I mean in domain_destroy()).
> However, that does not feel right either. Also, how can we be sure that
> the CPU never going through idle (as far as Xen knows, at least), isn't
> going to be problem for other RCU calls as well?
>
> Another thing that we can do is to act on the parameters that control
> the threshold which decides when a quiescent state is forced. This was
> basically what Julien was suggesting, but I still would avoid to do
> that always.
>
> So, basically, in this hackish patch attached, I added a new boot
> command line argument, called rcu_force_quiesc. If set to true,
> thresholds are set so that quiescence is always forced at each
> invocation of call_rcu(). And even if the new param is not explicitly
> specified, I do tweak the threshold when "wfi=native" is.
>
> Milan, can you apply this patch, add "wfi=native" again, and re-test?
> If it works, we'll decide what to do next.
>
> E.g., we can expose the RCU threshold via the appropriate set of boot
> time parameters --like Linux, from where this code comes, did/does--
> and document how they should be set, if one wants to use "wfi=native".
>
> Thanks and Regards,
> Dario
> --
> <<This happens because I choose it to happen!>> (Raistlin Majere)
> -----------------------------------------------------------------
> Dario Faggioli, Ph.D, http://about.me/dario.faggioli
> Software Engineer @ SUSE https://www.suse.com/
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-09-27 13:15 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-12 23:03 null scheduler bug Stefano Stabellini
2018-09-13 7:04 ` Dario Faggioli
[not found] ` <CADJ6SV2G=51BK2p-bouNGfiS5sP2tiV6ztZZ7PFGjiptRw_P3w@mail.gmail.com>
2018-09-13 8:24 ` Dario Faggioli
2018-09-13 15:18 ` Milan Boberic
2018-09-13 17:39 ` Dario Faggioli
2018-09-14 9:21 ` Milan Boberic
2018-09-20 13:04 ` Milan Boberic
2018-09-20 16:09 ` Dario Faggioli
2018-09-21 14:14 ` Milan Boberic
2018-09-21 16:20 ` Dario Faggioli
2018-09-24 21:46 ` Julien Grall
2018-09-25 9:02 ` Dario Faggioli
2018-09-25 10:12 ` Milan Boberic
2018-09-25 10:56 ` Julien Grall
2018-09-25 11:15 ` Julien Grall
2018-09-25 11:51 ` Milan Boberic
2018-09-25 17:49 ` Dario Faggioli
2018-09-27 9:50 ` Dario Faggioli
2018-09-27 13:15 ` Milan Boberic [this message]
2018-09-27 14:23 ` Dario Faggioli
2018-09-27 14:32 ` Dario Faggioli
2018-09-27 15:09 ` Julien Grall
2018-09-27 17:06 ` Dario Faggioli
2018-09-28 8:18 ` Milan Boberic
2018-10-01 12:03 ` Julien Grall
-- strict thread matches above, loose matches on Subject: below --
2018-09-13 8:15 Milan Boberic
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=CADJ6SV2FP6Deu7SevTDNjT2sOJ2nQMeAOUS0J8jemamONfftiA@mail.gmail.com \
--to=milanboberic94@gmail.com \
--cc=Andrew.Cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=dfaggioli@suse.com \
--cc=julien.grall@arm.com \
--cc=stefano@stabellini.net \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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).