From owner-freebsd-net@FreeBSD.ORG Tue Jun 17 11:01:18 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 163CDA8F for ; Tue, 17 Jun 2014 11:01:18 +0000 (UTC) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5ED02196 for ; Tue, 17 Jun 2014 11:01:17 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id k15so9030636qaq.2 for ; Tue, 17 Jun 2014 04:01:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=X+OuG6QIoXcsNtgQn8CFusibRd4tvYtZ/9UcCA3bUxQ=; b=nHHu8SSbg3yOMZY7kVksXzURqL/sw8+N3QyXksISMeymclsQbmNxyrKH62BynM2qM/ AMiGEfqYgDKSLaq5RR7guEAzo4KusT4/EQeCRBt4n0v3qOXQt1lqzyhAScjo4zPw99Pb DuITMVj/q0xQbbpmRG+IayVLmqVpjjKjDH769Tarq8ZRuxOIWthqh/Q/ekFpsoVMfsVv C2eFc/5S1i92kw1ZkaPvd6WDJoS9PfKUNaZ1/UdmWS5Jo1NBEIlyswMhCz0JzDxCE9ae 7U4DHc+HiQ0HTHM1RvQlHMmikUi2tFOBS8WiDA5aqT+JorZaOLcJuFTTqBut5rT5Id5t fFxg== X-Received: by 10.140.41.213 with SMTP id z79mr33138547qgz.20.1403002876921; Tue, 17 Jun 2014 04:01:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.74.69 with HTTP; Tue, 17 Jun 2014 04:00:36 -0700 (PDT) In-Reply-To: References: <20140614101523.GD22187@onelab2.iet.unipi.it> From: Carlos Ferreira Date: Tue, 17 Jun 2014 12:00:36 +0100 Message-ID: Subject: Re: netmap To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 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: Tue, 17 Jun 2014 11:01:18 -0000 Just a remainder, so that the question doesn't get lost in time. On 16 June 2014 16:30, Carlos Ferreira wrote: > Ok, thanks for the enlightenment regarding the loss of performance. > > One question, just to be sure. Does the kernel module contains the VALA > switch code? Or do I need to compile extra code to have the switch working? > Also, where can I find the documentation to use the Vala Switch? > > Once again, thank you for the support. > > > On 14 June 2014 11:15, Luigi Rizzo wrote: > >> 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 < >> carlosmf.pt@gmail.com> >> > >> 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" >> > > > > -- > > 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