From owner-freebsd-net@FreeBSD.ORG Tue Jul 1 04:36:28 2008 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 01DF71065670 for ; Tue, 1 Jul 2008 04:36:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id BB0A98FC0C for ; Tue, 1 Jul 2008 04:36:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1966502rvf.43 for ; Mon, 30 Jun 2008 21:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=ZC8nBK0E6fKH0VqnUhaRO7i6NZe7pyMbAcl3FOTELTo=; b=Szr46mDHH6G+hxXUAoxRHR09HIKNM7NSc0MBGyuOutj2iYFYeDd0aZgoVg7LFNf4ek x+xvabMn7qIUv6JB5W6rSoyrOdw8GTVzovDTmYeDmKONth9zFqy6C3wIcND5Qs3EEa8M IO2VoxE9+Or9zd2cI66nUXwXU9Ya4BsSYSgwU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=VTgM+0DZ9F/gQw+bLchuqteGl0X+QAId0MYr6Suel32Z1eHwWgQFGdD9kyX42ZgxiO /w6+kRoMmD8CPn4VTSrmWErNd0pNRnfIHQfh4y+kRmQxVf3x3/F4sg5FQ4vzoiMRBpII AUcaT8bv3m8k7KHksB9JAbl+x0/Rzf/iHq4dM= Received: by 10.141.206.13 with SMTP id i13mr3164800rvq.211.1214885260317; Mon, 30 Jun 2008 21:07:40 -0700 (PDT) Received: by 10.141.212.9 with HTTP; Mon, 30 Jun 2008 21:07:40 -0700 (PDT) Message-ID: Date: Tue, 1 Jul 2008 12:07:40 +0800 From: "Adrian Chadd" Sender: adrian.chadd@gmail.com To: "Sepherosa Ziehau" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4867420D.7090406@gtcomm.net> <200806301944.m5UJifJD081781@lava.sentex.ca> <20080701004346.GA3898@stlux503.dsto.defence.gov.au> <20080701010716.GF3898@stlux503.dsto.defence.gov.au> <486986D9.3000607@monkeybrains.net> <48699960.9070100@gtcomm.net> X-Google-Sender-Auth: 0452eabfa753112e Cc: freebsd-net@freebsd.org, Paul Subject: Re: Freebsd IP Forwarding performance (question, and some info) [7-stable, current, em, smp] 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: Tue, 01 Jul 2008 04:36:28 -0000 2008/7/1 Sepherosa Ziehau : > Properly configured #RX desc and timer intr interval will be required > to make sure that the RX desc collection could keep up with the > hardware speed. I used pure timer intr (8000Hz) on nfe(4) in dfly w/ > good result, i.e. TX/RX @linespeed without livelocking the system. > The drawback of pure timer intr is that you waste extra cpu power, > when there is nothing to process. What packet rate is "linespeed" ? With what size packets? arian