[PATCH 0/2] Fit one IB struct amdgpu_job into a 512 byte slab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux