[SWDEV-357472] Add evicted_ms metric (#620)

- **Added evicted_time metric for kfd processes**.  
  - Time that queues are evicted on a GPU in milliseconds
  - Added to CLI in `amd-smi monitor -q` and `amd-smi process`
  - Added to C API and Python API:
    - amdsmi_get_gpu_process_list()
    - amdsmi_get_gpu_compute_process_info()
    - amdsmi_get_gpu_compute_process_info_by_pid()

---------

Signed-off-by: Pryor, Adam <Adam.Pryor@amd.com>
This commit is contained in:
Pryor, Adam
2025-10-28 14:49:03 -05:00
committed by GitHub
parent 6f222c11a6
commit 2144cfbba4
11 changed files with 95 additions and 31 deletions
+3
View File
@@ -1186,6 +1186,7 @@ Field | Description
`engine_usage` | <table><thead><tr> <th> Subfield </th> <th> Description</th> </tr></thead><tbody><tr><td>`gfx`</td><td>GFX engine usage in ns</td></tr><tr><td>`enc`</td><td>Encode engine usage in ns</td></tr></tbody></table>
`memory_usage` | <table><thead><tr> <th> Subfield </th> <th> Description</th> </tr></thead><tbody><tr><td>`gtt_mem`</td><td>GTT memory usage in Bytes</td></tr><tr><td>`cpu_mem`</td><td>CPU memory usage in Bytes</td></tr><tr><td>`vram_mem`</td><td>Process VRAM memory usage in Bytes</td></tr> </tbody></table>
`cu_occupancy` | Number of Compute Units utilized
`evicted_time` | Time that queues are evicted on a GPU in milliseconds
Exceptions that can be thrown by `amdsmi_get_gpu_process_list` function:
@@ -3534,6 +3535,7 @@ Field | Description
`vram_usage` | VRAM usage
`sdma_usage` | SDMA usage in microseconds
`cu_occupancy` | Compute Unit usage in percents
`evicted_time` | Time that queues are evicted on a GPU in milliseconds
Exceptions that can be thrown by `amdsmi_get_gpu_compute_process_info` function:
@@ -3568,6 +3570,7 @@ Field | Description
`vram_usage` | VRAM usage
`sdma_usage` | SDMA usage in microseconds
`cu_occupancy` | Compute Unit usage in percents
`evicted_time` | Time that queues are evicted on a GPU in milliseconds
Exceptions that can be thrown by `amdsmi_get_gpu_compute_process_info_by_pid` function: