cvs commit: src/sys/kern init_main.c kern_thread.c

Attilio Rao attilio at freebsd.org
Tue Mar 27 18:20:18 UTC 2007


2007/3/27, John Baldwin <jhb at freebsd.org>:
> jhb         2007-03-27 16:51:34 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    sys/kern             init_main.c kern_thread.c
>  Log:
>  Align 'struct thread' on 16 byte boundaries so that the lower 4 bits are
>  always 0.  Previously we aligned threads on a minimum of 8-byte boundaries.
>
>  Note: This changes the uma zone to no longer cache align threads.  We
>  really want the uma zone to do align threads to MAX(16, cache line size)
>  but there currently isn't a good way to express that to uma.

We can workaround it using a function like:
int uma_get_align(void)
(which would be the counter part of uma_set_align).
Its implementations is trivial.

Attilio

-- 
Peace can only be achieved by understanding - A. Einstein


More information about the cvs-src mailing list