From owner-freebsd-net@FreeBSD.ORG Sun Jul 6 09:10:01 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 C4F38106567A for ; Sun, 6 Jul 2008 09:10:01 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by mx1.freebsd.org (Postfix) with ESMTP id 708F18FC0C for ; Sun, 6 Jul 2008 09:10:01 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so413201ana.13 for ; Sun, 06 Jul 2008 02:10:00 -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=J7avj1ZK4cpOD2W0/oLKhwEnHVvxZOmGKf0np42CvNA=; b=U7YAdqFyqSb1ivD5dUyb0WvPMHcIgrUhwvppvsgpilzl6pP8Zg5OFaVaF3SIZcUCum 2JZDVbvtBpiyhZ74iaiY83zcF8Iy1kyVCDXpbwS0awg+hzKeS5MAnctRvsK7rQQDWSvS hUzu1YzrXHqee7RXom0E0sUVmSZuUMPTKqrMo= 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=uuXgK3AadMVwkgERMkQLqTYcSv7n94yfpZWnwPs3yoLM7hwAB8+heOcgaAhg82E0HM b+REw1O7hRiANqrzveBOnTWm42K5cV4YmpDufbqJ2X2w7y3/6jqBxywt1wiXT0iz9Dik s7cAnl/YttbjpNvjuYHSwd772jjgNm+ljcACA= Received: by 10.100.139.20 with SMTP id m20mr1364121and.77.1215335400305; Sun, 06 Jul 2008 02:10:00 -0700 (PDT) Received: by 10.100.107.6 with HTTP; Sun, 6 Jul 2008 02:10:00 -0700 (PDT) Message-ID: Date: Sun, 6 Jul 2008 17:10:00 +0800 From: "Sepherosa Ziehau" To: Paul In-Reply-To: <486E65E6.3060301@gtcomm.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4867420D.7090406@gtcomm.net> <486BC7F5.5070604@gtcomm.net> <20080703160540.W6369@delplex.bde.org> <486C7F93.7010308@gtcomm.net> <20080703195521.O6973@delplex.bde.org> <486D35A0.4000302@gtcomm.net> <486DF1A3.9000409@gtcomm.net> <486E65E6.3060301@gtcomm.net> Cc: FreeBSD Net , Ingo Flaschberger 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: Sun, 06 Jul 2008 09:10:01 -0000 On Sat, Jul 5, 2008 at 2:03 AM, Paul wrote: > I tried all of this :/ still, 256/512 descriptors seem to work the best. > Happy to let you log into the machine and fiddle around if you want :) I think you need to ktr the packet processing time. Standard gigabit max at ~1488095pps, which means you could be @max rate only if each packet's processing time is <= ~672ns. Since you are using fastforwarding, the calculation should be quite straightforward for you; I don't think you should expect anything beyond the calculated result. Best Regards, sephe -- Live Free or Die