From owner-freebsd-net@FreeBSD.ORG Thu Jul 5 06:22:27 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3AF51106564A for ; Thu, 5 Jul 2012 06:22:27 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13::5]) by mx1.freebsd.org (Postfix) with ESMTP id 9735E8FC0C for ; Thu, 5 Jul 2012 06:22:26 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.5/8.14.5) with ESMTP id q656MMaa050795; Thu, 5 Jul 2012 13:22:23 +0700 (NOVT) (envelope-from egrosbein@rdtc.ru) Message-ID: <4FF5329E.1000007@rdtc.ru> Date: Thu, 05 Jul 2012 13:22:22 +0700 From: Eugene Grosbein User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110112 Thunderbird/3.1.7 MIME-Version: 1.0 To: Vyacheslav Kulikovskyy References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit 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 06:22:27 -0000 04.07.2012 18:30, Vyacheslav Kulikovskyy пишет: > i have sever with two 1G links (em) aggregated by lagg0 > > after 1700Megabits i have collisions/errors on lagg0 port, but not on em0 > 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=4096, you should use 8192 for lagg or more. I prefer 10K, in /boot/loader.conf: net.link.ifqmaxlen=10240 Reboot is required. Eugene Grosbein