report core throttles for each CPU#1479
Conversation
It's possible for two cpus in the same core to have a different value for the core_throttle_count, so this change reports a cpu_core_throttles metric for each cpu and not just each core. Hyperthreading systems have two cpus per core. Fixes prometheus#1472 Signed-off-by: Paul Gier <pgier@redhat.com>
2844d17 to
ab8fb46
Compare
|
Interesting, I would really like to know what |
|
Here's the output of lscpu on my thinkpad T580: |
|
Looking at the https://github.com/torvalds/linux/blob/master/arch/x86/kernel/cpu/mce/therm_throt.c where the Wouldn't |
|
@adelton thanks for looking into this. Yeah, it seems weird that they would be different for the same core. But I'm ok with closing this if it's not useful to anyone else, since the differences I'm seeing are small and probably not that useful for metrics. For hyperthreading info, #1489 does the trick for me. I found |
|
Agreed. If we can use #1489 for the hyper-threading support and take this pull request out of the picture, it would certainly simplify things. |
|
Closing this one as won't fix, since I think in general the current implementation is fine. And the original use case to get cpu topology information is better handled by #1489. |
It's possible for two cpus in the same core to have a different
value for the core_throttle_count, so this change reports a
cpu_core_throttles metric for each cpu and not just each core.
Hyperthreading systems have two cpus per core.
Fixes #1472