* [PROJECT IDEA] More kmalloc sizes
@ 2019-10-25 14:51 Matthew Wilcox
0 siblings, 0 replies; only message in thread
From: Matthew Wilcox @ 2019-10-25 14:51 UTC (permalink / raw)
To: linux-mm
I was thinking about doing something which would require allocating 1024
bytes plus an 8 byte header. It occurred to me this is practically the
worst possible case for our current slab allocator -- it will round the
1032 byte allocation up to 2048 and we'll get two of them per page.
If we had a slab that was 1344 bytes, we could get three objects like
this per page, and they'd still be 64 byte aligned. Similarly, it might
be worth adding slabs of size 576 (512 + header, get 7 per page) and 320
(256 + header, get 12 per page). Should be a fairly simple project for
someone to undertake.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-25 14:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-25 14:51 [PROJECT IDEA] More kmalloc sizes Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox