From owner-freebsd-net@FreeBSD.ORG Sun Feb 12 23:28:43 2006 Return-Path: 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 ; 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 ; 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: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Marcos Bedinelli , 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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