Rick Mohr <[EMAIL PROTECTED]> writes: > 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.)
Trying to parse /proc/cpuinfo in a reliable way is a really painful exercise. The file format varies stochastically over kernel versions and architectures. -- Leif Nixon Systems expert ------------------------------------------------------------ National Supercomputer Centre Linkoping University ------------------------------------------------------------
