From owner-freebsd-net@FreeBSD.ORG  Sun Feb 12 23:28:43 2006
Return-Path: <owner-freebsd-net@FreeBSD.ORG>
X-Original-To: freebsd-net@freebsd.org
Delivered-To: freebsd-net@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5742516A420
	for <freebsd-net@freebsd.org>; Sun, 12 Feb 2006 23:28:43 +0000 (GMT)
	(envelope-from lukem@cse.unsw.edu.au)
Received: from tone.orchestra.cse.unsw.EDU.AU (tone.orchestra.cse.unsw.EDU.AU
	[129.94.242.59])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 850BE43D48
	for <freebsd-net@freebsd.org>; Sun, 12 Feb 2006 23:28:42 +0000 (GMT)
	(envelope-from lukem@cse.unsw.edu.au)
Received: From wagner.orchestra.cse.unsw.EDU.AU ([129.94.242.19]) (ident-user
	root) By tone With Smtp ; Mon, 13 Feb 2006 10:28:39 +1100 
Received: From wagner With LocalMail ; Mon, 13 Feb 2006 10:28:38 +1100 
From: lukem.freebsd@cse.unsw.edu.au
Sender: lukem@cse.unsw.edu.au
To: dima <_pppp@mail.ru>
Date: Mon, 13 Feb 2006 10:28:38 +1100 (EST)
In-Reply-To: <E1F7fzS-000GUW-00._pppp-mail-ru@f16.mail.ru>
Message-ID: <Pine.LNX.4.61.0602131020150.5315@wagner.orchestra.cse.unsw.EDU.AU>
References: <E1F7fzS-000GUW-00._pppp-mail-ru@f16.mail.ru>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: Marcos Bedinelli <bedinelli@madhaus.cns.utoronto.ca>,
	freebsd-net@freebsd.org
Subject: Re: Network performance in a dual CPU system
X-BeenThere: freebsd-net@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 12 Feb 2006 23:28:43 -0000

On Sat, 11 Feb 2006, dima wrote:
> There are several software (FreeBSD specific) options though:

> 1. You should surely try polling(4). 50kpps mean 50000 interrupts and 
> the same amount of context switches, which are quite expensive.

While this was true in the 80's, it is blatantly wrong for any decent 
modern network interface. Every gigabit card I've used has had some form 
of interrupt mitigation. Usually this takes the form of one or more timers 
which limit the maximum interrupt rate.

-- 
Luke