From owner-freebsd-net@FreeBSD.ORG Thu Jul 5 09:00:08 2012 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 A307E106564A for ; Thu, 5 Jul 2012 09:00:08 +0000 (UTC) (envelope-from coolsysop@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4FAD78FC12 for ; Thu, 5 Jul 2012 09:00:08 +0000 (UTC) Received: by obbun3 with SMTP id un3so16436126obb.13 for ; Thu, 05 Jul 2012 02:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=CXg3XCFSemzlzzwBK539USd2Bl6yTxX1euwA1blwcyM=; b=gDaC1rFqku022gycT6+ZJAN3tWCILpzSHagqVlp7N50OcDln7kHjdEeXK02zx8O8lz r57k0nhUvePaCfdmxKXxfW6o2LKXc5g3w2R/yoxdKtxtFaOG1zU7l9QW9cQyMZhADWbC nbc8728ihcOd3CSubxNW1d8veIDUT35ao8raYAIbSHGZqOjFV7VKdjs1vERx/tnBBCA9 kjigNEblNDuevaoQCCKb6pC7ypgcPAK2uG7BM6CbDlBkn9jRk+hxbh6XKSZUSbyuKJbl QPwR0EnSlOy/4Zm5IP0w/wOmuyHg2x6EdqRSJQbKPnpZlVyZkyOjA+6b6mKQBokWjnfw tYEw== MIME-Version: 1.0 Received: by 10.60.19.34 with SMTP id b2mr25636677oee.41.1341478807917; Thu, 05 Jul 2012 02:00:07 -0700 (PDT) Received: by 10.60.28.40 with HTTP; Thu, 5 Jul 2012 02:00:07 -0700 (PDT) In-Reply-To: <4FF5329E.1000007@rdtc.ru> References: <4FF5329E.1000007@rdtc.ru> Date: Thu, 5 Jul 2012 12:00:07 +0300 Message-ID: From: Vyacheslav Kulikovskyy To: Eugene Grosbein Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: lagg speed trouble 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: Thu, 05 Jul 2012 09:00:08 -0000 2012/7/5 Eugene Grosbein > 04.07.2012 18:30, Vyacheslav Kulikovskyy =D0=C9=DB=C5=D4: > > i have sever with two 1G links (em) aggregated by lagg0 > > > > after 1700Megabits i have collisions/errors on lagg0 port, but not on e= m0 > > or em1 > > > > I'm using nginx in own CDN. and server don't limited my mbufs, irq, or > > anything else.. only lagg0 errors ( > > lagg0 by default uses way too small output FIFO queue, 50 slots. > You definitely want to increase this to sum of your em intefaces > txd buffers at least. So, if you use hw.em.txd=3D4096, you should > use 8192 for lagg or more. I prefer 10K, in /boot/loader.conf: > > net.link.ifqmaxlen=3D10240 > > Reboot is required. > > Eugene Grosbein > This is solution don't help me hw.em.txd: 4096 net.link.ifqmaxlen: 10240 # netstat -w 1 -I lagg0 input (lagg0) output packets errs idrops bytes packets errs bytes colls 77600 0 0 4771508 71175 70 208916199 0 79747 0 0 4885070 73101 242 218847447 0 84956 0 0 5262540 74504 455 213752515 0 81333 0 0 4998499 73836 229 215808086 0 and no errors on em0,em1 more info: FreeBSD 9.0-STABLE #0: AMD64 ps after small test i'll try patch from Andrew Thompson