DragonFly BSD
DragonFly commits List (threaded) for 2012-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: git: kmalloc: Use 'fls' to round up the size to the nearest power of 2


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 9 Oct 2012 15:20:48 -0700 (PDT)

:>  *      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?
:
:Best Regards,
:sephe

    Yes, that is correct.

						-Matt



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