On Tue, Nov 20, 2018 at 10:50:13AM -0500, Greg Troxel wrote:
>
> Michael van Elst <[email protected]> writes:
> > There is a global lock for the page freelist.
>
> I wonder if using a pool-type structure would be feasible. That might
> fix almost all of the slowness.
You need a per-cpu freelist and some mechanism to steal from other
freelists. Ideally that also includes something to optimize for NUMA.
Greetings,
--
Michael van Elst
Internet: [email protected]
"A potential Snark may lurk in every tree."