On Thu, Nov 21, 2002 at 03:59:49PM +0800, #KUGAN VIVEKANANDARAJAH# wrote: > The kernel slab cache allocator is doing something called colouring. > [...] > > > Thanks for the information, basically i am interested in knowing > > how linux kernel manages data allocation so that conflict misses > > in the data cache is minimized, the one you pointed out might > > also do the same, i am looking in there now. Most data in kernel, and especially the hot data, is allocated from specific slab caches. The often used structures are usualy aligned so that the most important part fits in a cacheline and the slab cache colouring is set to take that into account (well, I hope so). ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/