From owner-freebsd-net@FreeBSD.ORG Wed Jul 4 08:53:16 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1195C1065670; Wed, 4 Jul 2012 08:53:16 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id B70D28FC08; Wed, 4 Jul 2012 08:53:15 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 1551073027; Wed, 4 Jul 2012 11:12:41 +0200 (CEST) Date: Wed, 4 Jul 2012 11:12:41 +0200 From: Luigi Rizzo To: "Alexander V. Chernikov" Message-ID: <20120704091241.GA99164@onelab2.iet.unipi.it> References: <4FF319A2.6070905@FreeBSD.org> <4FF361CA.4000506@FreeBSD.org> <20120703214419.GC92445@onelab2.iet.unipi.it> <4FF36438.2030902@FreeBSD.org> <4FF3E2C4.7050701@FreeBSD.org> <4FF3FB14.8020006@FreeBSD.org> <4FF402D1.4000505@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FF402D1.4000505@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: Doug Barton , net@freebsd.org Subject: Re: FreeBSD 10G forwarding performance @Intel 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: Wed, 04 Jul 2012 08:53:16 -0000 On Wed, Jul 04, 2012 at 12:46:09PM +0400, Alexander V. Chernikov wrote: > On 04.07.2012 12:13, Doug Barton wrote: > >On 07/03/2012 23:29, Alexander V. Chernikov wrote: > >>On 04.07.2012 01:29, Doug Barton wrote: > >>>>>Just curious ... what's the MTU on your FreeBSD box, and the Linux box? > >> > >>In this particular setup - 1500. You're probably meaning type of mbufs > >>which are allocated by ixgbe driver? > > > >1500 for both? > Well, AFAIR it was 1500. We've done a variety of tests half a year ago > with similar server and Intel and Mellanox equipment. Test results vary > from 4 to 6mpps in different setups (and mellanox seems to behave better > on Linux). If you're particularly interested in exact Linux performance > on exactly the same box I can try to do this possibly next week. > > My point actually is the following: > It is possible to do linerate 10G (14.8mpps) forwarding with current > market-available hardware. Linux is going that way and it is much more > close than we do. Even dragonfly performs _much_ better than we do in > routing. > > http://shader.kaist.edu/packetshader/ (and links there) are good example > of what is going on. Alex, i am sure you are aware that in FreeBSD we have netmap too http://info.iet.unipi.it/~luigi/netmap/ which is probably a lot more usable than packetshader (hw independent, included in the OS, also works on linux...) cheers luigi