amanusk / s-tui

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

AMDGPU Power reporting #164

Open schaerfo opened 4 years ago

schaerfo commented 4 years ago

I would like to add reporting of GPU power from the AMDGPU driver [1] in the power section of s-tui, would you be interested in that? However, since the driver reports power directly in Watts (instead of the energy consumed from which the power can be calculated by differentiation), some refactoring would be required.

[1] https://www.kernel.org/doc/html/latest/gpu/amdgpu.html#hwmon-interfaces

amanusk commented 4 years ago

I've been thinking about adding GPU support in general, but I don't want to create a mix of CPU and GPU stats.

I have implemented the basic functionality for Nvidia GPUs here: https://github.com/amanusk/s-tui/tree/nv-tui

Would be awesome to have a similar implementation for multiple AMD GPUs.

My dilemma is whether to have this as a separate project or simply to switch between GPU/CPU via a config. Would love to hear inputs

schaerfo commented 4 years ago

I think it would be most useful to be able to monitor CPU and GPU simultaneously, perhaps in separate s-tui instances. Would that be possible/convenient with a configuration option? I can also imagine to select between CPU and GPU modes at startup with a command line option.

robertobarreiro commented 1 year ago

AMD gpu fans and temps can be added, it would be great to do the same with power.