[PLUGIN] GPU Statistics


Recommended Posts

8 minutes ago, SimonF said:

intel_gpu_top shows igpu interactively but doesn't see to create json. This was from one of the 13xxx machines.

I really can't tell what's wrong there because the last update was about a month ago and I know two people with a 13700k and a 13900k where it is working correctly.

This is a really strange behaviour...
Is it possible that something is wrong because the render device is like in your screenshot /dev/dri/renderD129 (/dev/dri/card1) instead of /dev/dri/renderD128 (/dev/dri/card0)?

  • Like 1
Link to comment
5 hours ago, SimonF said:

can you provide intel_gpu_top -L and which cpu do you have?

root@KiNG-KOOPA:/tmp# intel_gpu_top -L
card0                    1002:67df                         pci:vendor=1002,device=67DF,card=0
└─renderD128            
card1                    Intel Alderlake_s (Gen12)         pci:vendor=8086,device=4680,card=0
└─renderD129            

Also Running 13500 CPU and X790 Chipset Motherboard.

 

Also attached Diagnostic for Ich777

king-koopa-diagnostics-20230319-0906.zip

  • Like 1
Link to comment
1 minute ago, CrazyBoyS said:

root@KiNG-KOOPA:/tmp# intel_gpu_top -L
card0                    1002:67df                         pci:vendor=1002,device=67DF,card=0
└─renderD128            
card1                    Intel Alderlake_s (Gen12)         pci:vendor=8086,device=4680,card=0
└─renderD129            

Also Running 13500 CPU and X790 Chipset Motherboard.

 

Also attached Diagnostic for Ich777

king-koopa-diagnostics-20230319-0906.zip 201.55 kB · 0 downloads

just added this to my post

 

does intel_gpu_top -Jo - -d pci:slot=0000:00:02.0 produce any output

Link to comment
22 minutes ago, SimonF said:

just added this to my post

 

does intel_gpu_top -Jo - -d pci:slot=0000:00:02.0 produce any output

GVT-g was installed so removed it.

 

}^Croot@KiNG-KOOPA:~# intel_gpu_top -Jo - -d pci:slot=0000:00:02.0

{
        "period": {
                "duration": 14.966672,
                "unit": "ms"
        },
        "frequency": {
                "requested": 0.000000,
                "actual": 0.000000,
                "unit": "MHz"
        },
        "interrupts": {
                "count": 0.000000,
                "unit": "irq/s"
        },
        "rc6": {
                "value": 100.000000,
                "unit": "%"
        },
        "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": "%"
                },
                "Video/1": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                },
                "VideoEnhance/0": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                }
        },
        "clients": {

        }
}
{
        "period": {
                "duration": 1011.490547,
                "unit": "ms"
        },
        "frequency": {
                "requested": 0.000000,
                "actual": 0.000000,
                "unit": "MHz"
        },
        "interrupts": {
                "count": 0.988640,
                "unit": "irq/s"
        },
        "rc6": {
                "value": 100.000000,
                "unit": "%"
        },
        "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": "%"
                },
                "Video/1": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                },
                "VideoEnhance/0": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                }
        },
        "clients": {

        }
}^Croot@KiNG-KOOPA:~#

Link to comment
2 minutes ago, CrazyBoyS said:

GVT-g was installed so removed it.

 

}^Croot@KiNG-KOOPA:~# intel_gpu_top -Jo - -d pci:slot=0000:00:02.0

{
        "period": {
                "duration": 14.966672,
                "unit": "ms"
        },
        "frequency": {
                "requested": 0.000000,
                "actual": 0.000000,
                "unit": "MHz"
        },
        "interrupts": {
                "count": 0.000000,
                "unit": "irq/s"
        },
        "rc6": {
                "value": 100.000000,
                "unit": "%"
        },
        "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": "%"
                },
                "Video/1": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                },
                "VideoEnhance/0": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                }
        },
        "clients": {

        }
}
{
        "period": {
                "duration": 1011.490547,
                "unit": "ms"
        },
        "frequency": {
                "requested": 0.000000,
                "actual": 0.000000,
                "unit": "MHz"
        },
        "interrupts": {
                "count": 0.988640,
                "unit": "irq/s"
        },
        "rc6": {
                "value": 100.000000,
                "unit": "%"
        },
        "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": "%"
                },
                "Video/1": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                },
                "VideoEnhance/0": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                }
        },
        "clients": {

        }
}^Croot@KiNG-KOOPA:~#

Ok, at least there is output now, Does intel_gpu_top -J -s 250  -d pci:slot=0000:00:02.0 produce out now you have removed gvt-g

 

 

Link to comment
2 minutes ago, SimonF said:

Ok, at least there is output now, Does intel_gpu_top -J -s 250  -d pci:slot=0000:00:02.0 produce out now you have removed gvt-g

 

 

I removed GPT-g first then ran the command and got that output.

 

Here is a new run.

 

intel_gpu_top -J -s 250  -d pci:slot=0000:00:02.0

{
        "period": {
                "duration": 12.701464,
                "unit": "ms"
        },
        "frequency": {
                "requested": 0.000000,
                "actual": 0.000000,
                "unit": "MHz"
        },
        "interrupts": {
                "count": 0.000000,
                "unit": "irq/s"
        },
        "rc6": {
                "value": 99.999551,
                "unit": "%"
        },
        "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": "%"
                },
                "Video/1": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                },
                "VideoEnhance/0": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                }
        },
        "clients": {

        }

Link to comment
3 minutes ago, CrazyBoyS said:

I removed GPT-g first then ran the command and got that output.

 

Here is a new run.

 

intel_gpu_top -J -s 250  -d pci:slot=0000:00:02.0

{
        "period": {
                "duration": 12.701464,
                "unit": "ms"
        },
        "frequency": {
                "requested": 0.000000,
                "actual": 0.000000,
                "unit": "MHz"
        },
        "interrupts": {
                "count": 0.000000,
                "unit": "irq/s"
        },
        "rc6": {
                "value": 99.999551,
                "unit": "%"
        },
        "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": "%"
                },
                "Video/1": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                },
                "VideoEnhance/0": {
                        "busy": 0.000000,
                        "sema": 0.000000,
                        "wait": 0.000000,
                        "unit": "%"
                }
        },
        "clients": {

        }

Does that planel work now in dashboard? can you provide cat /tmp/gpujson2 as that looks ok

Link to comment
2 minutes ago, SimonF said:

Does that planel work now in dashboard? can you provide cat /tmp/gpujson2 as that looks ok

No still N/A

 

root@KiNG-KOOPA:~# cat /tmp/gpujson2
Time = Sun, 19 Mar 2023 09:46:55 -0400
{"clock":"N\/A","fan":"N\/A","memclock":"N\/A","memutil":"N\/A","memused":"N\/A","power":"N\/A","powermax":"N\/A","rxutil":"N\/A","txutil":"N\/A","temp":"N\/A","tempmax":"N\/A","util":"N\/A","error":[{"code":301,"message":"Vendor command returned no data.","extra":""}]}

Link to comment
5 minutes ago, CrazyBoyS said:

No still N/A

 

root@KiNG-KOOPA:~# cat /tmp/gpujson2
Time = Sun, 19 Mar 2023 09:46:55 -0400
{"clock":"N\/A","fan":"N\/A","memclock":"N\/A","memutil":"N\/A","memused":"N\/A","power":"N\/A","powermax":"N\/A","rxutil":"N\/A","txutil":"N\/A","temp":"N\/A","tempmax":"N\/A","util":"N\/A","error":[{"code":301,"message":"Vendor command returned no data.","extra":""}]}

Ok just worked out what the problem is the AMD gpu is being picked up by the intel_gpu_top command hence no data, pre 6.12 it does not specify a card. Are you using the AMD for transcode, if not if you bind to vfio the command wont see it and it should show the iGPU in the dashboard.

Edited by SimonF
Link to comment
3 minutes ago, SimonF said:

Ok just worked out what the problem is the AMD gpu is being picked up by the intel_gpu_top command hence no data, pre 6.12 it does not specify a card. Are you using the AMD for transcode, if not if you bind to vfio the command wont see it and it should show the iGPU in the dashboard.

Added it for VM testing etc not for transcoding as I had a P400 for that which i removed.

 

How can i bind the Intel?

Link to comment
14 minutes ago, CrazyBoyS said:

Added it for VM testing etc not for transcoding as I had a P400 for that which i removed.

 

How can i bind the Intel?

Goto tools=>system and tick the box next to the AMD cards to bind them to vfio. Was double checking your config, looks like there may be a bug writing the GPUID in the config file.

 

VENDOR="intel"
GPUID="0000-00-000-000000"

 

do nano /boot/config/pluging/gpustat/gpustat.cfg

 

change GPUID to be ="0000:00:02.0"

 

Dont bind intel to VFIO as the system will not see. But dont thing you need to do that now.

 

image.thumb.png.d7471386c327426ce84b55c073be3aa5.png

Edited by SimonF
Link to comment
12 minutes ago, SimonF said:

Goto tools=>system and tick the box next to the AMD cards to bind them to vfio. Was double checking your config, looks like there may be a bug writing the GUID in the config file.

 

VENDOR="intel"
GPUID="0000-00-000-000000"

 

do nano /boot/config/pluging/gpustat/gpustat.cfg

 

change GPUID to be ="0000:00:02.0"

 

Dont bind intel to VFIO as the system will not see. But dont thing you need to do that now.

 

image.thumb.png.d7471386c327426ce84b55c073be3aa5.png

So  my system does not have check box options ( used to in older versions on unraid ) 

 

image.thumb.png.eb72f962de68c30bdc39400a3af45755.png

 

I modified the Config file ( FYI path is wrong you gave me, you ment plugins/ ) and added the 0000:00:02.0

 

Edited by CrazyBoyS
Link to comment
2 minutes ago, CrazyBoyS said:

So  my system does not have check box options ( used to in older versions on unraid ) 

 

image.thumb.png.eb72f962de68c30bdc39400a3af45755.png

 

I modified the Config file ( FYI path is wrong you gave me, you ment plugins/ ) and added the 0000:00:02.0

 

sorry about the path is it working now?

 

It will be because you have not enabled IOMMU function in BIOS which will be needed for passthru.

 

image.png.d6ea2d2c912a3761212897338ae67a04.png

Link to comment
1 minute ago, SimonF said:

sorry about the path is it working now?

 

It will be because you have not enabled IOMMU function in BIOS which will be needed for passthru.

 

image.png.d6ea2d2c912a3761212897338ae67a04.png

Yup realized that when I was writing the last comment. 😅 

 

Forgot to enable VT ugh. Can't reboot atm wife on plex. I'll post as soon as I make the change.

Link to comment
14 hours ago, Juani said:

Hi,

Same here. With one Core i5 13500. Not info displayed too.

We hope the developer will update the plugin.

check the GPUID in the config file should be the PCI ID, normally 0000:00:02.0 for Intel igpu and needs to have the full one including 0000 domain ID.

Link to comment
10 minutes ago, SimonF said:

Glad to hear, not sure why it was not working on the original plugin. I suspect was picking up the AMD. Will look into the issue with updating GPUID.

Appreciate the work.

Waiting to see how the multi gpu one works.

 

Also plex now shows (HD) when transcoding perfect.

 

 

Screenshot_20230319_111053.jpg

Edited by CrazyBoyS
Link to comment
9 hours ago, SimonF said:

Are you running 6.11.5 also? it may be that a newer kernel may be required.

Hi!

My diagnostics:

Following your last indications... it doesn't work either.

 

I changed to 0000:00:02.0 in gpustat.cfg

(GPUID="0000:00:02.0")

 

cat /tmp/gpujson2

cat: /tmp/gpujson2: No such file or directory

 

Launching intel_gpu_top -Jo - -d pci:slot=0000:00:02.0:

 

"period": {
		"duration": 19.598284,
		"unit": "ms"
	},
	"frequency": {
		"requested": 0.000000,
		"actual": 0.000000,
		"unit": "MHz"
	},
	"interrupts": {
		"count": 0.000000,
		"unit": "irq/s"
	},
	"rc6": {
		"value": 100.000000,
		"unit": "%"
	},
	"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": "%"
		},
		"Video/1": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		},
		"VideoEnhance/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		}
	},
	"clients": {

	}
}
{
	"period": {
		"duration": 268.956403,
		"unit": "ms"
	},
	"frequency": {
		"requested": 0.000000,
		"actual": 0.000000,
		"unit": "MHz"
	},
	"interrupts": {
		"count": 0.000000,
		"unit": "irq/s"
	},
	"rc6": {
		"value": 100.000000,
		"unit": "%"
	},
	"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": "%"
		},
		"Video/1": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		},
		"VideoEnhance/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		}
	},

 

448419775_Capturadepantalla2023-03-19alas19_08_53.thumb.png.61e09cd4d314ae964a407c0e74cfaefd.png

juani-diagnostics-20230319-1910.zip

Edited by Juani
Link to comment
17 minutes ago, Juani said:

Hi!

My diagnostics:

Following your last indications... it doesn't work either.

 

I changed to 0000:00:02.0 in gpustat.cfg

(GPUID="0000:00:02.0")

 

cat /tmp/gpujson2

cat: /tmp/gpujson2: No such file or directory

 

Launching intel_gpu_top -Jo - -d pci:slot=0000:00:02.0:

 

"period": {
		"duration": 19.598284,
		"unit": "ms"
	},
	"frequency": {
		"requested": 0.000000,
		"actual": 0.000000,
		"unit": "MHz"
	},
	"interrupts": {
		"count": 0.000000,
		"unit": "irq/s"
	},
	"rc6": {
		"value": 100.000000,
		"unit": "%"
	},
	"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": "%"
		},
		"Video/1": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		},
		"VideoEnhance/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		}
	},
	"clients": {

	}
}
{
	"period": {
		"duration": 268.956403,
		"unit": "ms"
	},
	"frequency": {
		"requested": 0.000000,
		"actual": 0.000000,
		"unit": "MHz"
	},
	"interrupts": {
		"count": 0.000000,
		"unit": "irq/s"
	},
	"rc6": {
		"value": 100.000000,
		"unit": "%"
	},
	"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": "%"
		},
		"Video/1": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		},
		"VideoEnhance/0": {
			"busy": 0.000000,
			"sema": 0.000000,
			"wait": 0.000000,
			"unit": "%"
		}
	},

 

448419775_Capturadepantalla2023-03-19alas19_08_53.thumb.png.61e09cd4d314ae964a407c0e74cfaefd.png

juani-diagnostics-20230319-1910.zip 194.26 kB · 1 download

You need to follow this step and install my version of the plugin.

https://forums.unraid.net/topic/89453-plugin-gpu-statistics/?do=findComment&comment=1241444

 

Link to comment
24 minutes ago, SimonF said:

You need to follow this step and install my version of the plugin.

https://forums.unraid.net/topic/89453-plugin-gpu-statistics/?do=findComment&comment=1241444

 

Thanks SimonF for your quickly response.

 

Something very strange is happening. In your plugin, when I change "Change me" to "Intel" and click on "Apply", it does not save the changes.
I have tried several browsers, and nothing.
To make sure, I have reinstalled the ""official"" Plugin and it does let me save the changes.

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.