From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 27 11:50:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95AF51065670 for ; Fri, 27 Jun 2008 11:50:15 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by mx1.freebsd.org (Postfix) with ESMTP id CD72D8FC1B for ; Fri, 27 Jun 2008 11:50:14 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-064-185-170.pools.arcor-ip.net [88.64.185.170]) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis) id 0MKwtQ-1KCCSz0jdb-0006BA; Fri, 27 Jun 2008 13:50:13 +0200 Received: (qmail 43311 invoked from network); 27 Jun 2008 11:47:53 -0000 Received: from myhost.laiers.local (192.168.4.151) by router.laiers.local with SMTP; 27 Jun 2008 11:47:53 -0000 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Fri, 27 Jun 2008 13:48:20 +0200 User-Agent: KMail/1.9.9 References: <20080627084328.GA39337@freebsd.org> In-Reply-To: <20080627084328.GA39337@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806271348.20172.max@love2party.net> X-Provags-ID: V01U2FsdGVkX184ZD+v20kbJBy2lJaxZtodcH5v+5T+DmqWv1p RlYMk3WsAFESYkW9uxRNswNrRMJJCqSf2vNbVVsU06zRjuzDAI peerua/v57RXszS+WLAOQ== Cc: Roman Divacky Subject: Re: kmem_alloc_wait and memory pools questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2008 11:50:15 -0000 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