Does a GPU usage graph for AMD exist? [SO SOLVED :D]
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Does a GPU usage graph for AMD exist? [SO SOLVED :D]
Hello everyone
I wanted to add a GPU graph to my minimalis. I did searching on the web, and the limited hits were all discussing a graph display for an Nvidia driver. I am using amdgpu driver on an AMD Radeon 7750.
Does anyone know enough about these cards, and conky, to produce a working graph conkyrc for me?
Thank you for reading,
Logan
I wanted to add a GPU graph to my minimalis. I did searching on the web, and the limited hits were all discussing a graph display for an Nvidia driver. I am using amdgpu driver on an AMD Radeon 7750.
Does anyone know enough about these cards, and conky, to produce a working graph conkyrc for me?
Thank you for reading,
Logan
Last edited by Logansfury on Fri Mar 22, 2024 10:37 am, edited 1 time in total.
- AZgl1800
- Level 20
- Posts: 11184
- Joined: Thu Dec 31, 2015 3:20 am
- Location: Oklahoma where the wind comes Sweeping down the Plains
- Contact:
Re: Does a GPU usage graph for AMD exist?
I think this will work for you
one of the options is "usage"
:
one of the options is "usage"
:
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
Hello AZ,
I do have Psensors, but it seems to have no output data option. Also I am looking for a conkyrc or conky.conf with the graph script so it can be inserted into my existing minimalis.
Thank you for taking the time to make the suggestion
Re: Does a GPU usage graph for AMD exist?
If you have the gpuload in percentage, you can make it yourself with
${execbar ...}
.- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
Far Out! I hadn't yet heard of that command.
I have a display crisis at the moment, a diagnostic app just broke and froze my resolution. Im waiting for help in another thread now.
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
My display emergency has resolved itself with help from the forum. I would love to explore this now. Does gpuload have another name? I have 13 separate pieces of GPU data from radeontop but nothing says gpuloadLogansfury wrote: ⤴Mon Mar 18, 2024 7:56 pmFar Out! I hadn't yet heard of that command.
I have a display crisis at the moment, a diagnostic app just broke and froze my resolution. Im waiting for help in another thread now.
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
I have the following catagories dynamically tracking gpu data:Logansfury wrote: ⤴Mon Mar 18, 2024 11:39 pm Does gpuload have another name? I have 13 separate pieces of GPU data from radeontop but nothing says gpuload
Graphics Pipe
Vertex Grouper + Tesselator
Texter Addresser
Shader Export
Shader Interpalator
Scan converter
Primitive Assembly
Depth Block
Color Block
Virtual RAM
GTT
Memory Clock
Shader Clock
Are any of these related to gpuload?
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
logansfury@OptiPlex-5040:~$ ls -1 /sys/class/drm/card1/device
ls: cannot access '/sys/class/drm/card1/device': No such file or directory
logansfury@OptiPlex-5040:~$
Re: Does a GPU usage graph for AMD exist?
Check the /sys/class/drm folder first to see if you have a second device card. My system only has 1 card device and with numbering starting at zero, mine is card0 versus card1.Logansfury wrote: ⤴Tue Mar 19, 2024 3:29 pmlogansfury@OptiPlex-5040:~$ ls -1 /sys/class/drm/card1/device
ls: cannot access '/sys/class/drm/card1/device': No such file or directory
logansfury@OptiPlex-5040:~$
ls -1 /sys/class/drm To see if you have a card0 folder. The rest of the path that Koentje gave are the same.
Example from my machine just now:
~$ ls -1 /sys/class/drm
card0
card0-DP-1
card0-DP-2
card0-eDP-1
card0-HDMI-A-1
card0-HDMI-A-2
Then I ran the original but changed card1 to card0
~$ ls -1 /sys/class/drm/card0/device
ari_enabled
boot_vga
broken_parity_status
class
config
consistent_dma_mask_bits
consumer:pci:0000:00:1f.3
...followed by a load of other information.
KMD2023
NW USA
Linux Hobbyist - Made the full switch Mar 2023
- "Backups are your friend, and Timeshift is a friend with benefits!"
NW USA
Linux Hobbyist - Made the full switch Mar 2023
- "Backups are your friend, and Timeshift is a friend with benefits!"
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
logansfury@OptiPlex-5040:~$ ls -1 /sys/class/drm/card0/device
aer_dev_correctable
aer_dev_fatal
aer_dev_nonfatal
apu_thermal_cap
ari_enabled
boot_vga
broken_parity_status
class
config
consistent_dma_mask_bits
consumer:pci:0000:01:00.1
current_link_speed
current_link_width
d3cold_allowed
device
dma_mask_bits
driver
driver_override
drm
enable
firmware_node
fw_version
gpu_busy_percent
graphics
hwmon
i2c-1
i2c-2
i2c-3
i2c-4
i2c-5
i2c-6
i2c-7
i2c-8
irq
link
local_cpulist
local_cpus
max_link_speed
max_link_width
mem_busy_percent
mem_info_gtt_total
mem_info_gtt_used
mem_info_preempt_used
mem_info_vis_vram_total
mem_info_vis_vram_used
mem_info_vram_total
mem_info_vram_used
mem_info_vram_vendor
modalias
msi_bus
msi_irqs
numa_node
pcie_bw
pcie_replay_count
power
power_dpm_force_performance_level
power_dpm_state
power_state
pp_cur_state
pp_dpm_mclk
pp_dpm_pcie
pp_dpm_sclk
pp_force_state
pp_mclk_od
pp_num_states
pp_sclk_od
pp_table
product_name
product_number
remove
rescan
reset
reset_method
resource
resource0
resource0_wc
resource2
resource4
revision
rom
serial_number
subsystem
subsystem_device
subsystem_vendor
thermal_throttling_logging
uevent
vbios_version
vendor
logansfury@OptiPlex-5040:~$
aer_dev_correctable
aer_dev_fatal
aer_dev_nonfatal
apu_thermal_cap
ari_enabled
boot_vga
broken_parity_status
class
config
consistent_dma_mask_bits
consumer:pci:0000:01:00.1
current_link_speed
current_link_width
d3cold_allowed
device
dma_mask_bits
driver
driver_override
drm
enable
firmware_node
fw_version
gpu_busy_percent
graphics
hwmon
i2c-1
i2c-2
i2c-3
i2c-4
i2c-5
i2c-6
i2c-7
i2c-8
irq
link
local_cpulist
local_cpus
max_link_speed
max_link_width
mem_busy_percent
mem_info_gtt_total
mem_info_gtt_used
mem_info_preempt_used
mem_info_vis_vram_total
mem_info_vis_vram_used
mem_info_vram_total
mem_info_vram_used
mem_info_vram_vendor
modalias
msi_bus
msi_irqs
numa_node
pcie_bw
pcie_replay_count
power
power_dpm_force_performance_level
power_dpm_state
power_state
pp_cur_state
pp_dpm_mclk
pp_dpm_pcie
pp_dpm_sclk
pp_force_state
pp_mclk_od
pp_num_states
pp_sclk_od
pp_table
product_name
product_number
remove
rescan
reset
reset_method
resource
resource0
resource0_wc
resource2
resource4
revision
rom
serial_number
subsystem
subsystem_device
subsystem_vendor
thermal_throttling_logging
uevent
vbios_version
vendor
logansfury@OptiPlex-5040:~$
Re: Does a GPU usage graph for AMD exist?
Tada.. gpu_busy_percent is the file that holds the gpuload.
So in conky use
To set the height and width of the graph paste this into the settings section of conky
cat /sys/class/drm/card0/device/gpu_busy_percent
should give it to you!So in conky use
Code: Select all
${execgraph "cat /sys/class/drm/card0/device/gpu_busy_percent" 005500 009900 scale -t}
Code: Select all
default_graph_height = 12,
default_graph_width = 129,
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
Oh man FAR OUT!!!Koentje wrote: ⤴Tue Mar 19, 2024 5:16 pm Tada.. gpu_busy_percent is the file that holds the gpuload.
cat /sys/class/drm/card0/device/gpu_busy_percent
should give it to you!
So in conky useTo set the height and width of the graph paste this into the settings section of conkyCode: Select all
${execgraph "cat /sys/class/drm/card0/device/gpu_busy_percent" 005500 009900 scale -t}
Code: Select all
default_graph_height = 12, default_graph_width = 129,
this is exciting. I just have to fight thru my every 10 second blackscreen failure to set up the files
My usual graph code looks like this:
Code: Select all
${cpugraph cpu1 40,350 ffff00 ff0000}
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
I just put the scripts into a live conky, and while I have the graph outline, there are no bars inside the graph indicating gpu activity
Re: Does a GPU usage graph for AMD exist?
Just a quick test, does this show anything greater then 0?
while :; do cat /sys/class/drm/card0/device/gpu_busy_percent; sleep 1; done
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
Code: Select all
logansfury@OptiPlex-5040:~$ while :; do cat /sys/class/drm/card0/device/gpu_busy_percent; sleep 1; done
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
Re: Does a GPU usage graph for AMD exist?
Try this in your conky
It does work in my conky!
Code: Select all
${execgraph "echo $(cat /sys/class/drm/card1/device/gpu_busy_percent)" 005500 009900 scale -t}
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
I just tried:Koentje wrote: ⤴Tue Mar 19, 2024 9:06 pm Try this in your conky
It does work in my conky!Code: Select all
${execgraph "echo $(cat /sys/class/drm/card1/device/gpu_busy_percent)" 005500 009900 scale -t}
Schermafdruk van 2024-03-20 02-08-06.jpg
Code: Select all
${execgraph "echo $(cat /sys/class/drm/card0/device/gpu_busy_percent)" 005500 009900 scale -t}
Code: Select all
${execgraph "echo $(cat /sys/class/drm/card1/device/gpu_busy_percent)" 005500 009900 scale -t}
Re: Does a GPU usage graph for AMD exist?
Does this work on the terminal?
Code: Select all
while :; do echo "$(cat /sys/class/drm/card0/device/gpu_busy_percent)"; sleep 1; done
- Logansfury
- Level 6
- Posts: 1237
- Joined: Fri Oct 27, 2023 4:08 pm
- Location: Las Vegas NV, USA
Re: Does a GPU usage graph for AMD exist?
It does notKoentje wrote: ⤴Tue Mar 19, 2024 9:36 pm Does this work on the terminal?
Code: Select all
while :; do echo "$(cat /sys/class/drm/card0/device/gpu_busy_percent)"; sleep 1; done
Code: Select all
logansfury@OptiPlex-5040:~$ while :; do echo "$(cat /sys/class/drm/card0/device/gpu_busy_percent)"; sleep 1; done
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
^C
logansfury@OptiPlex-5040:~