On Mon, Sep 27, 2021 at 11:53 AM Vlastimil Babka <vbabka@xxxxxxx> wrote: > > I was thinking of debug_pagealloc (unmaps free pages from direct map) but yeah, > the list is longer. In fact, the _original_ free page list was in the page itself, not in 'struct page'. The original reason to move it into 'struct page' ended up being performance, iirc. Because of how now the free page list was always in the same cache line set, the page allocator caused horrendous cache patterns on direct-mapped caches. Direct-mapped caches may thankfully be gone, and we have a lot of other things that end up having that property of "same offset within a page" just because of allocation patterns (task struct allocations being but one example), but it might still be something to try to avoid. Linus