diff options
author | Yunxiang Li <Yunxiang.Li@amd.com> | 2024-12-19 10:14:11 -0500 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2024-12-19 16:56:28 +0100 |
commit | 74ef9527bd87ead62deabe749a6d867af748d448 (patch) | |
tree | e2568cbf9df5bb6843547a211bd46548307d43b6 /drivers/soc/zte | |
parent | a541a6e865ecd8dfd8df6eeb134cc20e7139d329 (diff) |
drm/amdgpu: track bo memory stats at runtimeHEADfor-linux-nextdrm-misc-next
Before, every time fdinfo is queried we try to lock all the BOs in the
VM and calculate memory usage from scratch. This works okay if the
fdinfo is rarely read and the VMs don't have a ton of BOs. If either of
these conditions is not true, we get a massive performance hit.
In this new revision, we track the BOs as they change states. This way
when the fdinfo is queried we only need to take the status lock and copy
out the usage stats with minimal impact to the runtime performance. With
this new approach however, we would no longer be able to track active
buffers.
Signed-off-by: Yunxiang Li <Yunxiang.Li@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241219151411.1150-6-Yunxiang.Li@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/soc/zte')
0 files changed, 0 insertions, 0 deletions