tech-userlevel archive

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

Re: malloc, thread and alignment



On Fri, Mar 27, 2015 at 04:38:56PM +0000, Taylor R Campbell wrote:
> Someone^TM should document the kernel CACHE_LINE_SIZE, coherency_unit,
> COHERENCY_UNIT, and figure out what it is worthwhile to expose MI to
> userland.  

Shouldn't malloc take care of that stuff, and enforce a minimal allocation
size based on hardware requirement? e.g.: you request one byte, malloc
allocates a chunk of 32 bytes. 

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index