htop icon indicating copy to clipboard operation
htop copied to clipboard

macOS M1Max - CPU id (core id?) always 0?

Open MarximusMaximus opened this issue 2 years ago • 1 comments

When running many things, enough to peg all cores to 100%, htop reports CPU id to be 0 for all processes. I was under the impression that this id should range from 0-9 for this chip b/c of having 10 cores (2 little, 8 big). Is this a bug or am I incorrect in my understanding. Thanks!

MarximusMaximus avatar Aug 27 '22 00:08 MarximusMaximus

THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER. — The Last Question by Isaac Asimov, 1956

  • Which OS/distribution?
  • Which htop version?
  • Which CPU?
  • Got some cat /proc/cpuinfo?
  • Is SMP/NUMA active?
  • Which program to create load?
  • Is that program actually multithreaded?
  • Got screenshots?
  • Got other relevant information?

BenBE avatar Aug 27 '22 08:08 BenBE

With 3.2.1 on Mac OS 12.6 and Intel CPU I see basically the same problem. The CPU number is always 0 for every process on my six core Intel Mac mini (3 GHz 6-Core Intel Core i5). This is Mac OS so no /proc filesystem. Note that this is true for me regardless of load, unlike the original poster.

jj5836 avatar Sep 24 '22 03:09 jj5836

This seems to be unset on Darwin: https://github.com/htop-dev/htop/blob/bc22bee6505a4953d20eed96899d929e769a7baa/darwin/DarwinProcess.c#L299

BenBE avatar Sep 25 '22 01:09 BenBE