Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Dec 2010 11:04:29 -0600
From:      Alan Cox <alc@rice.edu>
To:        "Jayachandran C." <c.jayachandran@gmail.com>
Cc:        Alan Cox <alc@cs.rice.edu>, freebsd-mips@freebsd.org
Subject:   Re: uma_small_alloc from direct mapped memory.
Message-ID:  <4CFD179D.7000005@rice.edu>
In-Reply-To: <AANLkTi=Rn_L%2BLtGyAay7HJQco6ne-WgRxri-BH=A9q1m@mail.gmail.com>
References:  <AANLkTi=Rn_L%2BLtGyAay7HJQco6ne-WgRxri-BH=A9q1m@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jayachandran C. wrote:
> Hi all,
>
> The attached patch uses the mechanism used to allocate page table
> pages for UMA small allocations too.  This will make sure that all the
> small UMA allocations comes from KSEG0 pages in 32 bit and XKPHYS in
> 64bit.
>
> This reduces TLB misses in kernel code significantly, and can give
> major performance advantage for applications that spent a lot of time
> in kernel.
>
> Please let me know your comments.
>
>   

It looks ok.  My only suggested change is that you follow the precedent 
of amd64, ia64, and powerpc, and place uma_small_alloc() and 
uma_small_free() in a new file, mips/mips/uma_machdep.c.

Alan





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CFD179D.7000005>