]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/slub: Avoid waiting on empty per-cpu sheaf replacement slub-percpu-sheaves-v2
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 17 Jan 2025 20:11:31 +0000 (15:11 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 17 Jan 2025 20:15:33 +0000 (15:15 -0500)
commit659871c18aaf52233dc68eebd088fb6dd3ad9d91
tree00a7a86101292c029f0f9685b005a2c8c9f619ca
parentfd1781d291800a0af29dbf21bb0ff84a53ef1184
mm/slub: Avoid waiting on empty per-cpu sheaf replacement

When the per-cpu sheaf is empty, attempt to replace it with a full one
from the barn.  If the barn lock is contended then fail quickly and
enter the recovery code that will refill the empty sheaf.

This is to avoid congestion on the barn in the event of many tasks
requesting allocations at the same time.  Discovered by brk1_processes()
regression from will-it-scale benchmarks.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/slub.c