From owner-freebsd-current@FreeBSD.ORG Fri Jun 3 13:52:13 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A833106566C for ; Fri, 3 Jun 2011 13:52:13 +0000 (UTC) (envelope-from eksffa@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (eudaemonian2.freebsdbrasil.com.br [201.48.151.8]) by mx1.freebsd.org (Postfix) with SMTP id A409A8FC08 for ; Fri, 3 Jun 2011 13:52:12 +0000 (UTC) Received: (qmail 88997 invoked from network); 3 Jun 2011 10:25:30 -0300 Received: by simscan 1.4.0 ppid: 88955, pid: 88994, t: 1.2168s scanners:none Received: from unknown (HELO ?172.20.10.8?) (eksffa@freebsdbrasil.com.br@187.1.226.98) by capeta.freebsdbrasil.com.br with ESMTPA; 3 Jun 2011 10:25:29 -0300 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Patrick Tracanelli In-Reply-To: <20110602223140.GA31285@onelab2.iet.unipi.it> Date: Fri, 3 Jun 2011 10:20:50 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: <85C4C9B4-9413-4695-B625-BDAA00B97662@freebsdbrasil.com.br> References: <20110602223140.GA31285@onelab2.iet.unipi.it> To: Luigi Rizzo X-Mailer: Apple Mail (2.1084) Cc: current@freebsd.org Subject: Re: Introducing netmap: line-rate packet send/receive at 10Gbit/s 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: Fri, 03 Jun 2011 13:52:13 -0000 Em 02/06/2011, =E0s 19:31, Luigi Rizzo escreveu: > Hi, > we have recently worked on a project, called netmap, which lets > FreeBSD send/receive packets at line rate even at 10 Gbit/s with > very low CPU overhead: one core at 1.33 GHz does 14.88 Mpps with a > modified ixgbe driver, which gives plenty of CPU cycles to handle > multiple interface and/or do useful work (packet forwarding, analysis, = etc.) >=20 > You can find full documentation and source code and even a picobsd = image at >=20 > http://info.iet.unipi.it/~luigi/netmap/ >=20 > The system uses memory mapped packet buffers to reduce the cost of > data movements, but this would not be enough to make it useful or > novel. Netmap uses many other small but important tricks to make > the system fast, safe and easy to use, and support transmission, > reception, and communication with the host stack. >=20 > You can see full details in documentation at the above link. >=20 > Feedback welcome. Dear Rizzo, Which packet len you transmitted at 14.8MPPS? According to figure 5 or = the description I could not find it. Did you test TCP? How did you perform this test? Multihomed with forwarding between NICs = or you generated the data from userland to the wire and let it flow? If = not tell me how you believe netmap may impact in our current forwarding = rate (specially the pps limit) and FreeBSD should be changed to take = advantage of netmap for pkt forwarding. Thank you for your time, code and all the stuff in between :) -- Patrick Tracanelli