git: kmalloc: Use 'fls' to round up the size to the nearest power of 2
dillon at apollo.backplane.com
Tue Oct 9 15:20:48 PDT 2012
:> * Alloc Size Chunking Number of zones
:> * 0-127 8 16
:> * 128-255 16 8
:> * 256-511 32 8
:> * 512-1023 64 8
:Ah, ok, I see. However, I think the cache line size is 64bytes on
:x86, so as far as I understand from the above table, allocation >=512
:will be at least 64bytes aligned?
Yes, that is correct.
More information about the Commits