From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Jed Smith <jed@linode.com>, Jan Beulich <JBeulich@novell.com>
Subject: Re: Re: [PATCH] x86: unconditionally mark TSC unstable under Xen
Date: Thu, 15 Jul 2010 09:30:29 -0700 [thread overview]
Message-ID: <4C3F37A5.9050606@goop.org> (raw)
In-Reply-To: <alpine.DEB.2.00.1007151656380.21432@kaball-desktop>
On 07/15/2010 08:57 AM, Stefano Stabellini wrote:
> On Wed, 14 Jul 2010, Jeremy Fitzhardinge wrote:
>
>> Subject: [PATCH] xen: disable xen_sched_clock by default
>>
>> xen_sched_clock only counts unstolen time. In principle this should
>> be useful to the Linux scheduler so that it knows how much time a process
>> actually consumed. But in practice this doesn't work very well as the
>> scheduler expects the sched_clock time to be synchronized between
>> cpus. It also uses sched_clock to measure the time a task spends
>> sleeping, in which case "unstolen time" isn't meaningful.
>>
>> So just use plain xen_clocksource_read to return wallclock nanoseconds
>> for sched_clock.
>>
>>
> I think that in this context is worth mentioning that
> xen_clocksource_read ends up calling pvclock_get_nsec_offset that calls
> native_read_tsc.
>
That's different. That's not a general rdtsc, but a specific use of the
tsc within the Xen clock ABI. We know and expect that the raw tsc value
could be dubious, but we also have the Xen-provided corrections to apply
to it.
J
next prev parent reply other threads:[~2010-07-15 16:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-14 19:24 [PATCH] x86: unconditionally mark TSC unstable under Xen Jed Smith
2010-07-14 21:36 ` Jeremy Fitzhardinge
[not found] ` <alpine.DEB.2.00.1007151656380.21432@kaball-desktop 4C3F37A5.9050606@goop.org>
2010-07-14 22:29 ` Jed Smith
2010-07-15 14:23 ` Jed Smith
2010-07-15 15:57 ` Stefano Stabellini
2010-07-15 16:30 ` Jeremy Fitzhardinge [this message]
2010-07-15 16:40 ` Dan Magenheimer
2010-07-15 16:45 ` Jeremy Fitzhardinge
2010-07-15 17:14 ` Dan Magenheimer
2010-07-15 17:30 ` Jeremy Fitzhardinge
2010-07-15 17:48 ` Dan Magenheimer
2010-07-15 18:05 ` Jeremy Fitzhardinge
2010-08-15 20:57 ` Ævar Arnfjörð Bjarmason
2010-08-15 23:40 ` Jeremy Fitzhardinge
2010-08-16 1:27 ` Ævar Arnfjörð Bjarmason
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=4C3F37A5.9050606@goop.org \
--to=jeremy@goop.org \
--cc=JBeulich@novell.com \
--cc=jed@linode.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.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.