htop
htop copied to clipboard
macOS M1Max - CPU id (core id?) always 0?
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!
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?
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.
This seems to be unset on Darwin: https://github.com/htop-dev/htop/blob/bc22bee6505a4953d20eed96899d929e769a7baa/darwin/DarwinProcess.c#L299