From owner-freebsd-net@FreeBSD.ORG Wed Oct 7 08:46:42 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB29310656A5; Wed, 7 Oct 2009 08:46:42 +0000 (UTC) (envelope-from rihad@mail.ru) Received: from mx71.mail.ru (mx71.mail.ru [94.100.176.85]) by mx1.freebsd.org (Postfix) with ESMTP id 817458FC14; Wed, 7 Oct 2009 08:46:42 +0000 (UTC) Received: from [217.25.27.27] (port=24145 helo=[217.25.27.27]) by mx71.mail.ru with asmtp id 1MvSAI-000Dfn-00; Wed, 07 Oct 2009 12:46:30 +0400 Message-ID: <4ACC5563.602@mail.ru> Date: Wed, 07 Oct 2009 13:46:27 +0500 From: rihad User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: Robert Watson References: <4AC9E29B.6080908@mail.ru> <20091005123230.GA64167@onelab2.iet.unipi.it> <4AC9EFDF.4080302@mail.ru> <4ACA2CC6.70201@elischer.org> <4ACAFF2A.1000206@mail.ru> <4ACB0C22.4000008@mail.ru> <20091006100726.GA26426@svzserv.kemerovo.su> <4ACB42D2.2070909@mail.ru> <20091006142152.GA42350@svzserv.kemerovo.su> <4ACB6223.1000709@mail.ru> <20091006161240.GA49940@svzserv.kemerovo.su> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: Not detected X-Mras: Ok Cc: freebsd-net@freebsd.org, Eugene Grosbein , Luigi Rizzo , Julian Elischer Subject: Re: dummynet dropping too many packets 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: Wed, 07 Oct 2009 08:46:42 -0000 Robert Watson wrote: > > On Wed, 7 Oct 2009, Eugene Grosbein wrote: > >> On Tue, Oct 06, 2009 at 08:28:35PM +0500, rihad wrote: >> >>> I don't think net.inet.ip.intr_queue_maxlen is relevant to this >>> problem, as net.inet.ip.intr_queue_drops is normally zero or very >>> close to it at all times. >> >> When net.isr.direct is 1, this queue is used very seldom. Would you >> change it to 0, it will be used extensively. > > Just to clarify this more specifically: > > With net.isr.direct set to 0, the netisr will always be used when > processing inbound IP packets. > Maybe I've done something wrong, but setting net.isr.direct=0 on a live system hasn't yet overrun the default queue of 50 @460-470 mbit/s: $ sysctl net.inet.ip | fgrep intr net.inet.ip.intr_queue_maxlen: 50 net.inet.ip.intr_queue_drops: 0 $ sysctl net.isr.direct net.isr.direct: 0 I've yet to test how this direct=0 improves extensive dummynet drops.