From owner-freebsd-net@FreeBSD.ORG Tue Apr 22 12:32:16 2008 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AFAA106566C for ; Tue, 22 Apr 2008 12:32:16 +0000 (UTC) (envelope-from is@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.freebsd.org (Postfix) with ESMTP id 35F928FC15 for ; Tue, 22 Apr 2008 12:32:16 +0000 (UTC) (envelope-from is@rambler-co.ru) Received: from localhost (is1.park.rambler.ru [81.19.64.121]) by relay0.rambler.ru (Postfix) with ESMTP id 9B8305EA6; Tue, 22 Apr 2008 16:32:14 +0400 (MSD) Date: Tue, 22 Apr 2008 16:31:34 +0400 From: Igor Sysoev To: freebsd-net@FreeBSD.org Message-ID: <20080422123134.GK60108@rambler-co.ru> References: <20071116154019.GE93422@rambler-co.ru> <20071117065908.T65479@delplex.bde.org> <20071117071053.GA18091@rambler-co.ru> <20071117194615.L67319@delplex.bde.org> <20080421202038.GK54256@rambler-co.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20080421202038.GK54256@rambler-co.ru> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: Subject: Re: bge loader tunables X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2008 12:32:16 -0000 On Tue, Apr 22, 2008 at 12:20:38AM +0400, Igor Sysoev wrote: > Finally I have tested your second (without debug stuff) patch in > production environment (~45K in/out packets) on FreeBSD 7.0-STABLE. > I think it should be commited. > > I use my usual static settings in /etc/sysctl.conf: > > dev.bge.0.dyncoal_max_intr_freq=0 > # > dev.bge.0.rx_coal_ticks=500 > dev.bge.0.tx_coal_ticks=10000 > dev.bge.0.rx_max_coal_bds=64 > dev.bge.0.tx_max_coal_bds=128 > # apply the above parameters > dev.bge.0.program_coal=0 > > and have about only 1700-1900 interrupts per second. > > The only issue was at boot time: > > dev.bge.0.dyncoal_max_intr_freq: 10000 -> 0 > dev.bge.0.rx_coal_ticks: 0 -> 500 > dev.bge.0.tx_coal_ticks: 1000000 -> 10000 > dev.bge.0.rx_max_coal_bds: 128 -> 64 > dev.bge.0.tx_max_coal_bds: 384 -> 128 > ... > bge0: flags =8843 metric 0 mtu 1500 > options=9b > ... > Local package initialization: > ... > dev.bge.0.rx_coal_ticks: 150 -> 500 > > When disabling dyncoal_max_intr_freq at bge UPing resets rx_coal_ticks to 150. I has to use dev.bge.0.program_coal=1 in /etc/sysctl.conf, otherwise /etc/rc.d/sysctl does not call it at all. -- Igor Sysoev http://sysoev.ru/en/