From owner-freebsd-current@FreeBSD.ORG Sat May 1 09:28:10 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AED18106566B; Sat, 1 May 2010 09:28:10 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 153508FC13; Sat, 1 May 2010 09:28:09 +0000 (UTC) Received: by fxm15 with SMTP id 15so961498fxm.13 for ; Sat, 01 May 2010 02:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:reply-to:x-mailer:mime-version :content-type:content-transfer-encoding; bh=DEz01Ue3ca19vyyQpkXi9wC8ivXFLfDFMEQ3awPD+ts=; b=E8T+0FHN+/dHOwgnEifqg/+d6MdC2TR37x+O2g7wDypuWsIaxOQTB/+YjbM3jrIBZv WAi3ythaBeWINy7xe2wi/I3mmBCD5pbx+2p4AJQ2327F31ajRuBz0EJ0MWDAsWXmcztR /kS4+GR4JG73/r3yCPH1IVRcSJIHeo1fW+1EY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=WmXoTVWLR93rY2rQdwFlLqKIAaJqx3Jhxh9RmtBIsHotJmMC24QjtsRPkzDxgMbz7U RfYLlsujr8o6v7EuTJvo2ggNq6Q/NqEAPcSYvf7tYs1yGnznk5SSvgbeoycTK4P5qcSy sMzHNmLmwTvC2CJMM5du65wQs7e1c2zbyLVbU= Received: by 10.223.16.84 with SMTP id n20mr1955905faa.94.1272704305623; Sat, 01 May 2010 01:58:25 -0700 (PDT) Received: from ernst.jennejohn.org (p57AE08B7.dip0.t-ipconnect.de [87.174.8.183]) by mx.google.com with ESMTPS id 35sm4614435fkt.37.2010.05.01.01.58.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 01 May 2010 01:58:24 -0700 (PDT) Date: Sat, 1 May 2010 10:58:23 +0200 From: Gary Jennejohn To: Maxim Sobolev Message-ID: <20100501105823.28ac1756@ernst.jennejohn.org> In-Reply-To: <4BDB3C31.4050709@sippysoft.com> References: <4BDB3C31.4050709@sippysoft.com> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-net@FreeBSD.ORG, "current@freebsd.org" Subject: Re: Making IFQ_MAXLEN tunable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2010 09:28:10 -0000 On Fri, 30 Apr 2010 13:23:13 -0700 Maxim Sobolev wrote: > Hi, > > 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. > > http://sobomax.sippysoft.com/IFQ_MAXLEN.diff > Seems like a good idea, although I don't see where ifqmaxlen is being initialized. -- Gary Jennejohn