Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 2006 11:55:41 +0100 (BST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Jochen Kaiser <Jochen.Kaiser@rrze.uni-erlangen.de>
Cc:        freebsd-hackers@freebsd.org, csjp@FreeBSD.org
Subject:   Re: libpcap perf improvement? latest ideas?
Message-ID:  <20061006115301.T43229@fledge.watson.org>
In-Reply-To: <20061005151536.GA25283@devil.rrze.uni-erlangen.de>
References:  <20061005151536.GA25283@devil.rrze.uni-erlangen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Oct 2006, Jochen Kaiser wrote:

> after reading a german master thesis [1] (dated 12/2004) about pcap 
> performance (with comparison of linux and freebsd) I searched freebsd 
> resources for pcap improvements. Unofortunately I did not find any 
> improvements like PF_RING and/or efforts for reducing the number of copy 
> operations from device to user space.
>
> Maybe I think too simple because I don't know how SMP fine locks are 
> influencing this (maybe it is very complex to improve that when you want to 
> avoid side effects.).
>
> Or maybe it is not important at all, because real applications use DAG 
> boards?
>
> I would appreciate any discussion here.
>
> greetings,
> Jochen
>
> [1] www.net.in.tum.de/teaching/projects/docs/schneider_SEP_slides2.ps
> [2] www.endace.com

Quite a bit of work has been done on zero-copy for BPF, but none of it really 
commitable.  Christian Peron (CC'd) and I have been talking about doing 
something that is commitable, but some of the details (such as memory 
ownership) are still very much up in the air.  PF_RING takes an interesting 
approach, and one we should look at, but we'd also like to keep all the 
benefits of BPF rather than discard them, so need to consider how best to 
apply elements of the approach in our context.  I'd like to see something like 
this happen for FreeBSD 7.0, with a possible backport if it goes really well. 
:-)

Robert N M Watson
Computer Laboratory
University of Cambridge



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