From owner-freebsd-net@FreeBSD.ORG Fri Apr 30 21:29:02 2010 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 637D3106566C for ; Fri, 30 Apr 2010 21:29:02 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (grosbein.pp.ru [89.189.172.146]) by mx1.freebsd.org (Postfix) with ESMTP id A859E8FC0A for ; Fri, 30 Apr 2010 21:29:01 +0000 (UTC) Received: from grosbein.pp.ru (localhost [127.0.0.1]) by grosbein.pp.ru (8.14.4/8.14.4) with ESMTP id o3UL8TSt028836; Sat, 1 May 2010 04:08:30 +0700 (NOVST) (envelope-from eugen@grosbein.pp.ru) Message-ID: <4BDB46CD.80004@grosbein.pp.ru> Date: Sat, 01 May 2010 04:08:29 +0700 From: Eugene Grosbein User-Agent: Thunderbird 2.0.0.23 (X11/20091107) MIME-Version: 1.0 To: Maxim Sobolev References: <4BDB3C31.4050709@sippysoft.com> In-Reply-To: <4BDB3C31.4050709@sippysoft.com> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Making IFQ_MAXLEN tunable 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: Fri, 30 Apr 2010 21:29:02 -0000 Maxim Sobolev wrote: > Many network drivers in the FreeBSD kernel use the IFQ_MAXLEN value to > set length of the outgoing packets queue. The default value for that > parameter is only 50, which is pretty low especially for the cases when > the system handles lot of small packets and can cause ENOBUFS in > applications under the load. The following patch makes IFQ_MAXLEN a > tunable. I am also tempted to bump the default value for IFQ_MAXLEN > 10-fold, but would like to hear what do people think about it first. I've not checked implementation yet, but idea is pretty useful. In fact, this ought be done years ago, imho. Eugene Grosbein