On Wed, Jul 23, 2003 at 02:14:08PM -0400, Rick Mohr wrote: > > I believe someone mentioned a while back that Ganglia reported the wrong > number of CPUs for hyperthread enabled processors. I ran into the same > problem, so I created a quick and dirty patch for Linux. It simply checks > for the "ht" flag in /proc/cpuinfo. (This may not be the best way, but it > works.)
I'm pretty sure this won't work. All P4's have the HTT flag, but many of them have a void implementation which just reports that they have a single logical CPU (IIRC, 533MHz FSB P4 (not Xeon) CPUs under 3.1GHz). Additionaly, if Linux obeys the BIOS setting for HTT this won't even be accurate for CPUs with more then one logical CPU. I'm not sure if that's the case or not. I know FreeBSD currently ignores the BIOS setting. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
pgpR3y0qlZmp9.pgp
Description: PGP signature