Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2008 13:48:20 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-hackers@freebsd.org
Cc:        Roman Divacky <rdivacky@freebsd.org>
Subject:   Re: kmem_alloc_wait and memory pools questions
Message-ID:  <200806271348.20172.max@love2party.net>
In-Reply-To: <20080627084328.GA39337@freebsd.org>
References:  <20080627084328.GA39337@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News



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