Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 2014 12:15:23 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Carlos Ferreira <carlosmf.pt@gmail.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: netmap
Message-ID:  <20140614101523.GD22187@onelab2.iet.unipi.it>
In-Reply-To: <CAJpYY6VJ9ih1ON1s1mnzrc-P7Xa_vsVS3UC49gnii0cLX%2B=TNA@mail.gmail.com>
References:  <CAJpYY6Wj6NkYVdPzitswLQ2oVoX9JAv5tCnzbP6icsgJTdfm8Q@mail.gmail.com> <CA%2BhQ2%2BhHz2FKUkCRnHiGAVxZqxY5WHPPo87mVgSnSmPzovNLWw@mail.gmail.com> <CAJpYY6V6Ewc%2BXQYBi3BQbFtWgLiFKN_qmBLjAx1HyWhB9Q0vcg@mail.gmail.com> <CAJpYY6VJ9ih1ON1s1mnzrc-P7Xa_vsVS3UC49gnii0cLX%2B=TNA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <carlosmf.pt@gmail.com> 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 <rizzo@iet.unipi.it> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140614101523.GD22187>