[PLUGIN] GPU Statistics


Recommended Posts

I just installed Radeon top and gpustats plugin, but I am getting N/A for everything on the dashboard.

I'm guessing this is because I don't have any option for unit ID in the settings dropdown.

image.thumb.png.f7cc762eacdaf6860c56608a228a5800.png

 

Here is my prerequisite info:

1c)

1671328975.837183: bus 01, gpu 0.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 0.13% 5.30mb, gtt 0.23% 9.04mb, mclk 10.53% 0.150ghz, sclk 31.98% 0.317ghz

 

2) just hangs, left it for a few minutes but no result

3)

image.png.b6ebacc1d66d19483163c4214b8dd2b6.png

 

4) VENDOR="amd"
GPUID=""
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"

 

Any help would be greatly appreciated!

Link to comment
On 12/7/2022 at 6:48 PM, Joker169 said:

Sure.

 

0	Object { code: 302, message: "Vendor command returned unparseable data.", extra: "" }

 

image.thumb.png.e7976674f5c4c1c145257b3e54a57289.png

 

That is bizarre to say the least.  I need to set up a screen share session with you to diagnose further as there really shouldn't be a disparity between running it from web and CLI.

Link to comment
On 12/10/2022 at 10:34 AM, Jclendineng said:

Version 2022.11.30a I get N/A for everything as well, just adding that here.  I have had this for a while and thought it was just something I did, good to see its not just me.

 

Edit: Rolled back per the person a few posts back and it works, thanks!!

 

https://raw.githubusercontent.com/b3rs3rk/gpustat-unraid/6cf1b1e96bc8cd5c1cf7ac8fefea1271d8891e26/gpustat.plg

 

If you're happy with staying version locked forever, cool.  But if you want help fixing the issue I will need a lot more detail starting with everything I outline in the troubleshooting section of the first post of this thread.

Link to comment
9 hours ago, b3rs3rk said:

@Wookiee of the Year What is the result of the following command on your system?
 

lspci | grep VGA

 

00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285/380] (rev f1)

 

Link to comment
On 12/21/2022 at 9:05 AM, b3rs3rk said:

 

If you're happy with staying version locked forever, cool.  But if you want help fixing the issue I will need a lot more detail starting with everything I outline in the troubleshooting section of the first post of this thread.

I am, its just utilization, but I have updated again and included the troubleshooting steps listed in the OP, thank you!

 

Edit: I updated and it works...Im not 100% sure why. Possibly the APU needed reset, but I had thought that last time and rebooted which should reset it, which didn't fix.  Ill reply with drag info if it pops up again...Thank you!

Link to comment

Hello

Currently running into a similar problem as other have listed where my gpu stats are not populating as well

Here is the list of steps i have done:
- uninstalled and reinstalled gpustat and Radeon Top
- restarted the tower after the uninstalls
- attached the results of the results of commands listed on page 1 as per the notes
- used the github links for the gpustat app for a manual install:
>>https://raw.githubusercontent.com/b3rs3rk/gpustat-unraid/6cf1b1e96bc8cd5c1cf7ac8fefea1271d8891e26/gpustat.plg
>> https://raw.githubusercontent.com/b3rs3rk/gpustat-unraid/master/gpustat.plg

please let me know if anything else is needed thank you for your time!

Screenshot 2022-12-29 at 1.39.36 AM.png

Screenshot 2022-12-29 at 1.40.45 AM.png

gpustat.cfg gpustatus.php radeontop_cmd_output.md

  • Upvote 1
Link to comment
On 12/21/2022 at 8:00 AM, b3rs3rk said:

 

That is bizarre to say the least.  I need to set up a screen share session with you to diagnose further as there really shouldn't be a disparity between running it from web and CLI.

Okay, let me know when you are available to do that. Also what platform you would like to use and related info, so it can be setup for the session via DM or your preference.

Link to comment

I'm getting the same issue as above, AMD GPU with RadeonTop installed, no options to select from in "Unit ID for Dashboard".

lspci | grep VGA gives me this:

07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev ef)

 

Trying to see my GPU usage because I'm getting a stutter from the encoder while using the steam-headless container. Any help is appreciated.

Link to comment
On 11/29/2022 at 6:10 AM, Kewjoe said:

 

1. Remove the current plugin

2. go to Plugins section > Install Plugins

3. Enter the below URL and Press "Install"

 

https://raw.githubusercontent.com/b3rs3rk/gpustat-unraid/6cf1b1e96bc8cd5c1cf7ac8fefea1271d8891e26/gpustat.plg

 

I just wanted to say thank you for posting this. The current version 2022.11.30a was not detecting one of my GPUs. Both are passed through to VMs, when both VMs were stopped, only one GPU appeared in GPU Statistics, there was a ' -: ' for the other.

 

Reverting to this version, 2022.02.22, stopping my VMs, and running SpaceinvaderOne's scripts produced this output:

 

'''

I can see these Nvidia gpus in your server

GPU 0: NVIDIA ...

GPU 1: NVIDIA ...
-------

Persistence mode is already Enabled for GPU

00000000.02:00.0.

Enabled persistence mode for GPU

00000000.65:00.0.

All done.

Power state is

P8

P0

--------

Power draw is now

power.draw [W]

[N/A]

104.92 W

'''


Immediately afterwards, I checked the dashboard, GPU1 showed 9-10 watts of usage. I also have a 1200 watt UPS which I have configured for Unraid. Usually, I see about 14-18% (168-192 watts) usage with all VMs stopped. After running the script, it shows about 10-14% (120-168 watts).

 

I added another one of SpaceinvaderOne's script to run every 5 minutes "*/5 * * * *".

 

While I cannot be 100% sure that both my GPUs were reaching an S8 sleep state before I ran SpaceinvaderOne's script, I'm glad to have the peace of mind from using this plug-in to confirm I'm doing what I can to reduce power usage.

 

Thank you everyone.

 

Edited by byb
  • Thanks 1
Link to comment
On 11/28/2022 at 11:10 PM, Kewjoe said:

 

1. Remove the current plugin

2. go to Plugins section > Install Plugins

3. Enter the below URL and Press "Install"

 

https://raw.githubusercontent.com/b3rs3rk/gpustat-unraid/6cf1b1e96bc8cd5c1cf7ac8fefea1271d8891e26/gpustat.plg

 

Thank you very much. Helped me also a lot. :)

Link to comment

Been using this plugin for awhile, works great with my Nvidia P400.  Thank you for this.

 

Recently upgraded my CPU to a 5700G APU.  I am using the iGPU as a local display on the server, driving a PiKVM, and all of that works well.  My question is, can/should this plugin also be able to display the AMD statistics?  When I configure it for AMD, I don't get a real selection for it in the config page, and then only N/A across the board for the stats.  I do have Radeon-Top installed.

No AMD Stats.jpg

No AMD stats 2.JPG

Radeon-Top GPU Stats.JPG

Edited by ConnerVT
added Radeon-Top is installed
  • Upvote 1
Link to comment

Hi, thanks for this plugin.

 

Frequently for me the intel_gpu_top command returns all zeroes and then dashboard also displays all zeroes. When running intel_gpu_top myself interactively from the command line, it doesn't show load dropping to zero. 

 

Thanks for any insight you have.

 

Quote

 

root@unraid:~# timeout -k .500 .400 intel_gpu_top -J -s 250

{
	"period": {
		"duration": 29.724667,
		"unit": "ms"
	},
	"frequency": {
		"requested": 0.000000,
		"actual": 0.000000,
		"unit": "MHz"
	},
	"interrupts": {
		"count": 0.000000,
		"unit": "irq/s"
	},
	"rc6": {
		"value": 0.000000,
		"unit": "%"
	},
	"power": {
		"GPU": 0.000000,
		"Package": 3.211440,
		"unit": "W"
	},
	"engines": {
		"Render/3D/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		},
		"Blitter/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		},
		"Video/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		},
		"VideoEnhance/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		}
	},
	"clients": {
		"4294963488": {
			"name": "Plex Transcoder",
			"pid": "3808",
			"engine-classes": {
				"Render/3D": {
					"busy": "0.000000",
					"unit": "%"
				},
				"Blitter": {
					"busy": "0.000000",
					"unit": "%"
				},
				"Video": {
					"busy": "0.000000",
					"unit": "%"
				},
				"VideoEnhance": {
					"busy": "0.000000",
					"unit": "%"
				}
			}
		}
	}
},
{
	"period": {
		"duration": 280.711452,
		"unit": "ms"
	},
	"frequency": {
		"requested": 0.000000,
		"actual": 0.000000,
		"unit": "MHz"
	},
	"interrupts": {
		"count": 0.000000,
		"unit": "irq/s"
	},
	"rc6": {
		"value": 0.000000,
		"unit": "%"
	},
	"power": {
		"GPU": 0.000000,
		"Package": 2.041235,
		"unit": "W"
	},
	"engines": {
		"Render/3D/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		},
		"Blitter/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		},
		"Video/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		},
		"VideoEnhance/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		}
	},
	"clients": {
		"4294963488": {
			"name": "Plex Transcoder",
			"pid": "3808",
			"engine-classes": {
				"Render/3D": {
					"busy": "0.000000",
					"unit": "%"
				},
				"Blitter": {
					"busy": "0.000000",
					"unit": "%"
				},
				"Video": {
					"busy": "0.000000",
					"unit": "%"
				},
				"VideoEnhance": {
					"busy": "0.000000",
					"unit": "%"
				}
			}
		}
	}

 

 

Quote

 

root@unraid:~# cat /boot/config/plugins/gpustat/gpustat.cfg 
VENDOR="intel"
GPUID="0000-00-000-000000"
TEMPFORMAT="C"
DISPCLOCKS="1"
DISPENCDEC="1"
DISPPCIUTIL="1"
DISPTEMP="0"
DISPFAN="0"
DISPPWRDRAW="1"
DISPPWRSTATE="1"
DISPTHROTTLE="1"
DISPSESSIONS="1"
UIREFRESH="1"
UIREFRESHINT="2000"
DISPMEMUTIL="0"
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"

 

 

Edited by zbot
Link to comment

Trying to update this plugin on 6.11.5, getting this:

 


Update Plugin

plugin: updating: gpustat.plg
Executing hook script: pre_plugin_checks
********************************************************************

No vendor utilities found. Plugin install terminated due to failed prerequisites.

********************************************************************
plugin: run failed: /bin/bash
Executing hook script: post_plugin_checks

 

Any ideas why?

Link to comment
2 minutes ago, jeffreywhunter said:

Trying to update this plugin on 6.11.5, getting this:

 


Update Plugin

plugin: updating: gpustat.plg
Executing hook script: pre_plugin_checks
********************************************************************

No vendor utilities found. Plugin install terminated due to failed prerequisites.

********************************************************************
plugin: run failed: /bin/bash
Executing hook script: post_plugin_checks

 

Any ideas why?

You need intel gpu top/radeontop or nvidia drivers loaded first depending on gpu

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.