From owner-freebsd-net@FreeBSD.ORG Tue Apr 16 09:51:43 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 91EE5C19; Tue, 16 Apr 2013 09:51:43 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) by mx1.freebsd.org (Postfix) with ESMTP id 68B02F10; Tue, 16 Apr 2013 09:51:43 +0000 (UTC) Received: by mail-pb0-f42.google.com with SMTP id up7so206756pbc.1 for ; Tue, 16 Apr 2013 02:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:date:to:cc:subject:message-id:reply-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=TfwhRHq9TNVMRbrz72Daho/xY3NlITwen6OIGmRVXa4=; b=chcHLfa0mdjGQ8kDwM88bhHbzJrzAOg9cM/09L4PU6tE2YOZQu3DlTT+PC4eLsSaZs YdVOxeTS92CoPq7iBJ57W6juORm/xMtxhZoZ9VQgy9gMcQCKF31b39OXkSCObESk9MoL oUpr29k8XLUJxABAF157ZO4r4e0y8JF7UiEdbUPtG1zVAILES8dVO46n7Z/ArfrbDeMf QsRylfEQ4D4xa6w8J7MBvMPq627lhyvvCleBGGs7yYeAs/y4U8533N1J4mNlRYGnpCAq Y+YNaGs6dzEnrqsobMIAynGlxxa8EbzhDcEcS0TqiIMkSxkjnFUKX6/ho7zLRGxHervX UBTQ== X-Received: by 10.68.252.227 with SMTP id zv3mr2286280pbc.14.1366105896923; Tue, 16 Apr 2013 02:51:36 -0700 (PDT) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPS id ts3sm1475341pbc.12.2013.04.16.02.51.33 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Apr 2013 02:51:35 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 16 Apr 2013 18:51:27 +0900 From: YongHyeon PYUN Date: Tue, 16 Apr 2013 18:51:27 +0900 To: Bruce Evans Subject: Re: bge(4) sysctl tuneables -- a blast from the past. Message-ID: <20130416095127.GB1428@michelle.cdnetworks.com> References: <1365781568.1418.1.camel@localhost> <20130413200512.G1165@besplex.bde.org> <1366065356.1350.7.camel@localhost> <20130416052500.GA1428@michelle.cdnetworks.com> <20130416162150.X1106@besplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130416162150.X1106@besplex.bde.org> User-Agent: Mutt/1.4.2.3i Cc: Sean Bruno , bde , "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Apr 2013 09:51:43 -0000 On Tue, Apr 16, 2013 at 05:14:54PM +1000, Bruce Evans wrote: > On Tue, 16 Apr 2013, YongHyeon PYUN wrote: > > >On Mon, Apr 15, 2013 at 03:35:56PM -0700, Sean Bruno wrote: > >> > >>>FreeBSD has too many knobs, but it would be nice if the bge defaults > >>>weren't > >>>so broken, so that they don't need overriding. > >> > >>So many knobs ... well here's more. :-) > >> > >>http://people.freebsd.org/~sbruno/bge_config_update.txt > >> > >>At least this gets a man page update with references to manuals. > > > >You have to change BGE_STD_RX_RING_CNT to change number of RX > >descriptors. It's hard-coded and it needs much more work to change > >that. And I don't see any reason to modify that though(Max # of RX > >descriptor is 512). > > I thought that at first too, but a simple change along these lines > must be OK since old versions had it. There was a BGE_SSLOTS "option" > that was 256. This was used instead of BGE_STD_RX_RING_CNT in much > the same places that the tunable is now used, since 512 bds used to > be a lot. From FreeBSD-~5.2: I'm afraid that will allocate more DMAable memory than specified with the tunable and the amount of data that bus_dmamap_sync(9) have to handle is the same as before.