Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Feb 2005 01:53:54 +0200
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Guy Helmer <ghelmer@palisadesys.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Netgraph performance question
Message-ID:  <20050204235354.GB95344@ip.net.ua>
In-Reply-To: <4203EC87.3070504@palisadesys.com>
References:  <4203AAE3.4090906@palisadesys.com> <20050204204804.GC71363@ip.net.ua> <4203EC87.3070504@palisadesys.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Fri, Feb 04, 2005 at 03:43:35PM -0600, Guy Helmer wrote:
> 
>    I'm sorry, I mis-wrote.  My ng_tee is actually modified to only passes
>    packets to the r2l/l2r hooks if they are connected, otherwise packets are
>    passed directly to the left/right hooks (so it's an optional divert),  so
>    there is no m_dup anymore in my modified ng_tee.
> 
>    I assumed that the bridging and trip through userland would only add
>    latency to the connection, but the result of the performance test seemed
>    to indicate that there is either a bottleneck I need to solve or my
>    testing methodology was flawed.
> 
If you pass packets through userland, then it is even more performance
penalty, as it involves userspace<->kernel copying, twice for each
packet.


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFCBAsSqRfpzJluFF4RAqcOAJ92ljJSEZuaCfl/8ctSiwHDYPtSjwCfR2iy
LcGhfyrptuZdWkskbonwoDo=
=YWuj
-----END PGP SIGNATURE-----

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