From owner-freebsd-net@FreeBSD.ORG Mon Sep 24 07:20:32 2007 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 A4E8316A418 for ; Mon, 24 Sep 2007 07:20:32 +0000 (UTC) (envelope-from daffy@xview.net) Received: from mail.oav.net (mail.oav.net [193.218.105.18]) by mx1.freebsd.org (Postfix) with ESMTP id 513BE13C48E for ; Mon, 24 Sep 2007 07:20:32 +0000 (UTC) (envelope-from daffy@xview.net) Received: from localhost (localhost [127.0.0.1]) by mail02.oav.net (Postfix) with ESMTP id 9BE2F3F43D; Mon, 24 Sep 2007 09:20:31 +0200 (CEST) (envelope-from daffy@xview.net) X-Virus-Scanned: by amavisd-new at mail02.oav.net Received: from mail02.oav.net ([127.0.0.1]) by localhost (mail02.oav.net [127.0.0.1]) (amavisd-new, port 10026) with LMTP id hRjtsKu397Ua; Mon, 24 Sep 2007 09:20:31 +0200 (CEST) Received: from [192.168.0.10] (ble59-1-82-66-131-119.fbx.proxad.net [82.66.131.119]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail02.oav.net (Postfix) with ESMTP id 08DC53F43B; Mon, 24 Sep 2007 09:20:30 +0200 (CEST) (envelope-from daffy@xview.net) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <9D1C5636-E513-4D88-9B1E-5646C0C0897D@xview.net> Content-Transfer-Encoding: quoted-printable From: Olivier Warin Date: Mon, 24 Sep 2007 09:18:33 +0200 To: Fabien THOMAS X-Mailer: Apple Mail (2.752.3) Cc: freebsd-net@freebsd.org Subject: Re: pollng: pcap bench 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: Mon, 24 Sep 2007 07:20:32 -0000 Le 19 sept. 07 =E0 16:59, Fabien THOMAS a =E9crit : > Result of pcap benchmark requested by Vlad Galu: > > Using polling is better. > > Test setup: > --------------- > > netblast -- em|fxp -- pcap_bmark > > under FreeBSD 6.2 > > Small product (fxp interface): > --------------------------------------- > > pollng: > > Captured 30322.00 pps (total of 333542) and dropped 144 > Captured 30358.45 pps (total of 333943) and dropped 219 > Captured 30253.18 pps (total of 332785) and dropped 151 > Captured 30276.82 pps (total of 333045) and dropped 88 > Captured 30362.64 pps (total of 333989) and dropped 369 > > intr: > > Captured 0.01 pps (total of 6877442) and dropped 6876215 > > completly stuck with intr mode so the period take more than 10s. > > Large product (em interface): > --------------------------------------- > > pollng: > Captured 114669.09 pps (total of 1261360) and dropped 0 > Captured 115263.18 pps (total of 1267895) and dropped 0 > Captured 115226.45 pps (total of 1267491) and dropped 0 > Captured 115003.64 pps (total of 1265040) and dropped 0 > > intr: > > Captured 99091.91 pps (total of 1090011) and dropped 629467 > Captured 105180.64 pps (total of 1156987) and dropped 617526 > Captured 99722.36 pps (total of 1096946) and dropped 607367 > Captured 104180.91 pps (total of 1145990) and dropped 626567 Hello Fabien, Thanks one more time for your contribution. One small question for =20 you, what was the overhall packet size during capture ? By the way, I found out similar reports regarding polling in new =20 FreeBSD releases: - http://www.net.t-labs.tu-berlin.de/papers/SWF-PCCH10GEE-07.pdf - a couple on our mailing lists. Would be nice if some commiters can take the time to review this code =20= (pollng). Best regards, /Olivier -- Olivier Warin