From owner-freebsd-net@FreeBSD.ORG Sat Jun 14 10:12:25 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CEDC98DF for ; Sat, 14 Jun 2014 10:12:25 +0000 (UTC) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 5470B2243 for ; Sat, 14 Jun 2014 10:12:24 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 9E1B77300A; Sat, 14 Jun 2014 12:15:23 +0200 (CEST) Date: Sat, 14 Jun 2014 12:15:23 +0200 From: Luigi Rizzo To: Carlos Ferreira Subject: Re: netmap Message-ID: <20140614101523.GD22187@onelab2.iet.unipi.it> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2014 10:12:26 -0000 On Fri, Jun 13, 2014 at 10:55:54AM +0100, Carlos Ferreira wrote: > Hello Luigi (and to all) > > I was able to successfully compile the netmap module for OpenWRT but > without drivers. According to the information in the README file which > comes with the source, the drivers are not necessary but with some "reduced > performance". > > I would like to ask how much degradation should be expected. I would like > to run some tests to see if everything is ok and if the port was successful. At 10Gbit we are easily talking about a 5x loss of efficiency. At 1Gbit probably the gap is a bit smaller, also because a lot of low-end device have severe bus bandwidth limitations. I would be interested in seeing what kind of performance you get on your openwrt box with the following commands 1. just a sender on a software switch pkt-gen -i vale0:a -f tx 2. sender and receiver on a software switch pkt-gen -i vale0:a -f tx & pkt-gen -i vale0:b -f rx & 3. sender and receiver on a netmap pipe pkt-gen -i vale0:x{0 -f tx & pkt-gen -i vale0:x}0 -f rx & 4. sending on a physical device (make sure something is attached to the output port. Also this is tricky because many openwrt boxes have a switch on the output so you need to use a unicast destination MAC address) pkt-gen -i eth0 -f tx -D 00:11:22:33:44:55 cheers luigi > > Thank you for the help! > > > > On 12 June 2014 11:48, Carlos Ferreira wrote: > > > First of all, thank you for the quick answer! > > > > I will try it myself to compile just the netmap module without the drivers > > and report the results back to you. > > > > Once again, thank you! > > > > > > On 12 June 2014 11:41, Luigi Rizzo wrote: > > > >> > >> > >> > >> On Thu, Jun 12, 2014 at 12:35 PM, Carlos Ferreira > >> wrote: > >> > >>> Hello! > >>> > >>> First of all, to Luigi and the dev team, great piece of work that netmap > >>> is! This is a piece of software that I was looking for quite some time. > >>> Your team effort is appreciated! > >>> > >>> Now the question. > >>> I know that this is a FreeBSD mailing list but I was wondering, since you > >>> have a PKGBUILD file for ArchLinux, could someone in your team do the > >>> same > >>> for OpenWRT? Netmap seems to be a piece of software which would come in > >>> handy, to develop applications and protocols for the OpenWRT distro. > >>> Since OpenWRT uses uClib, I don't really know if it is possible to > >>> compile > >>> it. > >>> Help is appreciated! > >>> > >>> > >> ???i expect it will be trivial to compile netmap for openwrt, > >> because it is just a piece of kernel code and the userspace > >> has little or no dependencies. > >> Another story is to write specific netmap extensions for the > >> driver in use -- that might require a little bit of work > >> though not much, knowing the driver. > >> > >> I am afraid we currently we do not have the time and manpower > >> to set up a build environment and give it a try. > >> > >> cheers > >> luigi > >> > >> > > > > > > -- > > > > Carlos Miguel Ferreira > > Researcher at Telecommunications Institute > > Aveiro - Portugal > > Work E-mail - cmf@av.it.pt > > Skype & GTalk -> carlosmf.pt@gmail.com > > LinkedIn -> http://www.linkedin.com/in/carlosmferreira > > > > > > -- > > Carlos Miguel Ferreira > Researcher at Telecommunications Institute > Aveiro - Portugal > Work E-mail - cmf@av.it.pt > Skype & GTalk -> carlosmf.pt@gmail.com > LinkedIn -> http://www.linkedin.com/in/carlosmferreira > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"