kmem_alloc_wait and memory pools questions

Max Laier max at
Fri Jun 27 11:50:15 UTC 2008

On Friday 27 June 2008 10:43:29 Roman Divacky wrote:
> hi
> I have two questions:
> 1) is kmem_alloc_wait() expensive operation? I believe it's not
> very cheap looking at the code but I want confirmation
> 2) is there a support for memory pools in FreeBSD?
> to give you a little background why I am asking this. In NetBSD Andrew
> Doran claims that replacing allocation from a memory submap with an
> allocation from a memory pool for exec*() args he can speedup exec*()
> by ~25%

I think what is called a "memory pool" in NetBSD refers to their pool(9) 
API.  This is more or less the same as our uma(9).  Whether or not this 
is what you are looking for - I don't know.

> I wonder if this applies to FreeBSD too so I am investigating it a
> little.

/"\  Best regards,                      | mlaier at
\ /  Max Laier                          | ICQ #67774661
 X  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

More information about the freebsd-hackers mailing list