From owner-freebsd-current@FreeBSD.ORG Wed Jul 18 00:45:32 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C78E316A403 for ; Wed, 18 Jul 2007 00:45:32 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id A12C913C48D for ; Wed, 18 Jul 2007 00:45:32 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (830ozgmv7nop099v@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l6I0jVaM090532; Tue, 17 Jul 2007 17:45:31 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l6I0jVW9090531; Tue, 17 Jul 2007 17:45:31 -0700 (PDT) (envelope-from jmg) Date: Tue, 17 Jul 2007 17:45:30 -0700 From: John-Mark Gurney To: David Christensen Message-ID: <20070718004530.GV1221@funkthat.com> Mail-Followup-To: David Christensen , current@freebsd.org References: <09BFF2FA5EAB4A45B6655E151BBDD9030483F161@NT-IRVA-0750.brcm.ad.broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <09BFF2FA5EAB4A45B6655E151BBDD9030483F161@NT-IRVA-0750.brcm.ad.broadcom.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: current@freebsd.org Subject: Re: Getting/Forcing Greater than 4KB Buffer Allocations X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 00:45:32 -0000 David Christensen wrote this message on Tue, Jul 17, 2007 at 16:54 -0700: > I'm investigating a problem with my bce driver which occurs when I ask > for a jumbo > mbuf cluster (through m_cljget()). When I map the memory for DMA I > normally > get 3 memory segments (4KB + 4KB + 1KB) on my system, but on another > user's > system he's seeing 2 memory segments (8KB + 1KB). Is there a > configuration > option that allows this or some other tuning variable involved? The > system is a > Xeon dual-core processor and has 8GB of RAM, running an AMD64 version of > the kernel. Is this an issue? If it is, you need to fix your bus_dma_tag_create calls to set the segment size and count properly. bus_dma will get you exactly what you ask for, and your driver needs to tell bus_dma what it can and cannot handle. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."