LWN.net Logo

Re: [PATCH] x86: Export tsc related information in sysfs

From:  Ingo Molnar <mingo-AT-elte.hu>
To:  Dan Magenheimer <dan.magenheimer-AT-oracle.com>
Subject:  Re: [PATCH] x86: Export tsc related information in sysfs
Date:  Tue, 18 May 2010 02:00:52 +0200
Cc:  Thomas Gleixner <tglx-AT-linutronix.de>, Andi Kleen <andi-AT-firstfloor.org>, Arjan van de Ven <arjan-AT-infradead.org>, Venkatesh Pallipadi <venki-AT-google.com>, "H. Peter Anvin" <hpa-AT-zytor.com>, chris.mason-AT-oracle.com, linux-kernel-AT-vger.kernel.org
Archive-link:  Article, Thread


* Dan Magenheimer <dan.magenheimer@oracle.com> wrote:

> OK, well ignoring the metaphor, it's clear we 
> disagree on a point that neither one of us can 
> prove: You think your decision to avoid sharing 
> kernel information will stop system programmers 
> from using rdtsc, and I think some are going to use 
> rdtsc anyway and blame Linux when something 
> eventually and silently breaks.

Applications can do various unreliable things, the 
kernel cannot do anything about that.

The point is for the kernel to not be complicit in 
practices that are technically not reliable.

So the kernel wont 'signal' that something is safe to 
use if it is not safe to use.

One suggestion in this thread makes sense i think: to 
signal via sysfs that gettimeofday is slow.

Plus lets hope that we really can figure out a fast, 
TSC based gettimeofday implementation. If that is 
possible then user-space will get a fast gettimeofday 
right out of box.

Thanks,

	Ingo


(Log in to post comments)

Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds