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, SimonF said:

php -f /tmp/gputest

Running that the output is;

 

Check Link
is Link
nvidia

 

Yeah, the device ID

 

image.png.d4239fb5fcb119ea89075a4da33af02f.png

Edited by Murderhobo
added pic

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

Now it just says this:

 

image.thumb.png.5597427f39f5f6563baa503fc68f288c.png

On 3/10/2025 at 8:45 PM, SimonF said:

Quote or tag me in responses as I may miss.

 

Any errors in settings=>php and then look at php log then goto the dashboard.

 

can you provide /tmp/gpujson when apps are running.

 

you can edit /usr/local/emhttp/plugins/gpustat/lib/Nvidia.php

 

  private function detectApplication (SimpleXMLElement $process)
    {
        $debug_apps = false;
        if ($debug_apps) file_put_contents("/tmp/gpuappsnv","");

Scroll down until you find debug_apps and change to = true.

 

This will create another file in tmp call gpuappsnv

 

Sorry I don't think I tagged you properly.

 

20 hours ago, A.sch3 said:

@SimonF

result of gpujson while Plex was running :

Quote

root@Exposed:/tmp# cat gpuinv
{"0000:2B:00.0":{"0":"GPU 0: NVIDIA GeForce RTX 3090 (UUID: GPU-ae496d54-b3a7-8000-4b95-a6304707d1a3)","id":"2B:00.0","1":"0","model":"NVIDIA GeForce RTX 3090","2":"NVIDIA GeForce RTX 3090","guid":"GPU-ae496d54-b3a7-8000-4b95-a6304707d1a3","3":"GPU-ae496d54-b3a7-8000-4b95-a6304707d1a3","vendor":"nvidia"}}

 

root@Exposed:/tmp# cat gpujson
Time = Tue, 11 Mar 2025 21:49:18 +0100
{"2B:00.0":{"clock":"210","fan":"0%","memclock":"405","memutil":"42%","memused":"10302","power":"29W","powermax":"N\/A","rxutil":"0","txutil":"1","temp":"46 \u00b0C","tempmax":"98 \u00b0C","util":"0%","vendor":"NVIDIA","name":"GeForce RTX 3090","clockmax":"2115","memclockmax":"9751","memtotal":"24576","encutil":"0%","decutil":"0%","pciemax":4000,"perfstate":"P8","throttled":"Yes","thrtlrsn":" (gpu_idle)","pciegen":1,"pciegenmax":4,"pciewidth":16,"pciewidthmax":16,"sessions":2,"uuid":"GPU-ae496d54-b3a7-8000-4b95-a6304707d1a3","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,"tunarrusing":false,"tunarrmem":0,"tunarrcount":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,"ollamausing":false,"ollamamem":0,"ollamacount":0,"immichusing":false,"immichmem":0,"immichcount":0,"localaiusing":false,"localaimem":0,"localaicount":0,"invokeaiusing":false,"invokeaimem":0,"invokeaicount":0,"chiausing":false,"chiamem":0,"chiacount":0,"mmxusing":false,"mmxmem":0,"mmxcount":0,"subspaceusing":false,"subspacemem":0,"subspacecount":0,"xorgusing":false,"xorgmem":0,"xorgcount":0,"qemuusing":false,"qemumem":0,"qemucount":0,"appssupp":["plex","jellyfin","handbrake","emby","tdarr","unmanic","dizquetv","ersatztv","fileflows","frigate","threadfin","tunarr","codeproject","deepstack","nsfminer","shinobipro","foldinghome","compreface","ollama","immich","localai","invokeai","chia","mmx","subspace","xorg","qemu"],"vfio":false,"vfiochk":false,"vfiochkid":"0000:2B:00.0","vfiovm":false,"panel":1}}

 

I want to add something : I was messing around with my network, and during some movin arround my switches connection, the icons came back for a few second. Next refresh : gone.

 

Maybe this issue isn't related at all with your plugin...

 

I didn't manage to reproduce when I messed up with my local network and the icon showed up randomly.

2 hours ago, Murderhobo said:

Running that the output is;

 

Check Link
is Link
nvidia

 

Yeah, the device ID

 

image.png.d4239fb5fcb119ea89075a4da33af02f.png

Thanks, that is strange as it seems to be the driver was coming back blank.

 

So I added code to set to NVIDIA if didn't match which was the fix.

 

        $driver = strtoupper($this->getKernelDriver("0000:".$this->settings['PCIID']));
        if ($driver != "NVIDIA" && $driver != "NOUVEAU") $driver = "NVIDIA";

 

 

Can you run this just so I can see the length.

 

 

<? 
   function getKernelDriver(string $pciid) {
        $driver = '';
        echo "Check Link\n";
        if (is_link('/sys/bus/pci/devices/'.$pciid.'/driver')) {
            echo "is Link\n";
            $strLink = @readlink('/sys/bus/pci/devices/'.$pciid.'/driver');
            if (!empty($strLink)) {
                $driver = basename($strLink);
            } else { echo "Empty Link\n"; }
        }
        return $driver;
    }


echo getKernelDriver("0000:0a:00.0")."\n";
echo strlen(getKernelDriver("0000:0a:00.0"))."\n";
?>

 

2 hours ago, A.sch3 said:

 

Sorry I don't think I tagged you properly.

 

 

I didn't manage to reproduce when I messed up with my local network and the icon showed up randomly.

Which browser are you using.

26 minutes ago, SimonF said:

Thanks, that is strange as it seems to be the driver was coming back blank.

 

So I added code to set to NVIDIA if didn't match which was the fix.

 

        $driver = strtoupper($this->getKernelDriver("0000:".$this->settings['PCIID']));
        if ($driver != "NVIDIA" && $driver != "NOUVEAU") $driver = "NVIDIA";

 

 

Can you run this just so I can see the length.

 

 

<? 
   function getKernelDriver(string $pciid) {
        $driver = '';
        echo "Check Link\n";
        if (is_link('/sys/bus/pci/devices/'.$pciid.'/driver')) {
            echo "is Link\n";
            $strLink = @readlink('/sys/bus/pci/devices/'.$pciid.'/driver');
            if (!empty($strLink)) {
                $driver = basename($strLink);
            } else { echo "Empty Link\n"; }
        }
        return $driver;
    }


echo getKernelDriver("0000:0a:00.0")."\n";
echo strlen(getKernelDriver("0000:0a:00.0"))."\n";
?>

 

image.png.18ae69fe845ec0693fe299c2dce5957c.png

Replaced with that code and reran php -f

Did I need to add the first part before the code to it? Its been ages and I foget php coding.

 

edit: oh, the plugin works fine , forced transcode/

Screenshot2025-03-12151917.png.200c5649f4286e5350d74a822ff03976.png

 

Edited by Murderhobo
add pic

13 minutes ago, Murderhobo said:

image.png.18ae69fe845ec0693fe299c2dce5957c.png

Replaced with that code and reran php -f

Did I need to add the first part before the code to it? Its been ages and I foget php coding.

 

edit: oh, the plugin works fine , forced transcode/

Screenshot2025-03-12151917.png.200c5649f4286e5350d74a822ff03976.png

 

Thanks not sure why it is not finding the driver. Will look to see if I can do a different way, this was the reason it did not work yesterday.

How do I upgrade the kernel if I am already on the latest version of Unraid?

1 hour ago, Coreybau said:

How do I upgrade the kernel if I am already on the latest version of Unraid?

New Kernel will be in 7.1 I think there will be a beta soon.

2 hours ago, SimonF said:

Which browser are you using.

Firefox, Edge and Chrome. All show same behavior.

On 3/12/2025 at 3:39 PM, SimonF said:

Thanks not sure why it is not finding the driver. Will look to see if I can do a different way, this was the reason it did not work yesterday.

No idea myself, unless its some kind of environment variable in unraid for me.

Running 3.12 with thor's 6.14rc3 (will push rc5 shortly) on Unraid 7.0 and my b580 is at least shown. Have yet to reboot the server - server is in active use right now so can't reboot to check for app usage. 

 

image.png.be838e504222598ef8deb2c8c2faf063.png

 

And output of lspci -k for reference.

 

@SimonF Let me know if you need anything specific.

image.png

Edited by jaybird2203

how to test if any load with plugin ? 

 

image.thumb.png.c9afe52e842ed757898f6d0ded3cabf8.png

 

image.png.eb16658785d34d84c0991fdfc9f5e675.png

 

it seems not working any commands for test it ? using immich in docker with igpu

Edited by Masterwishx

2 hours ago, Masterwishx said:

how to test if any load with plugin ? 

 

image.thumb.png.c9afe52e842ed757898f6d0ded3cabf8.png

 

image.png.eb16658785d34d84c0991fdfc9f5e675.png

 

it seems not working any commands for test it ? using immich in docker with igpu

What does intel_gpu_top show,

 

1 minute ago, SimonF said:

What does intel_gpu_top show,

 

only watts changing ....

 

image.thumb.png.5c8312e8e490b2241804b3c33c23f65b.png

29 minutes ago, Masterwishx said:

 

only watts changing ....

 

image.thumb.png.5c8312e8e490b2241804b3c33c23f65b.png

Xvnc and obsidian I don't think are in the apps list. But if no values in top then gui will not show.

42 minutes ago, SimonF said:

I don't think are in the apps list. But if no values in top then gui will not show.

Obsidian in docker use igpu, and immich maybe represent xvnc. 

When play videos in immich I can see more value in watts 

9 minutes ago, Masterwishx said:

and immich maybe represent xvnc. 

seems its related to obisidian (kasm) too ...

2 minutes ago, Masterwishx said:

seems its related to obisidian (kasm) too ...

If you touch /tmp/gpustatapps then it will create /tmp/gpuappsint if you send I can look at adding the apps.

1 hour ago, SimonF said:

If you touch /tmp/gpustatapps then it will create /tmp/gpuappsint

 

strange, after `touch /tmp/gpustatapps` its made blank file but no /tmp/gpuappsint .

 

i have only

`gpudata0000:00:02.0` and `gpurawdata0000:00:02.0` in /tmp also strange that i dont have `immich pid` in intel-gpu-top . 

 

this is from immich container

image.thumb.png.d14cb244db540ba093649ed16937a915.png

 

3 hours ago, Masterwishx said:

 

strange, after `touch /tmp/gpustatapps` its made blank file but no /tmp/gpuappsint .

 

i have only

`gpudata0000:00:02.0` and `gpurawdata0000:00:02.0` in /tmp also strange that i dont have `immich pid` in intel-gpu-top . 

 

this is from immich container

image.thumb.png.d14cb244db540ba093649ed16937a915.png

 

Works on my system as expected. Where you on the dashboard page for it to refresh and create the file?

 

root@computenode:~# cd /tmp
root@computenode:/tmp# ls gpu*
gpuappsint  gpudata0000:00:02.0  gpujson  gpurawdata0000:00:02.0  gpustatapps
root@computenode:/tmp# cat gpuappsint 

found app qemu qemu
root@computenode:/tmp# cat gpustatapps 
root@computenode:/tmp# ls -l gpu*
-rw-r--r-- 1 root root   21 Mar 14 19:19 gpuappsint
-rw-r--r-- 1 root root  802 Mar 14 19:19 gpudata0000:00:02.0
-rw-r--r-- 1 root root 4232 Mar 14 19:19 gpujson
-rw-r--r-- 1 root root 3566 Mar 14 19:19 gpurawdata0000:00:02.0
-rw-rw-rw- 1 root root    0 Mar 14 18:37 gpustatapps
root@computenode:/tmp# 
 

Could you post gpudata0000:00:02.0

I've a bit of a strange issue I've noticed recently, not sure if it's because I recently upgraded Unraid to 7.0.1 or not. The plugin seems to flip between the error of 'Vendor command returned unparsable data' and then showing the stats as you would expect, including the same data being returned from gpu_top.

 

It's an Intel i7-9700TE with the iGPU being the UHD Graphics 630.

 

Intel_gpu_top runs without any issues and shows the stats and the application like plex when transcoding.

 

Have tried removing and re-installing both plugins also, but the same issue. Anyone come across anything similar? I had a good look at the last few pages and most recent posts, but didn't notice anything similar.

GPUstat1.jpg

GPUstat3.jpg

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.