lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 11 Jun 2008 08:36:44 -0700
From:	Arjan van de Ven <arjan@...radead.org>
To:	"linux-os (Dick Johnson)" <linux-os@...logic.com>
Cc:	"Jan Engelhardt" <jengelh@...ozas.de>,
	"Kok, Auke" <auke-jan.h.kok@...el.com>,
	"solsTiCe d'Hiver" <solstice.dhiver@...il.com>,
	<linux-kernel@...r.kernel.org>
Subject: Re: PROBLEM: no cpu MHz in /proc/cpuinfo on 2.6.25.4-rt6

On Wed, 11 Jun 2008 10:14:50 -0400
"linux-os (Dick Johnson)" <linux-os@...logic.com> wrote:

> 
> I use CPU frequency to scale the output of rdtsc when timing
> routines being optimized.

Ok this is broken in various really bad ways.

1) CPU frequency is very fluctuating, it changes in principle every
millisecond or more
2) the rdtsc "frequency" is conceptually unrelated to cpu frequency. In
fact, you'll be hard-pressed to buy a system today where this
relationship works....


> If CPU frequency goes away, I'll
> have to add calibration routines to a lot of code. I don't
> think one should just dispose of something that has been
> useful for many years because they don't understand its
> utility.

clearly you don't understand it either ;-)

I'm not arguing for removing it, at all. I'm just arguing that any user
of it (being human or program) has some problems in how they use the
data.



-- 
If you want to reach me at my work email, use arjan@...ux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ