[PLUGIN] GPU Statistics


Recommended Posts

4 hours ago, Green Dragon said:

Hita!

 

PROBLEM: GPU Statistics is displaying stats from an old gpu

DETAILS: I recently changed motherboards.  I went from an Intel Xeon to an Intel i7 4790.  I only just installed gpu top and gpu statistics.  When i select 'Unit ID for Dashboard(Multiple):' dropdown it lists '00:02.0: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller - 0000:00:02.0' which of course was the old gpu prior to replacement.

Running intel_gpu_top from the console reports the following:

 

image.thumb.png.45846435d48b8d5e9f57b51922d1aa20.png

 

Thoughts?

What do you get from

 

lspci -Dmm | grep -E 'Display|VGA'

cat /tmp/gpujson

cat /boot/config/plugins/gpustat/gpustat.cfg 

timeout -k .500 .600 intel_gpu_top -Jo - -d pci:slot=0000:00:02.0

 

Link to comment
9 hours ago, SimonF said:

What do you get from

 

lspci -Dmm | grep -E 'Display|VGA'

cat /tmp/gpujson

cat /boot/config/plugins/gpustat/gpustat.cfg 

timeout -k .500 .600 intel_gpu_top -Jo - -d pci:slot=0000:00:02.0

 

Thanks for the reply!

Here is the output you requested:

 

root@Battarang:~# lspci -Dmm | grep -E 'Display|VGA'
0000:00:02.0 "VGA compatible controller" "Intel Corporation" "Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller" -r06 -p00 "ASUSTeK Computer Inc." "Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller"

 

root@Battarang:~# cat /tmp/gpujson
Time = Sat, 12 Aug 2023 05:47:10 -0700

root@Battarang:~# cat /boot/config/plugins/gpustat/gpustat.cfg 
VENDOR=""
    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"

 

root@Battarang:~# timeout -k .500 .600 intel_gpu_top -Jo - -d pci:slot=0000:00:02.0

{
        "period": {
                "duration": 0.035772,
                "unit": "ms"
        },
        "frequency": {
                "requested": 0.000000,
                "actual": 0.000000,
                "unit": "MHz"
        },
        "interrupts": {
                "count": 0.000000,
                "unit": "irq/s"
        },
        "rc6": {
                "value": 97.967684,
                "unit": "%"
        },
        "power": {
                "GPU": 0.000000,
                "Package": 0.000000,
                "unit": "W"
        },
        "imc-bandwidth": {
                "reads": 61.424176,
                "writes": 23.887180,
                "unit": "MiB/s"
        },
        "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": "%"
                }
        }
}root@Battarang:~# 

Link to comment
1 hour ago, SimonF said:

Yes

 

I kept seeing this in my inbox and and didn't think someone was still running Haswell iGPU like me on my kids gaming PC.


I can confirm that my Haswell i5-4570s would have its Intel Graphics 4600 show up as Xeon as well before I installed the Intel driver in Windows.

Link to comment
16 hours ago, axipher said:

 

I kept seeing this in my inbox and and didn't think someone was still running Haswell iGPU like me on my kids gaming PC.


I can confirm that my Haswell i5-4570s would have its Intel Graphics 4600 show up as Xeon as well before I installed the Intel driver in Windows.

Thank you very much!

Link to comment
13 minutes ago, DaMAN said:

Hi, was there ever a fix for no power showing for the 1050 series?

This plugin is dependant on the driver package to provide the values.

 

root@computenode:~# nvidia-smi -q -x -g 0 | grep power_draw
                        <power_draw>8.39 W</power_draw>

 

Can you post the output of

nvidia-smi -q -x -g 0

Link to comment

Under the broken plugins section of the 6.12 build notes it says:

 

Quote

gpustat version 2022.11.30a (GPU Statistics by b3rs3rk, breaks the dashboard)

Switch to GPU Statistics by SimonF

 

Where can I find the build by SimonF ?

 

 

*EDIT* Thank you, it was under apps. 

Edited by Lobus
Link to comment

I am so glad to see this, so thank you to everyone who has worked to make this a reality.  I am going to give it a shot and remove my Quadro card.  I am using a Ryzen 5700G on 6.12.3 stable, I have added the rest of the instructions with zero difficulty.

 

I do need help and someone to hold my hand.  When installing the container the directions say "- At 'Device' at the bottom here in the template add '/dev/dri' "  My assumption is "Add another port, path, variable or device" but I am more of a hardware person.  Is that correct?  While researching I see where others have added it in "Extra Parameters" but that seems wrong to me.

Link to comment
43 minutes ago, SirReal63 said:

I am going to give it a shot and remove my Quadro card.  I am using a Ryzen 5700G on 6.12.3 stable, I have added the rest of the instructions with zero difficulty.

I assume you are talking about transcoding, what are you using Emby/Jellyfin/Plex?

 

Just as a heads up Plex officially doesn't support AMD transcoding but I think there is a Docker mod for the Linuxserver.io container and a custom version from the official Plex container around -> but this would be better suited in one of the support threads from the containers.

 

Only Emby and Jellyfin support that OOB, at least the official containers for sure and I also think the Linuxserver.io container.

You can at least find more information about Emby here and the Linuxserver.io Jellyfin container here (that's only what I found after a quick search and as said, I'm not an expert with AMD because I got no hardware on hand).

 

45 minutes ago, SirReal63 said:

My assumption is "Add another port, path, variable or device" but I am more of a hardware person.  Is that correct?

Yes, select "Device" from the drop down and at value enter "/dev/dri" (without double quotes).

If you are trying to transcode HDR content I think you need another device too but I'm not too sure about that because I have no AMD hardware on hand.

 

46 minutes ago, SirReal63 said:

While researching I see where others have added it in "Extra Parameters" but that seems wrong to me.

This does basically the same.

  • Like 1
Link to comment
48 minutes ago, ich777 said:

I assume you are talking about transcoding, what are you using Emby/Jellyfin/Plex?

 

Just as a heads up Plex officially doesn't support AMD transcoding but I think there is a Docker mod for the Linuxserver.io container and a custom version from the official Plex container around -> but this would be better suited in one of the support threads from the containers.

 

Only Emby and Jellyfin support that OOB, at least the official containers for sure and I also think the Linuxserver.io container.

You can at least find more information about Emby here and the Linuxserver.io Jellyfin container here (that's only what I found after a quick search and as said, I'm not an expert with AMD because I got no hardware on hand).

 

Yes, select "Device" from the drop down and at value enter "/dev/dri" (without double quotes).

If you are trying to transcode HDR content I think you need another device too but I'm not too sure about that because I have no AMD hardware on hand.

 

This does basically the same.

Using Jellyfin, I gave up on Plex, our needs are basic.  This is basically a learning experiment for me and I want to do it right.

 

I appreciate the confirmation and assistance.

  • Like 1
Link to comment
7 minutes ago, only-university6482 said:

I have a amd firepro 4100 installed
Unfortunately its not showing any metrics. the raeon top app is installed. Possibly not compatible with this model?

image.png.59ae3e880e4f78e34ec11809defb9189.png

 

What output do you get from

root@computenode:~# radeontop -d - -l 1
Dumping to -, line limit 1.
1693844440.324854: bus 0d, 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.39% 15.62mb, gtt 0.07% 11.84mb, mclk 9.60% 0.096ghz, sclk 21.55% 0.500ghz
root@computenode:~# 

Link to comment
3 hours ago, SimonF said:

What output do you get from

root@computenode:~# radeontop -d - -l 1
Dumping to -, line limit 1.
1693844440.324854: bus 0d, 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.39% 15.62mb, gtt 0.07% 11.84mb, mclk 9.60% 0.096ghz, sclk 21.55% 0.500ghz
root@computenode:~# 



Dumping to -, line limit 1.
1693858369.175237: bus 0a, 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 20.03% 405.44mb, gtt 0.76% 113.99mb, mclk 97.14% 1.166ghz, sclk 14.29% 0.200ghz

Link to comment
7 minutes ago, only-university6482 said:



Dumping to -, line limit 1.
1693858369.175237: bus 0a, 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 20.03% 405.44mb, gtt 0.76% 113.99mb, mclk 97.14% 1.166ghz, sclk 14.29% 0.200ghz

Can you confirm which version of the plugin you are using Unraid OS vers and I will use you data to see if I can find an issue.

 

Can you also provide please

 

lspci -Dmm | grep VGA

 

Maybe issue with the format of the lspci for you card.Mine for example.

 

root@computenode:~# lspci -Dmm | grep VGA
0000:00:02.0 "VGA compatible controller" "Intel Corporation" "AlderLake-S GT1" -r0c -p00 "Micro-Star International Co., Ltd. [MSI]" "AlderLake-S GT1"
0000:03:00.0 "VGA compatible controller" "Intel Corporation" "DG2 [Arc A770]" -r08 -p00 "Intel Corporation" "Device 1020"
0000:09:00.0 "VGA compatible controller" "NVIDIA Corporation" "GK106GL [Quadro K4000]" -ra1 -p00 "NVIDIA Corporation" "GK106GL [Quadro K4000]"
0000:0d:00.0 "VGA compatible controller" "Advanced Micro Devices, Inc. [AMD/ATI]" "Navi 24 [Radeon RX 6400/6500 XT/6500M]" -rc7 -p00 "XFX Limited" "Navi 24 [Radeon RX 6400 / 6500 XT]"
root@computenode:~# 

 

Link to comment
44 minutes ago, SimonF said:

Can you confirm which version of the plugin you are using Unraid OS vers and I will use you data to see if I can find an issue.

 

Can you also provide please

 

lspci -Dmm | grep VGA

 

Maybe issue with the format of the lspci for you card.Mine for example.

 

root@computenode:~# lspci -Dmm | grep VGA
0000:00:02.0 "VGA compatible controller" "Intel Corporation" "AlderLake-S GT1" -r0c -p00 "Micro-Star International Co., Ltd. [MSI]" "AlderLake-S GT1"
0000:03:00.0 "VGA compatible controller" "Intel Corporation" "DG2 [Arc A770]" -r08 -p00 "Intel Corporation" "Device 1020"
0000:09:00.0 "VGA compatible controller" "NVIDIA Corporation" "GK106GL [Quadro K4000]" -ra1 -p00 "NVIDIA Corporation" "GK106GL [Quadro K4000]"
0000:0d:00.0 "VGA compatible controller" "Advanced Micro Devices, Inc. [AMD/ATI]" "Navi 24 [Radeon RX 6400/6500 XT/6500M]" -rc7 -p00 "XFX Limited" "Navi 24 [Radeon RX 6400 / 6500 XT]"
root@computenode:~# 

 

Vs: 6.12.4

 

root@Tower500:~# lspci -Dmm | grep VGA
0000:01:00.0 "VGA compatible controller" "NVIDIA Corporation" "GM204 [GeForce GTX 970]" -ra1 -p00 "ASUSTeK Computer Inc." "GM204 [GeForce GTX 970]"
0000:04:00.0 "VGA compatible controller" "Advanced Micro Devices, Inc. [AMD/ATI]" "Cape Verde GL [FirePro W4100]" -p00 "Dell" "Cape Verde GL [FirePro W4100]"
0000:0a:00.0 "VGA compatible controller" "Advanced Micro Devices, Inc. [AMD/ATI]" "Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series]" -rc8 -p00 "Advanced Micro Devices, Inc. [AMD/ATI]" "Picasso"

 

Many thanks!

Link to comment
9 minutes ago, only-university6482 said:

Vs: 6.12.4

 

root@Tower500:~# lspci -Dmm | grep VGA
0000:01:00.0 "VGA compatible controller" "NVIDIA Corporation" "GM204 [GeForce GTX 970]" -ra1 -p00 "ASUSTeK Computer Inc." "GM204 [GeForce GTX 970]"
0000:04:00.0 "VGA compatible controller" "Advanced Micro Devices, Inc. [AMD/ATI]" "Cape Verde GL [FirePro W4100]" -p00 "Dell" "Cape Verde GL [FirePro W4100]"
0000:0a:00.0 "VGA compatible controller" "Advanced Micro Devices, Inc. [AMD/ATI]" "Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series]" -rc8 -p00 "Advanced Micro Devices, Inc. [AMD/ATI]" "Picasso"

 

Many thanks!

Ok data was from internal gpu.

 

radeontop -d - -l 1 -b 04 will show the other gpu 

Link to comment
2 hours ago, SimonF said:

Ok data was from internal gpu.

 

radeontop -d - -l 1 -b 04 will show the other gpu 

Thanks!

root@Tower500:~# radeontop -d - -l 1 -b 04
Dumping to -, line limit 1.
1693870316.741081: bus 04, 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%, uvd 0.00%, vce0 0.00%, vram 0.29% 5.92mb, gtt 0.21% 4.20mb, mclk inf% 0.150ghz, sclk 47.62% 0.300ghz

Link to comment
16 hours ago, only-university6482 said:

Thanks!

root@Tower500:~# radeontop -d - -l 1 -b 04
Dumping to -, line limit 1.
1693870316.741081: bus 04, 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%, uvd 0.00%, vce0 0.00%, vram 0.29% 5.92mb, gtt 0.21% 4.20mb, mclk inf% 0.150ghz, sclk 47.62% 0.300ghz

Can you provide output of the follow

sensors amdgpu-pci-0400

 

I have found the card provides more info that a normal one.

 

nano /usr/local/emhttp/plugins/gpustat/lib/AMD.php

 

This is a fix I have found so far and at around line 58 change

 

        'sclk'  => ['clockutil', 'clock', 'clocks'],
    ];

 

to

        'sclk'  => ['clockutil', 'clock', 'clocks'],
        'uvd'   => ['uvd'],
        'vce0'  => ['vce'],
    ];

 

Link to comment
1 hour ago, SimonF said:

Can you provide output of the follow

sensors amdgpu-pci-0400

 

I have found the card provides more info that a normal one.

 

nano /usr/local/emhttp/plugins/gpustat/lib/AMD.php

 

This is a fix I have found so far and at around line 58 change

 

        'sclk'  => ['clockutil', 'clock', 'clocks'],
    ];

 

to

        'sclk'  => ['clockutil', 'clock', 'clocks'],
        'uvd'   => ['uvd'],
        'vce0'  => ['vce'],
    ];

 

Thanks. I'll back to you soon. Card currently removed from system now as I do not believe it was being utilized, just consuming energy. My frigate hardware acceleration was using the integrated graphics on the cpu (3200g) I think. Works well and probably more efficient.
Tried the HW on the nvidia and temp rose by 23c!! Turned that off!

 

Link to comment
3 minutes ago, only-university6482 said:

Thanks. I'll back to you soon. Card currently removed from system now as I do not believe it was being utilized, just consuming energy. My frigate hardware acceleration was using the integrated graphics on the cpu (3200g) I think. Works well and probably more efficient.
Tried the HW on the nvidia and temp rose by 23c!! Turned that off!

 

No worries

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.