From owner-freebsd-net@FreeBSD.ORG Fri Apr 26 17:19:31 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 86753670; Fri, 26 Apr 2013 17:19:31 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 5217D13C0; Fri, 26 Apr 2013 17:19:31 +0000 (UTC) Received: from [192.168.43.26] (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.5/8.14.5) with ESMTP id r3QHJUfa085829; Fri, 26 Apr 2013 13:19:30 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <517AB733.7020302@sentex.net> Date: Fri, 26 Apr 2013 13:19:47 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Olivier_Cochard-Labb=E9?= Subject: Re: pf performance? References: <5176E5C1.9090601@soe.ucsc.edu> <20130426134224.GV76816@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.72 on 64.7.153.18 Cc: "freebsd-net@freebsd.org" , Erich Weiler X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2013 17:19:31 -0000 On 4/26/2013 12:22 PM, Olivier Cochard-Labbé wrote: > On Fri, Apr 26, 2013 at 3:42 PM, Gleb Smirnoff wrote: >> >> In FreeBSD 10 pf is no longer under single lock. On your hardware, >> I'd expect a measurable performance gain if you migrate to 10. > > Compairing 9.1 and current (249908) on my new test-server (HP ProLiant > DL320 G5, dual-core Xeon 3050, dual Intel NIC). > Like usual: one unidirectional flow of small packets, values in > packet-per-seconds: > > x 9.1 > + current > N Min Max Median Avg Stddev > x 5 379991 381508 381229 380892.6 667.69926 > + 5 332833 335502 334726 334223.2 1142.8266 > Difference at 95.0% confidence > -46669.4 +/- 1364.98 > -12.2526% +/- 0.358363% > (Student's t, pooled s = 935.915) Is that because pf is slower on a single flow, or packet forwarding in general is slower on HEAD ? How different is 9.1 and HEAD in just forwarding performance? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/