[PROJECT IDEA] More kmalloc sizes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux