btop icon indicating copy to clipboard operation
btop copied to clipboard

[BUG] Combining every second core on OpenBSD

Open ehawk opened this issue 4 months ago • 5 comments

On OpenBSD/SPARC64 I noticed that a pair of cores in the load graph would have the same value (such that a single threaded workload at 100% would appear on both core0 and core1).

I assumed this was a SPARC specific issue, but after running it on amd64, the same thing happened.

Looking at the source code, this appears to be on purpose:

https://github.com/aristocratos/btop/blame/fac4a704ecae934cbfa732318249d8cec78b627b/src/openbsd/btop_collect.cpp#L391

I'm not sure why one would want this behavior, can we consider changing it?

ehawk avatar Aug 26 '25 13:08 ehawk

@ehawk First off, OpenBSD on Sparc64 sounds incredibly cool. Second, how did you mitigate the IPO is not supported error?

anoduck avatar Sep 07 '25 00:09 anoduck

cmake -DBTOP_LTO=OFF

deckstose avatar Sep 07 '25 07:09 deckstose

I'm not sure why one would want this behavior, can we consider changing it?

@joske

deckstose avatar Sep 07 '25 10:09 deckstose

cmake -DBTOP_LTO=OFF

Or I could try this... (You know, that's so simple, it's almost unfair.) 😆

@imwints Thank you!

anoduck avatar Sep 07 '25 21:09 anoduck

@imwints hmm, I forgot why this was 😅. Probably related to hyperthreading (as I only had x86)

joske avatar Sep 08 '25 07:09 joske