[PATCH 0/2] Fit one IB struct amdgpu_job into a 512 byte slab
Tvrtko Ursulin
tvrtko.ursulin at igalia.com
Mon Feb 24 12:06:42 UTC 2025
A lot of the workloads create jobs with just one IB and if we re-order some
struct members we can stop that allocation spilling into the 1k SLAB bucket.
Before:
sizeof(struct amdgpu_job) + sizeof(struct amdgpu_ib) = 480 + 40 = 520
After:
sizeof(struct amdgpu_job) + sizeof(struct amdgpu_ib) = 472 + 32 = 504
It is not a huge gain in the big picture but every little helps.
Tvrtko Ursulin (2):
drm/amdgpu: Remove hole from struct amdgpu_ib
drm/amdgpu: Reduce holes in struct amdgpu_job
drivers/gpu/drm/amd/amdgpu/amdgpu_job.h | 19 ++++++++-----------
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 4 ++--
2 files changed, 10 insertions(+), 13 deletions(-)
--
2.48.0
More information about the amd-gfx
mailing list