From: Dario Faggioli <dfaggioli@suse.com>
To: Boris Ostrovsky <boris.ostrovsky@oracle.com>,
Ryan Thibodeaux <thibodux@gmail.com>
Cc: luca abeni <luca.abeni@santannapisa.it>,
xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org,
oleksandr_andrushchenko@epam.com, tglx@linutronix.de,
jgross@suse.com, ryan.thibodeaux@starlab.io
Subject: Re: [PATCH] x86/xen: Add "xen_timer_slop" command line option
Date: Wed, 27 Mar 2019 16:19:37 +0100 [thread overview]
Message-ID: <12fc5972c05b1bc2cbabe2c422e5541e154c3ad9.camel@suse.com> (raw)
In-Reply-To: <04ee9e67-5720-72df-9e2e-2ba42febf90f@oracle.com>
On Wed, 2019-03-27 at 10:46 -0400, Boris Ostrovsky wrote:
> On 3/27/19 6:00 AM, Ryan Thibodeaux wrote:
> > On Tue, Mar 26, 2019 at 07:21:31PM -0400, Boris Ostrovsky wrote:
> > > On 3/26/19 5:13 AM, Dario Faggioli wrote:
> > > >
> > > > And this is basically why I was also thinking we can/should
> > > > lower the
> > > > default value of TIMER_SLOP, here in the Xen clock
> > > > implementation in
> > > > Linux.
> > > What do you think would be a sane value? 10us? Should we then
> > > still keep
> > > this patch?
> > >
> > > My concern would be that if we change the current value and it
> > > turns out
> > > to be very wrong we'd then have no recourse.
> > >
> > Speaking out of turn but as a participant in this thread, I would
> > not
> > assume to change the default value for all cases without
> > significant
> > testing by the community, touching a variety of configurations.
> >
> If we are to change the default it would be good to at least collect
> some data on distribution of delta values in
> clockevents_program_event(). But as I said, I'd keep the patch.
>
I would definitely take/keep this patch. Choosing a more sane (IMO)
default and making things flexible and configurable are not mutually
exclusive things. :-)
I think that having this set to 100us stands in the way of a lot of
people wanting to do time sensitive stuff in Xen VMs. I'd at least
halve that to 50us, but 10us is even better.
But sure we can do this at a later point. And even at that point, a
patch like this is valuable, because there might be people that might,
probably after some testing of their own setup, want to lower it even
further.
> Also, as far as the comment describing TIMER_SLOP, I agree that it is
> rather misleading.
>
> I can replace it with /* Minimum amount of time until next clock
> event
> fires */, I can do it while committing so no need to resend.
>
Yeah, much better, yes.
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/
next prev parent reply other threads:[~2019-03-27 15:20 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-22 18:29 thibodux
2019-03-22 22:10 ` Boris Ostrovsky
2019-03-23 2:58 ` Dario Faggioli
2019-03-23 10:41 ` luca abeni
2019-03-25 12:05 ` luca abeni
2019-03-25 13:43 ` Boris Ostrovsky
2019-03-25 14:07 ` luca abeni
2019-03-25 14:11 ` Ryan Thibodeaux
2019-03-25 17:36 ` Ryan Thibodeaux
2019-03-25 18:31 ` Boris Ostrovsky
2019-03-26 9:13 ` Dario Faggioli
2019-03-26 11:12 ` luca abeni
2019-03-26 11:41 ` Ryan Thibodeaux
2019-03-26 23:21 ` Boris Ostrovsky
2019-03-27 10:00 ` Ryan Thibodeaux
2019-03-27 14:46 ` Boris Ostrovsky
2019-03-27 14:59 ` Ryan Thibodeaux
2019-03-27 15:19 ` Dario Faggioli [this message]
2019-03-23 12:00 ` Ryan Thibodeaux
2019-03-24 18:07 ` Boris Ostrovsky
2019-03-25 10:36 ` Dario Faggioli
2019-04-24 18:47 ` Boris Ostrovsky
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=12fc5972c05b1bc2cbabe2c422e5541e154c3ad9.camel@suse.com \
--to=dfaggioli@suse.com \
--cc=boris.ostrovsky@oracle.com \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.abeni@santannapisa.it \
--cc=oleksandr_andrushchenko@epam.com \
--cc=ryan.thibodeaux@starlab.io \
--cc=tglx@linutronix.de \
--cc=thibodux@gmail.com \
--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
all inboxes | Powered by JetHome®