Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit c439d5e8 authored by Mateusz Guzik's avatar Mateusz Guzik Committed by Dennis Zhou
Browse files

pcpcntr: add group allocation/free


Allocations and frees are globally serialized on the pcpu lock (and the
CPU hotplug lock if enabled, which is the case on Debian).

At least one frequent consumer allocates 4 back-to-back counters (and
frees them in the same manner), exacerbating the problem.

While this does not fully remedy scalability issues, it is a step
towards that goal and provides immediate relief.

Signed-off-by: default avatarMateusz Guzik <mjguzik@gmail.com>
Reviewed-by: default avatarDennis Zhou <dennis@kernel.org>
Reviewed-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
Link: https://lore.kernel.org/r/20230823050609.2228718-2-mjguzik@gmail.com


[Dennis: reflowed a few lines]
Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
parent f7d77dfc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment