From: Chris Snook <csnook@redhat.com>
To: akataria@vmware.com
Cc: Alok kataria <alokkataria1@gmail.com>,
Thomas Gleixner <tglx@linutronix.de>,
Jeff Hansen <x@jeffhansen.com>,
"torvalds@linux-foundation.org" <torvalds@linux-foundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"mingo@elte.hu" <mingo@elte.hu>
Subject: Re: [PATCH] Re: x86_32 tsc/pit and hrtimers
Date: Thu, 09 Oct 2008 18:50:26 -0400 [thread overview]
Message-ID: <48EE8AB2.5000302@redhat.com> (raw)
In-Reply-To: <1223589220.32639.24.camel@alok-dev1>
Alok Kataria wrote:
> On Thu, 2008-10-09 at 14:03 -0700, Chris Snook wrote:
>> Alok kataria wrote:
>>> On Thu, Oct 9, 2008 at 12:53 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
>>>> On Thu, 9 Oct 2008, Jeff Hansen wrote:
>>>>
>>>>> OK, so are we all agreed that something like clocksource_trust=tsc would be
>>>>> the best?
>>>> No, it's per affected device: tsc=trust or tsc=stable or whatever
>>>> unintuitive name we want to come up. And it is a modification to TSC
>>>> not to the clocksource layer.
>>> Yep, this is cool. I too have a patch in my local tree which does a
>>> similar thing i have a tsc_reliable flag which is set right now only
>>> when we are running under a VMware hypervisor.
>>> Along with marking the no_verify flag for TSC, this patch of mine also
>>> skips the TSC synchornization checks.
>>>
>>> The TSC synchronization loop which is run whenever a new cpu is
>>> brought up is not actually needed on systems which are known to have a
>>> reliable TSC. TSC between 2 cpus can be off by a marginal value on such
>>> systems and thats okay for timekeeping, since we do check for tsc going
>>> back in read_tsc.
>>>
>>> Can this reasoning be included and synchronization skipped for all
>>> these systems with reliable aka trustworthy TSC's ?
>> In general, no. Not all hardware/hypervisors behave this way, even when the TSC
>> is otherwise stable once synchronized.
>
> I agree that in general this should be no, but since this is a
> commandline variable it will be normally set for only those systems
> which have only TSC as a option or know that the TSC is reliable.
> wouldn't doing this be ok for such systems ?
Hardware doesn't deliberately do any TSC synchronization, though you might get
it by accident in some configurations. A VMware guest gets it for free thanks
to the hypervisor doing it in software, but we need to run the check when we're
booting on bare metal. Jeff's patch enables the feature with as little risk as
possible. TSC sync is pretty cheap, so it's not worth it to add a more
dangerous special case just for guests of certain hypervisors.
-- Chris
next prev parent reply other threads:[~2008-10-09 22:51 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-07 22:41 x86_32 tsc/pit and hrtimers Jeff Hansen
2008-10-08 18:41 ` Chris Snook
2008-10-08 19:46 ` Jeff Hansen
2008-10-08 20:25 ` Chris Snook
2008-10-08 21:43 ` [PATCH] " Jeff Hansen
2008-10-08 21:47 ` Randy.Dunlap
2008-10-08 21:47 ` Chris Snook
2008-10-08 21:56 ` Jeff Hansen
2008-10-09 7:14 ` Thomas Gleixner
2008-10-09 18:39 ` Chris Snook
2008-10-09 19:18 ` Thomas Gleixner
2008-10-09 19:45 ` Jeff Hansen
2008-10-09 19:53 ` Thomas Gleixner
2008-10-09 20:45 ` Alok kataria
2008-10-09 21:03 ` Chris Snook
2008-10-09 21:18 ` Jeff Hansen
2008-10-09 22:03 ` Alok Kataria
2008-10-09 21:53 ` Alok Kataria
2008-10-09 22:50 ` Chris Snook [this message]
2008-10-09 23:22 ` Alok Kataria
2008-10-09 23:37 ` Chris Snook
2008-10-10 14:24 ` Jeff Hansen
2008-10-09 17:20 ` Pavel Machek
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=48EE8AB2.5000302@redhat.com \
--to=csnook@redhat.com \
--cc=akataria@vmware.com \
--cc=alokkataria1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=x@jeffhansen.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