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

2 hours ago, benno87 said:

I use 1 GPU for transcoding and 1 for VM.

As @alturismo said that's not possible you can only view the GPU's that are not in use by a VM, since it's not exclusively available on the host and the GPU Statistics Plugin simply can't "see" it.

 

2 hours ago, benno87 said:

Alternatively, how could I go about installing a second instance of gpustats?

You can't install a second instance of the Plugin, the developer would need to make something like a drop down to see and switch between multiple cards, but I think that involves a lot of work for the dev since the Plugin has to change significantly in terms of the code and also think that wouldn't make much sense because the normal use case is that you use one Card or the iGPU for transocding and the other card(s) for VM(s).

  • Replies 2.1k
  • Views 355.1k
  • 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

@b3rs3rk, Hi, The GPU Statistic seems a bit strange on my Dashboard when transcoding PLEX... The PLEX display a big elongated logo :)

 

 

Unraid:Dashboard 2021-01-23 14-59-39.png

the icon on my dashboard is weird too. also, i have more than plex running on my card, but that icon makes it appear as if they are all plex.

I've noticed the App Icon too but it is not correctly reporting the apps.  In my case, it show 2 apps, both Plex.  But I only had one thread for Plex and another for Folding@Home (which runs all the time).

Running version 2021.01.21 and it now doesn't seem to work with my Quadro K4200. It was working before (before the ui updates, it worked fine) It still shows up in nvidia-smi. It shows up in the drop down menu in the settings. I can toggle between the GTX 750 (which works) and the Quadro. Im still running Unraid 6.3.0.

  • Author
On 1/23/2021 at 3:04 PM, Pducharme said:

@b3rs3rk, Hi, The GPU Statistic seems a bit strange on my Dashboard when transcoding PLEX... The PLEX display a big elongated logo :)

 

That's very odd.  What version of UnRAID are you running?  Do you have any custom themes/CSS?

  • Author
7 hours ago, jamerperson said:

Running version 2021.01.21 and it now doesn't seem to work with my Quadro K4200. It was working before (before the ui updates, it worked fine) It still shows up in nvidia-smi. It shows up in the drop down menu in the settings. I can toggle between the GTX 750 (which works) and the Quadro. Im still running Unraid 6.3.0.


Probably need some troubleshooting information from you unless you running 6.3.0 was a typo.  Minimum version is 6.7.1.

  • Author
13 hours ago, Glonch said:

I've noticed the App Icon too but it is not correctly reporting the apps.  In my case, it show 2 apps, both Plex.  But I only had one thread for Plex and another for Folding@Home (which runs all the time).


Please explain.  Screenshot?  The number is a count of _all_ processes.  The app icons will display to tell you which processes are using the GPU.  You will be able to hover over each app to see how many instances each app is using, as well as the memory used for that app in the next push.  Right now, I only show Plex, Jellyfin, or Emby icons.  Haven't looked at Folding or any others yet.

  • Author
18 hours ago, mlapaglia said:

the icon on my dashboard is weird too. also, i have more than plex running on my card, but that icon makes it appear as if they are all plex.

 

It doesn't know every app yet.  I will see if I can make it a bit clearer in the next release what you're looking at.

17 minutes ago, b3rs3rk said:

 

That's very odd.  What version of UnRAID are you running?  Do you have any custom themes/CSS?

running the stock 6.9.0-rc2.  No custom themes or CSS.  Seems i'm not the only one if i read the next replies. 

  • Author
2 minutes ago, Pducharme said:

running the stock 6.9.0-rc2.  No custom themes or CSS.  Seems i'm not the only one if i read the next replies. 


I'm sure someone else is having the issue, but I can't guess as to what is causing it.  These problems are particularly difficult for me to solve since I'm not a very good front end developer.  What browser are you using?  Can you take a screenshot of the developer console after right clicking the image and saying Inspect element?

image.thumb.png.a54c1d4ee8696ea7c465876d94aadb18.png

10 hours ago, b3rs3rk said:


I'm sure someone else is having the issue, but I can't guess as to what is causing it.  These problems are particularly difficult for me to solve since I'm not a very good front end developer.  What browser are you using?  Can you take a screenshot of the developer console after right clicking the image and saying Inspect element?

 

I am getting the stretched image too. It seems the vertical dimension is at the full 512 pixels. The icon is being displayed at 21x512. I am on Chrome.

 

image.thumb.png.37902cf37dca5f230a66f44e14a74def.png

 

11 hours ago, b3rs3rk said:


Please explain.  Screenshot?  The number is a count of _all_ processes.  The app icons will display to tell you which processes are using the GPU.  You will be able to hover over each app to see how many instances each app is using, as well as the memory used for that app in the next push.  Right now, I only show Plex, Jellyfin, or Emby icons.  Haven't looked at Folding or any others yet.

 

I checked Plex and there was only 1 transcode when this screenshot was taken.  When I have no transcodes from Plex, the only other docker that is GPU aware is Folding@Home and it is using the GPU for modeling. 

 

 

1061481843_ScreenShot2021-01-25at18_47_19.thumb.png.24bdc0c4bdef06f9adfe2f32cb186788.png

 

13 hours ago, b3rs3rk said:


I'm sure someone else is having the issue, but I can't guess as to what is causing it.  These problems are particularly difficult for me to solve since I'm not a very good front end developer.  What browser are you using?  Can you take a screenshot of the developer console after right clicking the image and saying Inspect element?

image.thumb.png.a54c1d4ee8696ea7c465876d94aadb18.png

 

Here is the screenshot of the Inspect Element1798820115_Capturedecranle2021-01-25a21_03_30.thumb.png.1fe06e13ef1e1b91f02f5280efe569dd.png.  Like @JohnnyGrey said, it seems the height is fixed at 512px, causing the issue.

  • Author
11 hours ago, Glonch said:

 

I checked Plex and there was only 1 transcode when this screenshot was taken.  When I have no transcodes from Plex, the only other docker that is GPU aware is Folding@Home and it is using the GPU for modeling. 

 

 

1061481843_ScreenShot2021-01-25at18_47_19.thumb.png.24bdc0c4bdef06f9adfe2f32cb186788.png

 


See how it says Total - Apps?  Like the slider bars I was hoping it would be a little more apparent that the number shown is the total number of processes using the GPU, and then the apps would display for what those total processes are.  My next release will allow you to hover over the apps and see how many processes there are for each app (as well as memory usage for each app).  But for now, you are seeing it as intended.

  • Author
11 hours ago, JohnnyGrey said:

 

I am getting the stretched image too. It seems the vertical dimension is at the full 512 pixels. The icon is being displayed at 21x512. I am on Chrome.

 

 

 

8 hours ago, Pducharme said:

 

Here is the screenshot of the Inspect Element.  Like @JohnnyGrey said, it seems the height is fixed at 512px, causing the issue.


What theme settings are you two using?  I can't seem to get it looking the same as yours with ThemeEngine enabled or disabled.

2 hours ago, b3rs3rk said:

 


What theme settings are you two using?  I can't seem to get it looking the same as yours with ThemeEngine enabled or disabled.

In my case, this is the default theme. I only choosed the Dynamix : Black.

6 hours ago, b3rs3rk said:

 


What theme settings are you two using?  I can't seem to get it looking the same as yours with ThemeEngine enabled or disabled.

 

I'm not using any themes other than the ones built in. I too am using the Dynamix: Black. Although the icon looks the same no matter which I choose.

I was able to edit the gpustatus.page file to artificially limit the size of the png. I changed line 155 from:

 

<span class='gpu-img-span gpu-img-span-plex'><img class='gpu-image' src="/plugins/gpustat/images/plex.png"></span>

 

to: 

 

<span class='gpu-img-span gpu-img-span-plex'><img class='gpu-image' style="width:24px; height:24px;" src="/plugins/gpustat/images/plex.png"></span>

 

I don't know why the table cell is stretching the png vertically and not horizontally. It looks like the cell is still a few pixels taller than the others, so this can probably be reduced to 20x20.

image.png.d73d18e5a4be8f8a9dc8e487f5e8d5ed.png

 

 

  • Author
18 hours ago, JohnnyGrey said:

I was able to edit the gpustatus.page file to artificially limit the size of the png. I changed line 155 from:

 


<span class='gpu-img-span gpu-img-span-plex'><img class='gpu-image' src="/plugins/gpustat/images/plex.png"></span>

 

to: 

 


<span class='gpu-img-span gpu-img-span-plex'><img class='gpu-image' style="width:24px; height:24px;" src="/plugins/gpustat/images/plex.png"></span>

 

I don't know why the table cell is stretching the png vertically and not horizontally. It looks like the cell is still a few pixels taller than the others, so this can probably be reduced to 20x20.

image.png.d73d18e5a4be8f8a9dc8e487f5e8d5ed.png

 

 


I can probably set a maximum height and width as well as a minimum.  I'd hate to do that though as it ruins the dynamic responsiveness.  It's a strange problem that I can't seem to replicate despite disabling ThemeEngine and reverting to the defaults.
 

20 hours ago, JohnnyGrey said:

I was able to edit the gpustatus.page file to artificially limit the size of the png. I changed line 155 from:

 


<span class='gpu-img-span gpu-img-span-plex'><img class='gpu-image' src="/plugins/gpustat/images/plex.png"></span>

 

to: 

 


<span class='gpu-img-span gpu-img-span-plex'><img class='gpu-image' style="width:24px; height:24px;" src="/plugins/gpustat/images/plex.png"></span>

 

I don't know why the table cell is stretching the png vertically and not horizontally. It looks like the cell is still a few pixels taller than the others, so this can probably be reduced to 20x20.

image.png.d73d18e5a4be8f8a9dc8e487f5e8d5ed.png

 

 

 

Thanks, this solved the problem :)

23 hours ago, JohnnyGrey said:

I was able to edit the gpustatus.page file to artificially limit the size of the png. I changed line 155 from:

 


<span class='gpu-img-span gpu-img-span-plex'><img class='gpu-image' src="/plugins/gpustat/images/plex.png"></span>

 

to: 

 


<span class='gpu-img-span gpu-img-span-plex'><img class='gpu-image' style="width:24px; height:24px;" src="/plugins/gpustat/images/plex.png"></span>

 

I don't know why the table cell is stretching the png vertically and not horizontally. It looks like the cell is still a few pixels taller than the others, so this can probably be reduced to 20x20.

image.png.d73d18e5a4be8f8a9dc8e487f5e8d5ed.png

 

 

I'm having this issue as well. Where is the location of gpustatus.page file?

Thanks

3 hours ago, emersonicus said:

 

Thanks, this solved the problem :)

 

I wouldn't really call this "solving," more so "avoiding" lol. We have to figure what's causing this to truly solve it.

 

33 minutes ago, bobokun said:

I'm having this issue as well. Where is the location of gpustatus.page file?

Thanks

 

I found the file inside this directory:

/usr/local/emhttp/plugins/gpustat

I SSH'd into my NAS and edited the gpustatus.page via nano.

 

Here's a larger snippet of the section I modified. I don't use use any of the other platforms, so Plex is all I added the code to.

 

<?php if($gpustat_cfg['DISPSESSIONS']) : ?>
        <tr class="dash_gpustat_toggle gpu-enviro">
            <td></td>
            <td>Session Total - Apps</td>
            <td colspan="2">
                <span class='gpu-sessions load'></span>
                <span class='gpu-img-span gpu-img-span-plex'><img class='gpu-image' style="width:24px; height:24px;" src="/plugins/gpustat/images>
                <span class='gpu-img-span gpu-img-span-jelly'><img class='gpu-image' src="/plugins/gpustat/images/jellyfin.png"></span>
                <span class='gpu-img-span gpu-img-span-emby'><img class='gpu-image' src="/plugins/gpustat/images/emby.png"></span>
            </td>
            <td></td>
        </tr>
<?php endif; ?>

 

5 hours ago, b3rs3rk said:


I can probably set a maximum height and width as well as a minimum.  I'd hate to do that though as it ruins the dynamic responsiveness.  It's a strange problem that I can't seem to replicate despite disabling ThemeEngine and reverting to the defaults.
 

 

is there another file or section of code somewhere that shrinks the image down? I see your plugin comes with 512x512 pngs for the images. I'm still baffled that the icon is getting shrunk in only one dimension, but I know nothing about HTML or PHP.

This seems like a Chrome related problem tested both Chrome and Firefox with Jellyfin and Plex here are the results:

 

Firefox:

plex.png.77fef39ff2bf2a4c05a199cc651a7385.png

jellyfin.png.30ffcb100fe9c82d4e11116b9eb703dc.png

 

 

Chrome:

plexchrome.thumb.png.72778936db5cfbde573e941e29b069c4.png

jellyfinchrome.thumb.png.f976bb2cd8468f1823bf698cb4b5caa3.png

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.