General list for discussing Bufferbloat
 help / color / mirror / Atom feed
From: Luigi Rizzo <rizzo@iet.unipi.it>
To: Stephen Hemminger <shemminger@vyatta.com>
Cc: bloat <bloat@lists.bufferbloat.net>
Subject: Re: [Bloat] high speed networking from userspace
Date: Tue, 13 Mar 2012 20:08:38 +0100	[thread overview]
Message-ID: <20120313190838.GA78827@onelab2.iet.unipi.it> (raw)
In-Reply-To: <20120313090357.2c9ac0db@nehalam.linuxnetplumber.net>

On Tue, Mar 13, 2012 at 09:03:57AM -0700, Stephen Hemminger wrote:
> On Tue, 13 Mar 2012 13:28:52 +0100
> Hagen Paul Pfeifer <hagen@jauu.net> wrote:
> 
> > 
> > On Mon, 12 Mar 2012 17:09:44 -0700, Dave Taht <dave.taht@gmail.com> wrote:
> > 
> > > is the by the same guy that did QFQ, and the results are quite
> > > impressive. He (today) announced support for this interface for Linux.
> > > 
> > > shades of VJ's 'network channels'!
> > 
> > "already" implemented:
> > 
> > see
> > 
> > o http://www.ioremap.net/node/12
> > o http://www.ioremap.net/taxonomy/term/6
> > 
> > and all netdev discussions several years ago.
> > 
> > HGN
> 
> User space networking works well for single application be it routing,
> bridging, network trading, or single appliance. It doesn't work on a
> multi-application environment (ie desktop). The gain is only because
> the userspace code can choose to do less, but do it faster. So if you
> want full stack, and firewall; don't bother.

The firewall is actually one place where an efficient I/O mechanism
is really useful. Netmap (or the netfilter API or netgraph in
FreeBSD, if they were not built on top of skbufs/mbufs) give you
an ideal place to efficiently drop rogue traffic, and reinject the
interesting one in the stack for further processing.

Also the concepts used in netmap (and in VJ's netchannel)
are not confined to userspace networking.
Even in the kernel one can and probably should:

- get rid of skbufs/mbufs even in the kernel (replacing
  them with cheaper containers or data copies)
- do more packet coalescing (software RSC is an example), to amortize
  certain costs over larger batches;
- move work away from the interrupt/polling threads and closer 
  to the user thread (for better cache locality and load management)
  
The real gain of these mechanisms, i think, is having the option
to avoid costly operations when you don't need them.

That's the message i would like to convey.

Of course everything would be more convincing if i came up
with a full skbuf-less in-kernel stack and not just the
bottom layer+libpcap :)

cheers
luigi

  parent reply	other threads:[~2012-03-13 18:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13  0:09 Dave Taht
2012-03-13  4:15 ` Ketan Kulkarni
2012-03-13  9:26 ` Steinar H. Gunderson
2012-03-13 12:28 ` Hagen Paul Pfeifer
2012-03-13 16:03   ` Stephen Hemminger
2012-03-13 17:39     ` Hagen Paul Pfeifer
2012-03-13 19:08     ` Luigi Rizzo [this message]
2012-03-13 19:16       ` Eric Dumazet
2012-03-13 14:29 Luigi Rizzo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.bufferbloat.net/postorius/lists/bloat.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120313190838.GA78827@onelab2.iet.unipi.it \
    --to=rizzo@iet.unipi.it \
    --cc=bloat@lists.bufferbloat.net \
    --cc=shemminger@vyatta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox