From owner-freebsd-net@FreeBSD.ORG Wed Oct 7 10:45:27 2009 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 31B5D1065696 for ; Wed, 7 Oct 2009 10:45:27 +0000 (UTC) (envelope-from oleg@lath.rinet.ru) Received: from lath.rinet.ru (lath.rinet.ru [195.54.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id E2A088FC18 for ; Wed, 7 Oct 2009 10:45:26 +0000 (UTC) Received: by lath.rinet.ru (Postfix, from userid 222) id 7EFDB704B; Wed, 7 Oct 2009 14:45:25 +0400 (MSD) Date: Wed, 7 Oct 2009 14:45:25 +0400 From: Oleg Bulyzhin To: rihad Message-ID: <20091007104525.GC88982@lath.rinet.ru> References: <4AC8A76B.3050502@mail.ru> <20091007085902.GA88982@lath.rinet.ru> <4ACC5E23.8090405@mail.ru> <20091007100503.GB88982@lath.rinet.ru> <4ACC6A7B.5050808@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ACC6A7B.5050808@mail.ru> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-net@freebsd.org Subject: Re: dummynet dropping too many packets 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: Wed, 07 Oct 2009 10:45:27 -0000 On Wed, Oct 07, 2009 at 03:16:27PM +0500, rihad wrote: > Oleg Bulyzhin wrote: > > On Wed, Oct 07, 2009 at 02:23:47PM +0500, rihad wrote: > > > > Few questions: > > 1) why are you not using fastforwarding? > > 2) search_steps/searches ratio is not that good, are you using 'buckets' > > keyword in your pipe configuration? > > 3) you have net.inet.ip.fw.one_pass = 0, is it intended? > > > 1) and 3): the box does traffic accounting and shaping, so I need > one_pass=0 to do both ngtee and pipes. Still can not see any objection for not using fastforwarding, and usually ipfw ruleset can be rearranged for using dummynet & netgraph with one_pass=1. Could you show your 'ipfw show' output? (hide ip addresses if you wish but keep counters please). > 2) Hm, I'm not using "buckets", but rather > net.inet.ip.dummynet.hash_size. It's at default, 64. I've tried setting > net.inet.ip.dummynet.hash_size=65536 in sysctl.conf but somehow it was > still 64 after reboot, so I left it at 64. Should I make it 128? 256? > Does it matter that much? The load is at approx. 70-120 consumers per > pipe, so I thought 64 bucket size was enough. It depends on traffic pattern, try to increase it and watch search_steps/searches ratio (~1.001 is good enough) -- Oleg. ================================================================ === Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- oleg@rinet.ru === ================================================================