[PLUGIN] GPU Statistics


Recommended Posts

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?

Link to comment
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?

Link to comment
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
Link to comment
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

Link to comment
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
Link to comment
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".

Link to comment
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?

Link to comment
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.

  • Like 1
Link to comment
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.

  • Like 1
Link to comment
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.

  • Like 1
Link to comment
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 😀

  • Like 1
Link to comment
  • 2 weeks later...
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.

Link to comment
  • 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.

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.