AMDGPU_TOP(1)

๐Ÿ“ฆ version 0.9.2, in opensuse-leap 16.0

โœจ NAME โœจ

Bestie, welcome to AMDGPU_TOP(1) โ€” the manual for amdgpu_top, aka the tool that displays AMDGPU usage. Itโ€™s giving observability, but make it cute. ๐Ÿ’…

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

amdgpu_top [OPTIONS]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

amdgpu_top is the tool that displays AMD GPU utilization, like umr [1] or clbr/radeontop [2] or intel_gpu_top [3]. No cap, itโ€™s that kind of tool.

It displays information gathered from performance counters (GRBM, GRBM2), sensors, fdinfo, and the AMDGPU driver. Literally all the little data crumbs, gathered up and served to you. ๐Ÿ‘‘

๐ŸŒธ EXAMPLES ๐ŸŒธ

Display a list of AMDGPU devices:

$ amdgpu_top --list

Dump All GPU processes and memory usage per process:

$ amdgpu_top -p

Specifies PCI bus:

$ amdgpu_top --pci "0000:01:00.0"

โœจ OPTIONS โœจ

Okay bestie, option-by-option, no skips, no crumbs. ๐Ÿ’–

  • -i <usize> โ€” Select GPU instance.
  • --pci <String> โ€” Specifying PCI path. (domain:bus:dev.func)
  • -s <u64>, -s <u64>ms โ€” Refresh period (interval) in milliseconds for JSON mode. (default: 1000ms)
  • -n <u32> โ€” Specifies the maximum number of iteration for JSON mode. If 0 is specified, it will be an infinite loop. (default: 0)
  • -u <u64>, --update-process-index <u64> โ€” Update interval in seconds of the process index for fdinfo. (default: 5s)
  • --json_fifo <String>, --json-fifo <String> โ€” Output JSON formatted data to FIFO (named pipe) for other application and scripts.
  • โ€“decode-gm <Path>, โ€“decode-gpu-metrics <Path> โ€” Decode the specified gpu_metrics file.
  • --apu, --select-apu โ€” Select APU instance.
  • --single, --single-gpu โ€” Display only the selected GPU/APU.
  • --no-pc โ€” The application does not read the performance counter (GRBM, GRBM2) if this flag is set. Reading the performance counter may deactivate the power saving feature of APU/GPU.
  • -gm, --gpu_metrics, --gpu-metrics โ€” Dump gpu_metrics for all AMD GPUs. https://www.kernel.org/doc/html/latest/gpu/amdgpu/thermal.html#gpu-metrics
  • --pp_table, --pp-table โ€” Dump pp_table from sysfs and VBIOS for all AMD GPUs. (only support Navi1x and Navi2x, Navi3x)
  • --drm_info, --drm-info โ€” Dump DRM info. Inspired by https://gitlab.freedesktop.org/emersion/drm_info
  • --dark, --dark-mode โ€” Set to the dark mode. (TUI/GUI)
  • --light, --light-mode โ€” Set to the light mode. (TUI/GUI)
  • -d, --dump โ€” Dump AMDGPU info. (Specifications, VRAM, PCI, ResizableBAR, VBIOS, Video caps) This option can be combined with the -J option.
  • --list โ€” Display a list of AMDGPU devices.
  • -p, --process โ€” Dump All GPU processes and memory usage per process.
  • -J, --json โ€” Output JSON formatted data. This option can be combined with the -d option.
  • --gui โ€” Launch GUI mode.
  • --smi โ€” Launch Simple TUI mode. (like nvidia-smi, rocm-smi)
  • -V, --version โ€” Print version information.
  • -h, --help โ€” Print help information.
โš ๏ธ Tiny but important vibe check: --no-pc means the app does not read the performance counter (GRBM, GRBM2) if this flag is set. Reading the performance counter may deactivate the power saving feature of APU/GPU. Periodt.

๐ŸŽฎ COMMANDS FOR TUI MODE ๐ŸŽฎ

โŒจ๏ธ key

  • f โ€” toggle fdinfo
  • n โ€” toggle Sensors
  • m โ€” toggle GPU Metrics
  • h โ€” change update interval (high = 100ms, low = 1000ms)
  • q โ€” Quit
  • P โ€” sort fdinfo by pid
  • M โ€” sort fdinfo by VRAM usage
  • G โ€” sort fdinfo by GFX usage
  • M โ€” sort fdinfo by MediaEngine usage
  • R โ€” reverse sort for fdinfo

Yes, M shows up twice in the source. Two Ms, both iconic. ๐Ÿ’€

๐Ÿ› BUGS ๐Ÿ›

Found a gremlin? Report it here: <https://github.com/Umio-Yasuno/amdgpu_top/issues> ๐Ÿซถ

๐Ÿ“ NOTES ๐Ÿ“

  1. [1] โ€” <https://gitlab.freedesktop.org/tomstdenis/umr/>
  2. [2] โ€” <https://github.com/clbr/radeontop>
  3. [3] โ€” <https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/blob/master/man/intel_gpu_top.rst>

๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

Umio Yasuno <coelacanth_dream@protonmail.com>. ๐Ÿ’Œ


Kisses, bestie โ€” this page is stamped AMDGPU_TOP(1) and dated 2023-12-01. ๐Ÿซถ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from