From owner-freebsd-current@FreeBSD.ORG Sat May 1 09:25:31 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 9B556106564A; Sat, 1 May 2010 09:25:31 +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 F36518FC1F; Sat, 1 May 2010 09:25:30 +0000 (UTC) Received: by fxm15 with SMTP id 15so960311fxm.13 for ; Sat, 01 May 2010 02:25:27 -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=YEmA4/lN/sEcNOOqlhiJPoX8QBPfaiaoMggK8MfDUm4=; b=LH1SfxPj761T3/hNiqTHtofebL2NXMEnY2OisnzHOtXENwB9Fko5dNPn2SXVyZx6o9 hF4a5ixuT4PzIs1Tud4QV1D0DJfiUYKyFFGEd38DROobft93ZoFP3S4nDul3zyeHScQv vJxcMLYV95wJ3gEnlyz9pfGdkq+7jE60IvrnA= 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=eVJVOUJWDaxn4nRxr4InpIapgxinCg+FScET9LClhsWQuN752dD6gcAWd8Pj0Ntd9v jSUEHti3R9g502uPtdO20MwlrBi6I3AzxGY45E4qfZYpBVu6PfQeSfqAl03MUU/i4Fov J7zgcovtOWyKbSOkqGQB/gbXKCCSdi4t50WTU= Received: by 10.223.143.67 with SMTP id t3mr1954782fau.16.1272705926907; Sat, 01 May 2010 02:25:26 -0700 (PDT) Received: from ernst.jennejohn.org (p57AE08B7.dip0.t-ipconnect.de [87.174.8.183]) by mx.google.com with ESMTPS id z15sm4650298fkz.21.2010.05.01.02.25.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 01 May 2010 02:25:26 -0700 (PDT) Date: Sat, 1 May 2010 11:25:24 +0200 From: Gary Jennejohn To: Maxim Sobolev Message-ID: <20100501112524.26c2fe5c@ernst.jennejohn.org> In-Reply-To: <4BDBF028.5040505@FreeBSD.org> References: <4BDB3C31.4050709@sippysoft.com> <20100501105823.28ac1756@ernst.jennejohn.org> <4BDBF028.5040505@FreeBSD.org> 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:25:31 -0000 On Sat, 01 May 2010 02:11:04 -0700 Maxim Sobolev wrote: > Gary Jennejohn wrote: > > 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. > > sys/net/if.c > Shame on me for not looking at the file itself! I only looked at the patch. -- Gary Jennejohn