From owner-freebsd-net@FreeBSD.ORG Tue Jul 1 05:05:38 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 AD4BC1065A15 for ; Tue, 1 Jul 2008 05:05:38 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id 5C57A8FC29 for ; Tue, 1 Jul 2008 05:05:38 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so392408ana.13 for ; Mon, 30 Jun 2008 22:05:37 -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:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=rnD+ZOZPLgq1cdpuF7zPW76vlwPFueoh0GgLQcRlMBU=; b=TWRCEXwKCa/Cl4Y5oY3R8k7xwqlMXnb5g1Wg7JvhJDV8K/vl7P7VfJuLRzr1oue6Ea 4Y63ZcM5ymA0plrO/OclDaC9faDjfOithMmn/6B8EV5I3IFySe3xw5uhE/hcVwCLNDdb BwI+M2PMkBikgyElL3J43iTE3arKqf1lR6fiQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=UZks7VXWMifQk0G5e03HpBul7Tl3YwJFS6phhuhb29xSpDz8NqhHHHzM7+mQCwcna4 +g5sZdI0WIUdLjmWvEtsyiOvRGD/SxtEHai1NXZcmBhjVKUq/wKdX2DA2TGPJneRvDhN z/kL9kXjpjaRmLfEGN5QjyzT+LhXciTjGVHes= Received: by 10.100.141.5 with SMTP id o5mr5142787and.33.1214888737512; Mon, 30 Jun 2008 22:05:37 -0700 (PDT) Received: by 10.100.107.6 with HTTP; Mon, 30 Jun 2008 22:05:37 -0700 (PDT) Message-ID: Date: Tue, 1 Jul 2008 13:05:37 +0800 From: "Sepherosa Ziehau" To: "Adrian Chadd" 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> 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 05:05:38 -0000 On 7/1/08, Adrian Chadd wrote: > 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? I did not mean pps w/ 64bytes packet. Didn't have time to measure it yet. I only saw that msk(4) and em(4) could accept 64bytes packets @1.4Mpps. I meant netperf -t TCP_STREAM with -s/-S/-m 65536 on an AMDX2 3600+ with 1GBytes ram in i386 mode. Best Regards, sephe -- Live Free or Die