From owner-freebsd-current@FreeBSD.ORG Fri Apr 30 21:33:45 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 496321065674; Fri, 30 Apr 2010 21:33:45 +0000 (UTC) (envelope-from julianelischer@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 113E18FC0C; Fri, 30 Apr 2010 21:33:44 +0000 (UTC) Received: by pvg3 with SMTP id 3so417528pvg.13 for ; Fri, 30 Apr 2010 14:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ihlNvhArHWH9lY2wHe8Ivv7flaRg2pdDQR+vEmsurOs=; b=rKSq8PeJD18CwauT1ZqNr1IKPEWM5PIvPEMKcd2eH+fTxKwDWsMQzMjt/6WSKBkQ5k yNt+1GIKeEDoB3ctV93DiCVYn4kGZi0m9LqT4sklPDM+Y50iXdzUV6H8P6XEOpaCoOwl 1Ku653lqHESVxXK6DGum6hhKGH29g++s5LeUM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=MxSuilOClrKTODpjkieHsthwy6BqT6aWWqBZf1v1lEt4G3b+PPxuKX/7ywhsFdaZHf kNz1rRuCYu5997xB2Kz8Iw6GNvxE247g5C1jBthqgMLh/oVwCj+pscp4SdZHq1Kd0m5r /zFLLdldJbWvve11RdDubxnTmiYC0TXX2gj94= Received: by 10.114.164.39 with SMTP id m39mr12425772wae.56.1272663222057; Fri, 30 Apr 2010 14:33:42 -0700 (PDT) Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by mx.google.com with ESMTPS id c14sm10627441waa.13.2010.04.30.14.33.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Apr 2010 14:33:41 -0700 (PDT) Sender: Julian Elischer Message-ID: <4BDB4CAE.20006@elischer.org> Date: Fri, 30 Apr 2010 14:33:34 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 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-U; format=flowed 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 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2010 21:33:45 -0000 On 4/30/10 1:23 PM, 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 > > -Maxim > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" so just tunable? not a sysctl :-) patch could be a lot smaller if you defined IFQ_MAXLEN to be V_ifqmaxlen (do different vimages want a different value?)