From owner-freebsd-current@FreeBSD.ORG Tue Sep 1 01:35:48 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87C351065676; Tue, 1 Sep 2009 01:35:48 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from mail-yw0-f191.google.com (mail-yw0-f191.google.com [209.85.211.191]) by mx1.freebsd.org (Postfix) with ESMTP id 2D6C38FC18; Tue, 1 Sep 2009 01:35:47 +0000 (UTC) Received: by ywh29 with SMTP id 29so6584140ywh.33 for ; Mon, 31 Aug 2009 18:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=UuQjVTB1Lze7SZn08Cw58ZmDk0QFlKOhA2O/ELUd10s=; b=Gq2MnBnEpZyZUn8q3/mtmojmh32Lq3pNM3gX0ADYWJN2r0YbJVJolkIo9Sg/ZL1RoD bMV02j0aS5f5gHBJ6JBVAiI8c3xA1UhgYIZz4sxUC4vEeBL/SMAu6+UpyEjGsSkQ47UV p5kclNzIIe99qMmMYB2+926OV0UuOSzT3SjNA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=QtLbGhgYZgT+T+FP/U/hvCe49NdJNY4aODdG3gn3veuqH5wXg3bMW10rLlF78PQxQW TynFGiIwm6pWcfMUk4MyTPPSNR/X5yMuZlwb26C8YkiHj0vVY/gWBJ+dn2EGtZKIZxCS TrfRtnBRT3iIgkHdwaioiRuUjVyvFFy63DcJ0= MIME-Version: 1.0 Sender: mat.macy@gmail.com Received: by 10.101.46.15 with SMTP id y15mr6714082anj.4.1251768947390; Mon, 31 Aug 2009 18:35:47 -0700 (PDT) In-Reply-To: References: Date: Mon, 31 Aug 2009 18:35:47 -0700 X-Google-Sender-Auth: eba3b95a456ff52d Message-ID: <3c1674c90908311835i7f70e6d8mbfa8ce619e7ff911@mail.gmail.com> From: Kip Macy To: fabient@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: Forwarding benchmark X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2009 01:35:48 -0000 We're not going to see much more 700kpps on forwarding workloads until we do something about the rtentry locking. I had some interesting ideas I was exploring, but I don't have the luxury of side projects right now. em(9)'s transmit performance has been substantially improved in 8 by using a buf_ring instead of IFQ so I assume that you're entirely gated by rx performance. Jeff did some work in that area to reduce the per-packet overhead of dequeue and to do some NAPI-like opportunistic polling using a variant of the taskqueue API. It won't give you any idea about latency breakdown, but it would be useful for a general time breakdown to look at unhalted core cycles in PMC. Good Luck, Kip On Fri, Aug 21, 2009 at 02:25, Fabien Thomas wrot= e: > =A0 =A0 =A0 =A0Hi all, > > Just a quick benchmark on 8.0 Beta2+ (18/08) show no regression vs 7.2. > > Result in FPS for 64bytes frame using Breakingpoint Elite > > Breakingpoint P1 =3D=3D=3D DUT =3D=3D=3D Breakingpoint P2 > > Stream1 : P1 -> P2 > Stream2: P2 -> P1 > > GENERIC kernel + netisr.direct > > 4.11 : 236 (with 1 stream down for unknown reason) > 6.3 =A0 : 248 > 7.2 =A0 : 350 > 8.0b : 352 > > POLLING kernel + netisr.direct > > 4.11 : 526 > 6.3 =A0 : 246 > 7.2 =A0 : 230 > 8.0b : 330 > > Note that the perf grow a little bit from version to version but 4.11 wit= h > polling is always a lot better. > > There is a lot a more in depth testing to do (HW flow tag, 10gb, lot of > interface, latency ...) but it give a rough idea of the perf in the > forwarding area. > > Regards, > Fabien > > dmesg: > > CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2793.02-MHz 686-class CPU) > =A0Origin =3D "GenuineIntel" =A0Id =3D 0xf47 =A0Stepping =3D 7 > =A0Features=3D0xbfebfbff > =A0Features2=3D0x641d > =A0AMD Features=3D0x20100000 > =A0AMD Features2=3D0x1 > =A0TSC: P-state invariant > real memory =A0=3D 1073741824 (1024 MB) > avail memory =3D 1035210752 (987 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > FreeBSD/SMP: 1 package(s) x 2 core(s) > =A0cpu0 (BSP): APIC ID: =A00 > =A0cpu1 (AP): APIC ID: =A01 > ... > em8: port 0x7000-0x701f mem > 0xed700000-0xed71ffff irq 18 at device 0.0 on pci6 > em8: Using MSI interrupt > em8: [FILTER] > em8: Ethernet address: 00:30:48:5c:40:82 > pcib7: irq 19 at device 28.3 on pci0 > pci8: on pcib7 > em9: port 0x8000-0x801f mem > 0xed800000-0xed81ffff irq 19 at device 0.0 on pci8 > em9: Using MSI interrupt > em9: [FILTER] > em9: Ethernet address: 00:30:48:5c:40:83 > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > --=20 When harsh accusations depart too far from the truth, they leave bitter consequences. --Tacitus