Skip to content

How can I get GPU usage when using amdgpu_top -d? #59

Answered by Umio-Yasuno
Samueru-sama asked this question in Q&A
Discussion options

You must be logged in to vote
$ amdgpu_top -J -n 1 | jq -c -r '(.devices[] | (.Info.DeviceName + ": " + (.gpu_activity.GFX.value|tostring) + "%" + ", " + (.VRAM."Total VRAM Usage".value|tostring) + "/" + (.VRAM."Total VRAM".value|tostring) + "MiB"))'

Output:

AMD Radeon RX 6600: 11%, 770/8176MiB
AMD Radeon Graphics: 0%, 29/512MiB

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@Samueru-sama
Comment options

@Umio-Yasuno
Comment options

@Samueru-sama
Comment options

@Samueru-sama
Comment options

Answer selected by Samueru-sama
Comment options

You must be logged in to vote
2 replies
@Samueru-sama
Comment options

@Samueru-sama
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants