amanusk / s-tui

Terminal-based CPU stress and monitoring utility
https://amanusk.github.io/s-tui/
GNU General Public License v2.0
4.06k stars 140 forks source link

Add power usage to Zen (Ryzen) #101

Closed gsedej closed 5 years ago

gsedej commented 5 years ago

I just came across a github project that calculates Watts from energy counters (joules) and time. (for AMD ZEN arhitecture) https://github.com/djselbeck/rapl-read-ryzen/

The data is gained from MSR package. There is code in C function static int rapl_msr_amd_core() in file https://github.com/djselbeck/rapl-read-ryzen/blob/master/ryzen.c

amanusk commented 5 years ago

I'll close this as this is a duplicate of #32. @gsedej will you be able to test this when/if this is implemented?

gsedej commented 5 years ago

Definitely! Looking forward!