[PLUGIN] GPU Statistics


Recommended Posts

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

  • Like 2
Link to comment

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.

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

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

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

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

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

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

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

 

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

 

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

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

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

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

Link to comment

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

 

 

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

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

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

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

 

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

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.