From owner-freebsd-net@FreeBSD.ORG Mon Jun 16 15:31:41 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 2C6FAD03 for ; Mon, 16 Jun 2014 15:31:41 +0000 (UTC) Received: from mail-qa0-x234.google.com (mail-qa0-x234.google.com [IPv6:2607:f8b0:400d:c00::234]) (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 DD9F32D42 for ; Mon, 16 Jun 2014 15:31:40 +0000 (UTC) Received: by mail-qa0-f52.google.com with SMTP id w8so7511519qac.25 for ; Mon, 16 Jun 2014 08:31:40 -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=4LP7xE1RmlL0u5Tsti6YopJ1p7zCzS6fMxShU7qlBb8=; b=BM6Tfbg/ZTjgEbQ/ltxhrSMhUlIzL1HuD4ce11Ircxn3v1pdg6k8J1fCQ7I9OPZF6/ bxwU6KP4orprhTjSqJnm/AFsNkSWX1/4hCtVs+k0LF3d0bQoS8EjEo7+OokZp3oINawc pJ6A0UH7xcC2uhvKFlTZE/n/bTHj748qxSrIEB3uw83f2bw9rdjwgGSEUo8HCIvlfGZS 6/g+IJsy2v7MsYFZoMOMgfbPA1X3ML8T6s+DpJ4YBkxwaW9wbXswOC699TBYfoUporL3 CSfSVggS/B4FB3wUIJYV9DLZkVVo/g1oj+TTZmmHY1kYil/KrlGO+mYbBncE3+kpyzM2 KsbA== X-Received: by 10.224.166.9 with SMTP id k9mr27357292qay.25.1402932699944; Mon, 16 Jun 2014 08:31:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.74.69 with HTTP; Mon, 16 Jun 2014 08:30:59 -0700 (PDT) In-Reply-To: <20140614101523.GD22187@onelab2.iet.unipi.it> References: <20140614101523.GD22187@onelab2.iet.unipi.it> From: Carlos Ferreira Date: Mon, 16 Jun 2014 16:30:59 +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: Mon, 16 Jun 2014 15:31:41 -0000 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