Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] - Adding GPU and RAM temperature #14

Open
wes1993 opened this issue Sep 13, 2023 · 10 comments
Open

[Feature Request] - Adding GPU and RAM temperature #14

wes1993 opened this issue Sep 13, 2023 · 10 comments
Labels
enhancement New feature or request

Comments

@wes1993
Copy link

wes1993 commented Sep 13, 2023

Hello,
tanks a lot for you work!!

Could you think is possible to add support for GPU and RAM?

Best Regards
Stefano

@Meliox
Copy link
Owner

Meliox commented Sep 14, 2023

Hey,

Thanks.

If the info is available. Can you please share your sensor - j output?

@Meliox Meliox added the enhancement New feature or request label Sep 14, 2023
@wes1993
Copy link
Author

wes1993 commented Sep 14, 2023

Hello @Meliox , thanks a lot for your reply

{
   "drivetemp-scsi-5-0":{
      "Adapter": "SCSI adapter",
      "temp1":{
         "temp1_input": 40.000
      }
   },
   "drivetemp-scsi-3-0":{
      "Adapter": "SCSI adapter",
      "temp1":{
         "temp1_input": 41.000,
         "temp1_max": 0.000,
         "temp1_min": 0.000,
         "temp1_crit": 0.000,
         "temp1_lcrit": 0.000,
         "temp1_lowest": 41.000,
         "temp1_highest": 42.000
      }
   },
   "coretemp-isa-0000":{
      "Adapter": "ISA adapter",
      "Package id 0":{
         "temp1_input": 55.000,
         "temp1_max": 86.000,
         "temp1_crit": 100.000,
         "temp1_crit_alarm": 0.000
      },
      "Core 0":{
         "temp2_input": 54.000,
         "temp2_max": 86.000,
         "temp2_crit": 100.000,
         "temp2_crit_alarm": 0.000
      },
      "Core 1":{
         "temp3_input": 52.000,
         "temp3_max": 86.000,
         "temp3_crit": 100.000,
         "temp3_crit_alarm": 0.000
      },
      "Core 2":{
         "temp4_input": 55.000,
         "temp4_max": 86.000,
         "temp4_crit": 100.000,
         "temp4_crit_alarm": 0.000
      },
      "Core 3":{
         "temp5_input": 52.000,
         "temp5_max": 86.000,
         "temp5_crit": 100.000,
         "temp5_crit_alarm": 0.000
      }
   },
   "drivetemp-scsi-4-0":{
      "Adapter": "SCSI adapter",
      "temp1":{
         "temp1_input": 42.000,
         "temp1_max": 0.000,
         "temp1_min": 0.000,
         "temp1_crit": 0.000,
         "temp1_lcrit": 0.000,
         "temp1_lowest": 42.000,
         "temp1_highest": 43.000
      }
   }

Best Regards
Stefano

@Meliox
Copy link
Owner

Meliox commented Sep 15, 2023

It does not seem that GPU (or memory) temperature are present in the output.

According the lm-sensors instructions you can try the following:

To use sensors, follow these steps:

Install the lm-sensors package using your Linux distribution’s package manager.
Run the sensors-detect command as root to detect and configure sensors on your system.
Run the sensors command to display the sensor readings, including GPU temperature.

@wes1993
Copy link
Author

wes1993 commented Sep 15, 2023

Hello @Meliox ,
Is possible that this is because is an Nvidia GPU?

@Meliox
Copy link
Owner

Meliox commented Sep 18, 2023

I read that it should be possible by loading the correct module, but many recommend using
# nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits
Instead. Nvidia provide its own tools. Is it already installed as part of the Nvidia driver package? Can you install and run above?

Dimm should be possible with some configuration. https://wiki.archlinux.org/title/lm_sensors. I don't think it worth the extra effort. Configuration would have to be done by the user.

@wes1993
Copy link
Author

wes1993 commented Sep 23, 2023

Thanks again for your reply @Meliox,
Unfortunately i can't install the driver in the Host because i Need the GPU for the Guest Machines

@Meliox
Copy link
Owner

Meliox commented Sep 23, 2023

If you find another way. Please reach out.

@wes1993
Copy link
Author

wes1993 commented Jul 23, 2024

Hello Meliox, finally I have installed the Nvidia drivers in my host and now the command below works:

nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits

The output is the temperature:

root@pve:~# nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits
47

Could you please add this to your script?

Best regards
Stefano

@Meliox
Copy link
Owner

Meliox commented Jul 23, 2024

Thanks for sharing. Yes, I can look into that when I have time.

@wes1993
Copy link
Author

wes1993 commented Jul 23, 2024

For the fan speed the command is:

nvidia-smi --query-gpu=fan.speed --format=csv,noheader,nounits

Here the command output

root@pve:~# nvidia-smi --query-gpu=fan.speed --format=csv,noheader,nounits
39

Thanks a lot :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants