From owner-freebsd-current@FreeBSD.ORG Wed Jul 18 00:20:30 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 9C96A16A409 for ; Wed, 18 Jul 2007 00:20:30 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.176]) by mx1.freebsd.org (Postfix) with ESMTP id 252E313C4C6 for ; Wed, 18 Jul 2007 00:20:29 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by ik-out-1112.google.com with SMTP id c21so19693ika for ; Tue, 17 Jul 2007 17:20:28 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZZ09Dl8K/ixliLRsJKz+z6QXniieBlhb1jiIk+CnApl175YmiE6TEqY8S+N4KzjNmoDaO2DJ42FLnAafZ0HPHaA9G0Lqx+1nieddcqyOBVJrsP3NvH0qRPcbSRD/smgply818Bolp4JlcHjXoCyxoCp+k+UTYuOnMenjQeumn9U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LGIEbck3eWBCw61Y8KW0j3hVvOmVnsO6GWJGOhTUQinD8chCnSu0T5vpqkLFjtuT8av+5tPOXo1xhFEKFvr0Cgp9MVunXOneyqd7+XcZDnE7DjsnmUGRX6iI3B4Zh79gzMTVCJYbgPGwwnCPKLFW6LUilXrdiQs3Mnq0tqSk030= Received: by 10.78.149.15 with SMTP id w15mr284803hud.1184718028657; Tue, 17 Jul 2007 17:20:28 -0700 (PDT) Received: by 10.78.162.18 with HTTP; Tue, 17 Jul 2007 17:20:27 -0700 (PDT) Message-ID: Date: Tue, 17 Jul 2007 17:20:28 -0700 From: "Kip Macy" To: "David Christensen" In-Reply-To: <09BFF2FA5EAB4A45B6655E151BBDD9030483F161@NT-IRVA-0750.brcm.ad.broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <09BFF2FA5EAB4A45B6655E151BBDD9030483F161@NT-IRVA-0750.brcm.ad.broadcom.com> 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 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:20:30 -0000 On 7/17/07, David Christensen wrote: > 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. busdma coalesces the addresses into one segment if they're physically adjacent. Take a look at busdma_machdep.c. -Kip