diff options
author | Thomas Gleixner <[email protected]> | 2024-10-07 18:50:20 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2024-10-15 17:30:33 +0200 |
commit | 13f9ca723900ae3ae8e0a1e76ba86e7786e60645 (patch) | |
tree | a0fbb89d81fe72f4a02fd1cbc8de3ac8cebd4307 /drivers/gpu/drm/amd/amdgpu/atom.c | |
parent | a201a96b9682e5b42ed93108c4aeb6135c909661 (diff) |
debugobjects: Refill per CPU pool more agressively
Right now the per CPU pools are only refilled when they become
empty. That's suboptimal especially when there are still non-freed objects
in the to free list.
Check whether an allocation from the per CPU pool emptied a batch and try
to allocate from the free pool if that still has objects available.
kmem_cache_alloc() kmem_cache_free()
Baseline: 295k 245k
Refill: 225k 173k
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Zhen Lei <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions