From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 15 09:37:25 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8CEF516A412; Fri, 15 Dec 2006 09:37:25 +0000 (UTC) (envelope-from marc.loerner@hob.de) Received: from mailgate.hob.de (mailgate.hob.de [212.185.199.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9479843CA4; Fri, 15 Dec 2006 09:35:44 +0000 (GMT) (envelope-from marc.loerner@hob.de) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.hob.de (Postfix) with ESMTP id 0240C27780; Fri, 15 Dec 2006 10:37:24 +0100 (CET) Received: from mailgate.hob.de ([127.0.0.1]) by localhost (mailgate.hob.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03826-03; Fri, 15 Dec 2006 10:37:23 +0100 (CET) Received: from imap.hob.de (mail2.hob.de [172.25.1.102]) by mailgate.hob.de (Postfix) with ESMTP id C4FA327777; Fri, 15 Dec 2006 10:37:23 +0100 (CET) Received: from linux03.hob.de (linux03.hob.de [172.22.0.190]) by imap.hob.de (Postfix on SuSE eMail Server 2.0) with ESMTP id 13429323F; Fri, 15 Dec 2006 10:37:23 +0100 (CET) From: Marc =?iso-8859-1?q?L=F6rner?= Organization: hob To: freebsd-hackers@freebsd.org Date: Fri, 15 Dec 2006 10:37:22 +0100 User-Agent: KMail/1.6.2 References: <200612150937.37737.marc.loerner@hob.de> <458261DE.2040607@FreeBSD.org> <200612151019.22622.hselasky@c2i.net> In-Reply-To: <200612151019.22622.hselasky@c2i.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200612151037.22931.marc.loerner@hob.de> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at hob.de Cc: Suleiman Souhlal , Hans Petter Selasky Subject: Re: Allocate aligned memory 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, 15 Dec 2006 09:37:25 -0000 On Friday 15 December 2006 10:19, Hans Petter Selasky wrote: ... > > My suggestion is to make the your high limit (currently 1 << 22) MUCH > > higher, if possible. Also, getting rid of the 1MB boundary might help. > > PS: contigmalloc is on the way out. Please use "man bus_dma" instead. For > an example see: > > http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/usb_subr >.c > > And the function "usbd_mem_alloc_sub()". Thanks for the help, I finally got contigmalloc working! Next step is converting to bus_dmamem_alloc, but AFAICS this function still uses contigmalloc. So what are the main improvements on using these new functions? Kind regards, Marc