Subject: Re: RFC: est.c driver synced with OpenBSD.
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 09/01/2006 14:42:14
--AqCDj3hiknadvR6t
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 01, 2006 at 08:35:58AM -0400, Steven M. Bellovin wrote:
> On Fri, 01 Sep 2006 14:01:47 +1000, Simon Burge <simonb@NetBSD.org> wrote:
>=20
>=20
> >=20
> > And blind luck wins!
> >=20
> > I've got a little script that cycles through the frequencies every 2
> > seconds, and prints some info gathered from the kernel.  I then started
> > a "make -j4" to keep the system busy.  Note here that the MSR_PERF_CTL
> > value of 0x613 is the value for the lowest CPU speed (1000MHz).
>=20
> Let me see if I understand the situation correctly.  If we had good ACPI
> support -- and for laptops, there was a lot of progress a few months ago,
> though it seems to have stalled; I'm one feature away from being able to
> use it on my laptop -- we could read the speed tables directly.  However,
> we don't have that, so we need to resort to heuristics to guess what the
> speeds should be?  Is that a fair summary?  Or is the data just not
> present on the machine in any form?

The ACPI table doesn't always have information about that, anyway.  For
example, a lot of desktop CPUs support EST, but you never find
information in the APCI table because the motherboard maker simply
doesn't control what CPU you put in it.  Also, I was surprised but the
table in Simon's laptop doesn't contain that information either.  So
even if we had the few bits to get the information from the ACPI table,
we'd still need static tables for other situations.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--AqCDj3hiknadvR6t
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iQEVAwUBRPgqptgoQloHrPnoAQJ3IQf+OCwBpm2NVAfIVhsYSaXfhLDhTZFGaLWu
vAy1S5NLENFH9I3MQnDPyrA6l+sAyMM0O7Q/pIgb+SLrxT0Y9thANeNjHGe5tlyw
hCI8FhjAGrxhoHCMv3SGS7L05erA0JwbOhYIyNbTZg5gMVsClXLuVwD+TK91BpIo
+Lt26aYmuCmzFOrIP1ZM7gnOL1lPRrRBUZM+kcBSL7/j79RxV6eI6NAKTq+6hcJx
+MfmQbO3xqQMsbhfEJ5lpstZ3DsYL+PcSEVGzGrZ3zvrP+pprODO8nTohiCu3G/M
JVvf8HP7CfdRuWKPGSiz/F6jobhJ1KZKaOvO4vnlMbf4l/mQ9rgPVw==
=uLS2
-----END PGP SIGNATURE-----

--AqCDj3hiknadvR6t--