Re: top cpu stats are wrong with hyper threading

2018-10-15 Thread Scott Cheloha
On Fri, Oct 05, 2018 at 04:27:17PM +0200, Moritz Buhl wrote: > > Due to the SMT stuff the output of top showed the first few cpus instead > of the ones that are actually active. > > To reproduce the bad output: > Use a machine with hyper therading, top should show half the cpus, of > which every

top cpu stats are wrong with hyper threading

2018-10-05 Thread Moritz Buhl
Hi, Due to the SMT stuff the output of top showed the first few cpus instead of the ones that are actually active. To reproduce the bad output: Use a machine with hyper therading, top should show half the cpus, of which every second is disabled. The following diff skips the disabled cpus and dis