From owner-freebsd-hackers Fri Feb 1 0:47:15 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 62B5C37B404 for ; Fri, 1 Feb 2002 00:47:13 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.3/8.11.3) id g118kwB48866; Fri, 1 Feb 2002 00:46:58 -0800 (PST) (envelope-from rizzo) Date: Fri, 1 Feb 2002 00:46:58 -0800 From: Luigi Rizzo To: Alfred Perlstein Cc: Terry Lambert , Mike Silbersack , Storms of Perfection , thierry@herbelot.com, replicator@ngs.ru, hackers@FreeBSD.ORG Subject: Re: Clock Granularity (kernel option HZ) Message-ID: <20020201004658.A48810@iguana.icir.org> References: <20020131172729.X38382-100000@patrocles.silby.com> <3C59E873.4E8A82B5@mindspring.com> <20020201002339.C48439@iguana.icir.org> <20020201002835.I18604@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020201002835.I18604@elvis.mu.org> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 01, 2002 at 12:28:35AM -0800, Alfred Perlstein wrote: > > > throughput vs. overhead if you process packets to completion > > > at interrupt, and process writes to completion at write time > > > from the process. > > > > this does not match my numbers. e.g. using "fastforwarding" > > (which bypasses netisrs's) improves peak throughput > > by a factor between 1.2 and 2 on our test boxes. > > Forwarding packets is a lot less complicated than doing tcp > recieve and send. I haven't seen Terry's stuff in action, > however it makes sense that tcp would see more of an improvement > than simple IP forwarding. but exactly because of this reason, the overhead of netisr should be less and less relevant as the processing increases. Unless of course you end up in livelock, in which case performance drops to 0 without processing-to-completion, and then the performance improvement is arbitrarily high (see the table in http://info.iet.unipi.it~luigi/polling/ ). cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message