Michael van Elst <mlel...@serpens.de> writes: > On Tue, Nov 20, 2018 at 10:50:13AM -0500, Greg Troxel wrote: >> >> Michael van Elst <mlel...@serpens.de> 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.
I thought we were using a pool allocator that had per-cpu freelists, derived from Solaris and https://www.usenix.org/legacy/event/usenix01/bonwick.html but maybe I am off on that.