Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[PLUGIN] GPU Statistics

Featured Replies

11 minutes ago, b3rs3rk said:

I should have been more decisive.  Sorry. 

No worries. You're just trying to help, and I appreciate it 🙂

I ran this:

php -r "var_dump(@simplexml_load_string(shell_exec('nvidia-smi -q -x -g GPU-23265d6c-1de2-5786-b964-e20b2a209ad6 2>&1')));"

 

With this result:
nvidia-smi-3

  • Replies 2.1k
  • Views 354.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • juan11perez
    juan11perez

    Good day, plugin also stopped working for me.   root@Unraid:/usr/local/emhttp/plugins/gpustat# cd /usr/local/emhttp/plugins/gpustat/ && php ./gpustatus.php Fatal error: Uncaught TypeE

  • I did some more work to get it to look like the CPU sidebar that comes with unraid 

  • I have created a PR for b3rs3rk's plugin to add MultiGPU support for 6.12 as Dashboard panels are different in 6.12. The PR works on pre realeases but does not provide Multi support. There are some ot

Posted Images

  • Author
Just now, Nanobug said:

No worries. You're just trying to help, and I appreciate it 🙂

I ran this:


php -r "var_dump(@simplexml_load_string(shell_exec('nvidia-smi -q -x -g GPU-23265d6c-1de2-5786-b964-e20b2a209ad6 2>&1')));"

 

With this result:
nvidia-smi-3


Well that's annoying, working exactly how it is supposed to work.  Can you share the contents of your gpustat.cfg file from the /usr/local/emhttp/plugins/gpustat directory?

9 minutes ago, b3rs3rk said:

Well that's annoying, working exactly how it is supposed to work.  Can you share the contents of your gpustat.cfg file from the /usr/local/emhttp/plugins/gpustat directory?

It looks... Weird...
 

VENDOR=""
GPUID=""
TEMPFORMAT="C"
DISPCLOCKS="1"
DISPENCDEC="1"
DISPTEMP="1"
DISPFAN="1"
DISPPCIUTIL="1"
DISPPWRDRAW="1"
DISPPWRSTATE="1"
DISPTHROTTLE="1"
DISPSESSIONS="1"
UIREFRESH="1"
UIREFRESHINT="1000"
DISPMEMUTIL="1"
DISP3DRENDER="1"
DISPBLITTER="1"
DISPVIDEO="1"
DISPVIDENH="1"
DISPINTERRUPT="1"
DISPEVENT="1"
DISPVERTEX="1"
DISPTEXTURE="1"
DISPSHADEREXP="1"
DISPSEQUENCER="1"
DISPSHADERINTER="1"
DISPSCANCON="1"
DISPPRIMASSEM="1"
DISPDEPTHBLK="1"
DISPCOLORBLK="1"
DISPGFXTRANS="1"

Should I add the vendor and GPU ID?

  • Author
13 minutes ago, Nanobug said:

It looks... Weird...
 



VENDOR=""
GPUID=""
TEMPFORMAT="C"
DISPCLOCKS="1"
DISPENCDEC="1"
DISPTEMP="1"
DISPFAN="1"
DISPPCIUTIL="1"
DISPPWRDRAW="1"
DISPPWRSTATE="1"
DISPTHROTTLE="1"
DISPSESSIONS="1"
UIREFRESH="1"
UIREFRESHINT="1000"
DISPMEMUTIL="1"
DISP3DRENDER="1"
DISPBLITTER="1"
DISPVIDEO="1"
DISPVIDENH="1"
DISPINTERRUPT="1"
DISPEVENT="1"
DISPVERTEX="1"
DISPTEXTURE="1"
DISPSHADEREXP="1"
DISPSEQUENCER="1"
DISPSHADERINTER="1"
DISPSCANCON="1"
DISPPRIMASSEM="1"
DISPDEPTHBLK="1"
DISPCOLORBLK="1"
DISPGFXTRANS="1"

Should I add the vendor and GPU ID?

 

You should select the Vendor and GPU on the GPUStat settings page and click Apply at the bottom to fill those out and then it should work.

Edited by b3rs3rk

6 minutes ago, b3rs3rk said:

You should select the Vendor and GPU on the GPUStat settings page and click Apply at the bottom to fill those out and then it should work.

Progress!
It's no longer saying N/A:
image.png.61da048b62cd327fca465da98571204c.png

I started something on Plex to make sure it was actually working.

This is the nvidia-smi:
image.png.8cb30eb5820a9af1fb200f088ecb7017.png

  • Author
3 minutes ago, Nanobug said:

Progress!
It's no longer saying N/A:
image.png.61da048b62cd327fca465da98571204c.png

I started something on Plex to make sure it was actually working.

This is the nvidia-smi:
image.png.8cb30eb5820a9af1fb200f088ecb7017.png

 

Are VENDOR and GPUID set in your cfg file now?

1 minute ago, b3rs3rk said:

Are VENDOR and GPUID set in your cfg file now?

No, same as before :/

Should I do it manually?

  • Author
4 minutes ago, Nanobug said:

No, same as before :/

Should I do it manually?

 

I mean, you probably could.  But I'm really not sure what could be wrong with the settings creation.

image.thumb.png.b42ef0da0e8f5b059be217f69ca306e1.png

Make sure everything looks like this then click Apply at the bottom of the page.  If the Apply button is greyed out and you can't click it then it won't work.  You have to change something to get it to switch.

EDIT:

Greyed out -- image.png.2ecfcdad4ba5a790fcdc40d9e34c1b73.png

Changes detected -- image.png.3186b58008273b02bacde10965f3d9f8.png

Edited by b3rs3rk

3 minutes ago, b3rs3rk said:

 

I mean, you probably could.  But I'm really not sure what could be wrong with the settings creation.

image.thumb.png.b42ef0da0e8f5b059be217f69ca306e1.png

Make sure everything looks like this then click Apply at the bottom of the page.  If the Apply button is greyed out and you can't click it then it won't work.  You have to change something to get it to switch.

EDIT:

Greyed out -- image.png.2ecfcdad4ba5a790fcdc40d9e34c1b73.png

Changes detected -- image.png.3186b58008273b02bacde10965f3d9f8.png

This is how it looks:
image.png.655a4232a29c626b0b83a78d780f8893.pngEverything below is set to "Yes".

It was greyed out, I just set something to "No" and back to "Yes" so I could hit "Apply".

  • Author

I might have a defaults problem somewhere in the Settings page.  But it should be working now after you applied it?

3 minutes ago, b3rs3rk said:

I might have a defaults problem somewhere in the Settings page.  But it should be working now after you applied it?

Sadly, no.

It's just not shoing "N/A" anymore. It's just blank instead:
image.png.df5f66db915ff1dafc7d7fb362bc56e1.png

  • Author

Is it updating the cfg file?  Without that being updated it won't work.  Check your boot plugin config file, I just realized you might be looking at the default.cfg which is my fault.

more /boot/config/plugins/gpustat/gpustat.cfg

1 minute ago, b3rs3rk said:

/boot/config/plugins/gpustat/gpustat.cfg

This one looks like this:
 

VENDOR="nvidia"
GPUID="GPU-23265d6c-1de2-5786-b964-e20b2a209ad6"
TEMPFORMAT="C"
DISPCLOCKS="1"
DISPENCDEC="1"
DISPPCIUTIL="1"
DISPTEMP="1"
DISPFAN="1"
DISPPWRDRAW="1"
DISPPWRSTATE="1"
DISPTHROTTLE="1"
DISPSESSIONS="1"
UIREFRESH="1"
UIREFRESHINT="1000"
DISPMEMUTIL="1"
DISP3DRENDER="1"
DISPBLITTER="1"
DISPVIDEO="1"
DISPVIDENH="1"
DISPINTERRUPT="1"
DISPEVENT="1"
DISPVERTEX="1"
DISPTEXTURE="1"
DISPSHADEREXP="1"
DISPSEQUENCER="1"
DISPSHADERINTER="1"
DISPSCANCON="1"
DISPPRIMASSEM="1"
DISPDEPTHBLK="1"
DISPCOLORBLK="1"
DISPGFXTRANS="1"

That looks right to me?

  • Author
Just now, Nanobug said:

This one looks like this:
 


VENDOR="nvidia"
GPUID="GPU-23265d6c-1de2-5786-b964-e20b2a209ad6"
TEMPFORMAT="C"
DISPCLOCKS="1"
DISPENCDEC="1"
DISPPCIUTIL="1"
DISPTEMP="1"
DISPFAN="1"
DISPPWRDRAW="1"
DISPPWRSTATE="1"
DISPTHROTTLE="1"
DISPSESSIONS="1"
UIREFRESH="1"
UIREFRESHINT="1000"
DISPMEMUTIL="1"
DISP3DRENDER="1"
DISPBLITTER="1"
DISPVIDEO="1"
DISPVIDENH="1"
DISPINTERRUPT="1"
DISPEVENT="1"
DISPVERTEX="1"
DISPTEXTURE="1"
DISPSHADEREXP="1"
DISPSEQUENCER="1"
DISPSHADERINTER="1"
DISPSCANCON="1"
DISPPRIMASSEM="1"
DISPDEPTHBLK="1"
DISPCOLORBLK="1"
DISPGFXTRANS="1"

That looks right to me?


lol, I know.  I had you put in a debug on Line 287 of the lib/Nvidia.php file that is probably still there causing the script to exit.  You can either reinstall the plugin or make that line blank again.

3 minutes ago, b3rs3rk said:

lol, I know.  I had you put in a debug on Line 287 of the lib/Nvidia.php file that is probably still there causing the script to exit.  You can either reinstall the plugin or make that line blank again.

Sweey baby Jesus!
Usually I'm not a Christian, but I was right there!
image.png.d80264293c37579d635e270c59b879bf.png

I removed the line (had to go back a page or two to find it), I reloaded the dashboard, and it was showing up.

To sum it up, what was the issue? After two pages of doing things, I kind of lost track.

  • Author
Just now, Nanobug said:

Sweey baby Jesus!
Usually I'm not a Christian, but I was right there!
image.png.d80264293c37579d635e270c59b879bf.png

I removed the line (had to go back a page or two to find it), I reloaded the dashboard, and it was showing up.

To sum it up, what was the issue? After two pages of doing things, I kind of lost track.

 

I'm pretty sure it was just an issue with the settings not getting saved.  Maybe.  I didn't point you to the correct location for the real plugin config the first time so it is hard to say.

Just now, b3rs3rk said:

I'm pretty sure it was just an issue with the settings not getting saved.  Maybe.  I didn't point you to the correct location for the real plugin config the first time so it is hard to say.

So I just needed to change a setting to "No" from "Yes", and that was all I had to do?

In a way, I really don't hope so. That could've been done a lot faster then.

Thank you for your help anyway, I appreciate it 😀

Hi @b3rs3rk, as @Nanobug I didn't get anything in the widget untill I change 1 param to NO then Apply (and get back to YES after that).
 

Thanks for your great plugin 😉

  • 2 weeks later...

Hey Guys I love the Plugin, If i may place a feature request. Can I get multi gpu support. either the option of multiple dashboards or just seeing which apps are working across multiple gpus.

 

 

On 6/20/2021 at 5:50 AM, Alphacosmos said:

Hey Guys I love the Plugin, If i may place a feature request. Can I get multi gpu support. either the option of multiple dashboards or just seeing which apps are working across multiple gpus.

 

 

 

Yes, this would be great!

  • Author
On 6/20/2021 at 5:50 AM, Alphacosmos said:

Hey Guys I love the Plugin, If i may place a feature request. Can I get multi gpu support. either the option of multiple dashboards or just seeing which apps are working across multiple gpus.

 

 

 

Beyond the multiple vendor support that was somewhat recently implemented (added Intel and AMD) this is probably the most requested feature.  I think I know what needs to be done to address this after talking with some other community devs but it will take time to implement.  I'm limited in what I can test because I have a single GPU setup with no onboard graphics because I'm using Xeon.  Makes it difficult to start poking around with it too.  Trust me, it's on the horizon just no ETA yet.

If you want some help with the multiple card support, I have two Nvidia GPUs and some time I can volunteer. 

I'm interested, I have two RTX in my setup to test with.

@b3rs3rk Thanks for the response. I have 3 gpus in my system at the moment and im happy to help and test you would like. I also have 2 older gpus if you require a card for testing yourself

  • 2 weeks later...

I'm down to be a guinea pig for the multi-gpu tests... I'm sure I have some AMD's laying around somewhere I could slap in there as well to test cross vendor support.
Also, I've noticed that they have some vGPU support when it comes to the Intel iGPU's... I'm curious if we can get stats on those as well.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.