Jump to content

[PLUGIN] GPU Statistics


Recommended Posts

On 07/01/2024 at 02:47, JamesHaefner said:

Ma fenêtre GPU Stats sur le tableau de bord ne restera pas étendue pour montrer l'information. Quand j'essaie d'élargir la vue pour voir les détails, ça montre juste l'en-tête. Quand j'essaie de l'étendre quand il pense qu'il s'est effondré, les détails montrent un bref moment puis disparaissent à nouveau, même si la fenêtre pense qu'elle est encore élargie. Y a-t-il des pensées ?

I had the same problem: you have to clear the browser cache, cookies 🙂 and it works again!

  • Like 2
Link to comment

I'm not having any issue, but I also see this GPU not available bound to VFIO or inuse in a VM message when I expand the GPU pane in my dashboard.  It only pops up for about 2 seconds, then disappears.

 

I have both a Nvidia Quadro P400 and a AMD 3700G iGPU active (both configured with appropriate driver/TOP).  I only configure to display the Nvidia stats with this plugin, which works just fine.  Neither is bound, nor passed to any VM.  Running Unraid 6.12.8 and the latest GPU Statistics 2024-03-16.

 

Just thought I would pass along this data point.

Link to comment
  • 3 weeks later...
Posted (edited)

Wow, that fixed it - thanks so much!  It's weird that the default is 1000ms - I didn't change that field.

 

One last thing - although it shows up in the Dashboard now, I notice that there are no statistics - as though it's not updating.  Does it only show activity when it's transcoding?

Screenshot 2024-05-01 at 6.42.50 PM.png

Edited by mklcolvin
Additional issue to original post
Link to comment
  • 2 weeks later...

I swapped my 1080 out for a p40 and now was getting "Vendor command returned unparseable data."

gpustats.php output:

Array
(
    [code] => 200
    [message] => Configuration file contains invalid settings.
    [extra] => 
)


gpustats.cfg

MULTIGPU = "44:00.0"
TEMPFORMAT = "C"
UIREFRESH = 1
UIREFRESHINT = 2000
DISPCLOCKS = 1
DISPPCIUTIL = 1
DISPPWRDRAW = 1
DISPPWRSTATE = 1
DISPMEMUTIL = 1
DISPTEMP = 1
DISPFAN = 1
DISPENCDEC = 1
DISPTHROTTLE = 1
DISPSESSIONS = 1
DISP3DRENDER = 1
DISPBLITTER = 1
DISPVIDEO = 1
DISPVIDENH = 1
DISPINTERRUPT = 1
DISPPWRDRWSEL = "GPU"
DISPEVENT = 1
DISPVERTEX = 1
DISPTEXTURE = 1
DISPSHADEREXP = 1
DISPSEQUENCER = 1
DISPSHADERINTER = 1
DISPSCANCON = 1
DISPPRIMASSEM = 1
DISPDEPTHBLK = 1
DISPCOLORBLK = 1
DISPGFXTRANS = 1
MULTIGPUJSON = "%7B%2244%3A00.0%22%3A%7B%22id%22%3A%2244%3A00.0%22%2C%22model%22%3A%22NVIDIA+GeForce+GTX+1080%22%2C%22vendor%22%3A%22nvidia%22%2C%22guid%22%3A%22GPU-d58c31db-c36e-571d-ba3e-b5e039613a92%22%7D%7D"


The interface showed the correct device (Tesla P40) but the MULTIGPUJSON is still referencing the 1080. 
I was able to fix this by de-selecting the P40, saving, then re-selecting ans saving again.

  • Upvote 1
Link to comment
  • 3 weeks later...
On 5/10/2024 at 3:48 PM, Spitko said:

I swapped my 1080 out for a p40 and now was getting "Vendor command returned unparseable data."

 

The interface showed the correct device (Tesla P40) but the MULTIGPUJSON is still referencing the 1080. 
I was able to fix this by de-selecting the P40, saving, then re-selecting ans saving again.

 

Thanks for this. I just had this issue when I upgraded my Tesla P4 to a new card.

Link to comment
  • 3 weeks later...
16 minutes ago, sebrina said:

Could you consider adding monitoring for the graphics card’s tensor core? Currently, when I run operations, I am unable to determine whether the computations are being accelerated or not.

I‘m not an expert on Deep Learning stuff but AFAIK this is only possible with dlprof (Deep Learning Profile) which is part of their TensorFlow container and so to speak not possible in it‘s current form and I‘m not sure if there will be an easy implementation to that here on Unraid.

Link to comment
4 hours ago, sebrina said:

Could you consider adding monitoring for the graphics card’s tensor core? Currently, when I run operations, I am unable to determine whether the computations are being accelerated or not.

微信截图_20240622120141.png

Plugin only can show output in provided by nvidia-smi

  • Like 1
Link to comment

Hey Simon, I'm getting a couple of these warnings when on the frontpage dashboard:

[23-Jun-2024 14:04:29 Europe/Berlin] PHP Warning:  Undefined array key "refresh" in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code on line 390
[23-Jun-2024 14:04:29 Europe/Berlin] PHP Deprecated:  abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code on line 390

 

I think they are coming from this line (it maybe needs a check if $display['refresh'] exists before doing max/abs) https://github.com/SimonFair/gpustat-unraid/blob/8b3fd1f2631dd9891aa1224ebec5df3d0df8bc0b/src/gpustat/usr/local/emhttp/plugins/gpustat/gpustatus.page#L359 - thanks! ;-)

 

Edited by Rysz
Link to comment
12 minutes ago, Rysz said:

Hey Simon, I'm getting a couple of these warnings when on the frontpage dashboard:

[23-Jun-2024 14:04:29 Europe/Berlin] PHP Warning:  Undefined array key "refresh" in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code on line 390
[23-Jun-2024 14:04:29 Europe/Berlin] PHP Deprecated:  abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code on line 390

 

I think they are coming from this line (it maybe needs a check if $display['refresh'] exists before doing max/abs) https://github.com/SimonFair/gpustat-unraid/blob/8b3fd1f2631dd9891aa1224ebec5df3d0df8bc0b/src/gpustat/usr/local/emhttp/plugins/gpustat/gpustatus.page#L359 - thanks! ;-)

 

Thanks will take a look. Which vers is that on?

Link to comment
  • 1 month later...
2 hours ago, Ph4nTom said:

please help i cant get render information from gpu statistics for my intel gpu. nvidia work perfectly.

Thats because nothing is actually transcoding and it seems you are using direct play so nothing wrong… 😅

 

Try to force a transcode by clicking the gear icon in the lower right corner in the Jellyfin player, select Quality and set it to something lower than the input media.

  • Like 1
Link to comment
3 hours ago, ich777 said:

Thats because nothing is actually transcoding and you are using direct pkay. so nothing wrong… 😅

 

Try to force a transcode by clicking the gear icon in the lower right corner in the Jellyfin player, select Quality and set it to something lower than the input media.

alright. my bad

  • Like 1
Link to comment
  • 3 weeks later...
On 6/23/2024 at 2:13 PM, Rysz said:

Hey Simon, I'm getting a couple of these warnings when on the frontpage dashboard:

[23-Jun-2024 14:04:29 Europe/Berlin] PHP Warning:  Undefined array key "refresh" in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code on line 390
[23-Jun-2024 14:04:29 Europe/Berlin] PHP Deprecated:  abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code on line 390

 

I think they are coming from this line (it maybe needs a check if $display['refresh'] exists before doing max/abs) https://github.com/SimonFair/gpustat-unraid/blob/8b3fd1f2631dd9891aa1224ebec5df3d0df8bc0b/src/gpustat/usr/local/emhttp/plugins/gpustat/gpustatus.page#L359 - thanks! ;-)

 

 

Any news on this? 🙂 

 

The GPU dashboard is broken for me right now because of PHP warnings:

grafik.png.4e5a52b1c035ffa7a3e8b8d0b6960a2b.png

grafik.thumb.png.768020767957f1fde1535f8537826f22.png

 

It only works when setting the PHP error reporting level to "All Categories" so PHP errors are not shown on the screen, as opposed to the default PHP error reporting level where it displays them on the screen.

 

Link to comment
  • 2 weeks later...

Hi, I was curious why the active apps seems to be always empty on the dashboard.
If I run nvidia-smi -q I get a process list with the application and vram in use.

I have everything enabled in the nvidia section and general
image.png.0e19c3865873c9e6217d13cee841e7df.png


image.png.c8c7cd4095ad7c9511bea0e4b1613770.png


Thanks!

Link to comment
38 minutes ago, melmurp said:

why the active apps seems to be always empty on the dashboard.

in your current screens it doesnt look like anything is currently using de/encoder ...

 

may rather post a screen while you transcode and what should be shown ? plex, emy, jelly, ffmpeg, ...

  • Like 1
Link to comment
On 8/14/2024 at 3:11 PM, Rysz said:

 

Any news on this? 🙂 

 

The GPU dashboard is broken for me right now because of PHP warnings:

grafik.png.4e5a52b1c035ffa7a3e8b8d0b6960a2b.png

grafik.thumb.png.768020767957f1fde1535f8537826f22.png

 

It only works when setting the PHP error reporting level to "All Categories" so PHP errors are not shown on the screen, as opposed to the default PHP error reporting level where it displays them on the screen.

 

Sorry for the delay Rysz, this is fixed in 2024.08.26.

 

###2024-08-26a

 

- add LocalAI app for nvidia GPU - PR from nwithan8.

- add Immich for nvidia GPU - PR from nwithan8.

 

###2024-08-26

 

- Fix timer abs values

- add Ollama app for nvidia GPU - PR from nwithan8.

 

 

  • Like 1
Link to comment
1 minute ago, SimonF said:

Sorry for the delay Rysz, this is fixed in 2024.08.26.

 

###2024-08-26a

 

- add LocalAI app for nvidia GPU - PR from nwithan8.

- add Immich for nvidia GPU - PR from nwithan8.

 

###2024-08-26

 

- Fix timer abs values

- add Ollama app for nvidia GPU - PR from nwithan8.

 

 

 

Thanks a lot Simon!! 🙂 

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...