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

16 hours ago, alturismo said:

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

I'm not using it to transcode, the memory in use is over 90% and nvidia-smi returns an active application, python in this case, with a pid but that's not being reflected in the dashboard.

Here's another shot showing it using more than just the memory.. is Active app only enabled when transcoding is triggered?
image.png.5a5f3c3356c7ec87aee3246adb62225e.png

Edited by melmurp

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

36 minutes ago, melmurp said:

I'm not using it to transcode, the memory in use is over 90% and nvidia-smi returns an active application, python in this case, with a pid but that's not being reflected in the dashboard.

Here's another shot showing it using more than just the memory.. is Active app only enabled when transcoding is triggered?
image.png.5a5f3c3356c7ec87aee3246adb62225e.png

Can you provide nvidia-smi -q -x and cat /tmp/gpujson

16 hours ago, melmurp said:

I'm not using it to transcode, the memory in use is over 90% and nvidia-smi returns an active application, python in this case, with a pid but that's not being reflected in the dashboard.

Here's another shot showing it using more than just the memory.. is Active app only enabled when transcoding is triggered?
image.png.5a5f3c3356c7ec87aee3246adb62225e.png

Can you also test this dev version that improve app detection and check if your python app is detected?

https://raw.githubusercontent.com/SimonFair/gpustat-unraid/Dev/gpustat.plg

(for testing, not production)

 

 

  • 2 weeks later...
On 8/26/2024 at 6:51 PM, SimonF said:

Can you provide nvidia-smi -q -x and cat /tmp/gpujson

Sorry, some reason I don't get notifications on replies here...

 

Think I got my answer tho... filtered by app name I'm guessing
"appssupp":["plex","jellyfin","handbrake","emby","tdarr","unmanic","dizquetv","ersatztv","fileflows","frigate","Threadfin","codeproject","deepstack","nsfminer","shinobipro","foldinghome","compreface"]

 

nvidia-smi is quite verbose so I attached as txt

output.txt

Quote

 

cat /tmp/gpujson
Time = Wed, 04 Sep 2024 12:58:41 -0300
{"06:00.0":{"clock":"2790","fan":"34%","memclock":"9000","memutil":"63%","memused":"10303","power":"131W","powermax":"N\/A","rxutil":"0","txutil":"0","temp":"58 \u00b0C","tempmax":"N\/A","util":"100%","vendor":"NVIDIA","name":"GeForce RTX 4060 Ti","clockmax":"3105","memclockmax":"9001","memtotal":"16380","encutil":"0%","decutil":"0%","pciemax":16000,"perfstate":"P0","throttled":"No","thrtlrsn":"","pciegen":4,"pciegenmax":4,"pciewidth":8,"pciewidthmax":8,"sessions":1,"uuid":"GPU-XXXXXXX","plexusing":false,"plexmem":0,"plexcount":0,"jellyfinusing":false,"jellyfinmem":0,"jellyfincount":0,"handbrakeusing":false,"handbrakemem":0,"handbrakecount":0,"embyusing":false,"embymem":0,"embycount":0,"tdarrusing":false,"tdarrmem":0,"tdarrcount":0,"unmanicusing":false,"unmanicmem":0,"unmaniccount":0,"dizquetvusing":false,"dizquetvmem":0,"dizquetvcount":0,"ersatztvusing":false,"ersatztvmem":0,"ersatztvcount":0,"fileflowsusing":false,"fileflowsmem":0,"fileflowscount":0,"frigateusing":false,"frigatemem":0,"frigatecount":0,"Threadfinusing":false,"Threadfinmem":0,"Threadfincount":0,"codeprojectusing":false,"codeprojectmem":0,"codeprojectcount":0,"deepstackusing":false,"deepstackmem":0,"deepstackcount":0,"nsfminerusing":false,"nsfminermem":0,"nsfminercount":0,"shinobiprousing":false,"shinobipromem":0,"shinobiprocount":0,"foldinghomeusing":false,"foldinghomemem":0,"foldinghomecount":0,"comprefaceusing":false,"comprefacemem":0,"comprefacecount":0,"appssupp":["plex","jellyfin","handbrake","emby","tdarr","unmanic","dizquetv","ersatztv","fileflows","frigate","Threadfin","codeproject","deepstack","nsfminer","shinobipro","foldinghome","compreface"],"vfio":false,"vfiochk":false,"vfiochkid":"0000:06:00.0","panel":1}}

 

Edited by melmurp

3 hours ago, melmurp said:

Sorry, some reason I don't get notifications on replies here...

 

Think I got my answer tho... filtered by app name I'm guessing
"appssupp":["plex","jellyfin","handbrake","emby","tdarr","unmanic","dizquetv","ersatztv","fileflows","frigate","Threadfin","codeproject","deepstack","nsfminer","shinobipro","foldinghome","compreface"]

 

nvidia-smi is quite verbose so I attached as txt

output.txt 61.43 kB · 2 downloads

What process are you running in Python?

 

The plugin uses the command line i.e. cat /proc/pid/cmdline replace pid with the process id to id an app.

 

        <processes>
            <process_info>
                <gpu_instance_id>N/A</gpu_instance_id>
                <compute_instance_id>N/A</compute_instance_id>
                <pid>1895698</pid>
                <type>C</type>
                <process_name>python3</process_name>
                <used_memory>7510 MiB</used_memory>
            </process_info>
        </processes>

On 9/4/2024 at 4:46 PM, SimonF said:

What process are you running in Python?

 

The plugin uses the command line i.e. cat /proc/pid/cmdline replace pid with the process id to id an app.

 

        <processes>
            <process_info>
                <gpu_instance_id>N/A</gpu_instance_id>
                <compute_instance_id>N/A</compute_instance_id>
                <pid>1895698</pid>
                <type>C</type>
                <process_name>python3</process_name>
                <used_memory>7510 MiB</used_memory>
            </process_info>
        </processes>

 

Different AI tools so it varies
Example: OpenedAI Speech

<process_info>
      <gpu_instance_id>N/A</gpu_instance_id>
      <compute_instance_id>N/A</compute_instance_id>
      <pid>2093547</pid>
      <type>C</type>
      <process_name>python</process_name>
      <used_memory>3100 MiB</used_memory>
 </process_info>

 

cat /proc/2093547/cmdlin
pythonspeech.py

 

 

 

 

Hi all,

 

Today, out of nowhere this started to happen with this plugin. Any idea how to get it to stick? Notice the error that shows at the bottom? I have no VMs at all.

Hi,


i try to install this Plugin since 3 day's .

its alway say's this at the PlugIn-Installation in Unraid: 

Quote

plugin: installing: gpustat.plg Executing
hook script: pre_plugin_checks
plugin: downloading: gpustat.plg ... done Executing
hook script: pre_plugin_checks ******************************************************************** No vendor utilities found. Plugin install terminated due to failed prerequisites.


What does this mean, what can i do? 

 

Thnx .. Twix_sv .. 

2 minutes ago, Twix_sv said:

What does this mean, what can i do? 

 

which gpu would you like to monitor ?

 

sample, Intel iGPU > intel gpu top, Nvidia > Nvidia plugin, ...

@alturismo
 

I wanted to check the iGPU of my N100.
On the one hand to save power if necessary and secondly to check whether it is also used when transoding.

 

Did the "intel gpu top" have some GUI for the Dashboard?

 

Greets .. Twix_sv .. 

1 minute ago, Twix_sv said:

@alturismo
 

I wanted to check the iGPU of my N100.
On the one hand to save power if necessary and secondly to check whether it is also used when transoding.

 

Did the "intel gpu top" have some GUI for the Dashboard?

 

Greets .. Twix_sv .. 

You need to install intel gpu top as that is used by gpustats.

 

each vendor needs different plugins.

Hi Simon,

I want to create a PR for some additional apps, but I'd like to test locally first... how best to approach this?
I've already cloned the repo and made the changes I need locally.


Figured it out, will send a PR once ready, cheers!
 

Edited by tjb_altf4

11 hours ago, tjb_altf4 said:

Hi Simon,

I want to create a PR for some additional apps, but I'd like to test locally first... how best to approach this?
I've already cloned the repo and made the changes I need locally.


Figured it out, will send a PR once ready, cheers!
 

I use file transfer to copy changed files from my windows pc. Make sure if using windows set end of line just LF

 

Files in usr local emhttp plugins gpustat

Anyway to resolve this spacing issue?

All other dashboard items have a gap at the bottom.

image.png.7c5f57e6dec0555dca2828cae320ad16.png

On 9/16/2024 at 10:18 PM, SimonF said:

I use file transfer to copy changed files from my windows pc. Make sure if using windows set end of line just LF

 

Files in usr local emhttp plugins gpustat

Doing some testing on these specific apps, they are working on Nvidia cards but not on a friends Intel Arc gpu (6.12.x thor build kernel for arc support).
I can see the same app name show up in his intel gpu top output, I'm assuming name detection use the same definitions created in Nvidia.php? (couldn't see anywhere else to define)

 

Any thoughts on how to troubleshoot the issue?

3 hours ago, tjb_altf4 said:

Doing some testing on these specific apps, they are working on Nvidia cards but not on a friends Intel Arc gpu (6.12.x thor build kernel for arc support).
I can see the same app name show up in his intel gpu top output, I'm assuming name detection use the same definitions created in Nvidia.php? (couldn't see anywhere else to define)

 

Any thoughts on how to troubleshoot the issue?

Only NV cards have the app support within the plugin output.

3 hours ago, tjb_altf4 said:

but not on a friends Intel Arc gpu (6.12.x thor build kernel for arc support).

Why does he even use a custom Kernel?

7.0.0-beta.2 supports ARC cards just fine and Inepuld rather trust a beta than a custom Kernel.

40 minutes ago, SimonF said:

Only NV cards have the app support within the plugin output.

Thanks. Anything in the works to add this feature to AMD or Intel GPUs?

 

39 minutes ago, ich777 said:

Why does he even use a custom Kernel?

7.0.0-beta.2 supports ARC cards just fine and Inepuld rather trust a beta than a custom Kernel.

I imagine he last upgraded his system prior to beta being available, and simply hasn't upgraded it since.

31 minutes ago, tjb_altf4 said:

Thanks. Anything in the works to add this feature to AMD or Intel GPUs?

Not currently working on it but will look to see what is required for intel. radeontop does not seem to provide app data.

13 hours ago, tjb_altf4 said:

Thanks. Anything in the works to add this feature to AMD or Intel GPUs?

 

I imagine he last upgraded his system prior to beta being available, and simply hasn't upgraded it since.

Been able to get a working proto type on my system. Still needs more work.

 

image.png

On 9/21/2024 at 6:51 AM, tjb_altf4 said:

Thanks. Anything in the works to add this feature to AMD or Intel GPUs?

 

I imagine he last upgraded his system prior to beta being available, and simply hasn't upgraded it since.

Not sure if you can test, but attached are the changes for intel files need to be added to /usr/local/emhttp/plugins/gpustat/ and coresponding sub dirs.

gpustatchanges.zip

8 hours ago, SimonF said:

Not sure if you can test, but attached are the changes for intel files need to be added to /usr/local/emhttp/plugins/gpustat/ and coresponding sub dirs.

Thanks, I've done a baseline test to make sure the updated package still detects the apps in my system, and have passed on to my friend to test in his ARC gpu system.
 

30 minutes ago, tjb_altf4 said:

Thanks, I've done a baseline test to make sure the updated package still detects the apps in my system, and have passed on to my friend to test in his ARC gpu system.
 

Hey @SimonF this has worked for ARC gpu for the apps I added.

Would you like me to wait until you release the updated plugin with intel support before submitting my PR?
image.png.468fd2dd4e875ca2eb189f8f50b772e9.png

We also did notice Emby uses ffmpeg for transcoding on ARC, not sure if you have any ideas on how to make it identifiable, we don't seem to be able to see the full command in intel gpu top.
image.thumb.png.3e02d31c04764e3cd89d993b1e2679ea.png

3 hours ago, tjb_altf4 said:

Hey @SimonF this has worked for ARC gpu for the apps I added.

Would you like me to wait until you release the updated plugin with intel support before submitting my PR?
image.png.468fd2dd4e875ca2eb189f8f50b772e9.png

We also did notice Emby uses ffmpeg for transcoding on ARC, not sure if you have any ideas on how to make it identifiable, we don't seem to be able to see the full command in intel gpu top.
image.thumb.png.3e02d31c04764e3cd89d993b1e2679ea.png

I think there are going to be differences been NV and Intel requirements so may need to have a different support apps list in each, was trying to use a common one.

 

Values are lookup up in the cmdline.

 

/proc/pid/cmdline

 

and for the parent.

 

ps j %0d | awk '{ $1=$1 };NR>1' | cut -d ' ' -f 1 where %0d is pid

Thank you for this plugin.

Will the above files fix my blank gpu stats? Intel Arc 380.

 

image.png.339bf85f999acc9707f4cef06349c81b.png

Edited by Bookingyo

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.