Netgraph performance question
Ruslan Ermilov
ru at freebsd.org
Fri Feb 4 15:53:57 PST 2005
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 at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20050205/f65b613d/attachment.bin
More information about the freebsd-net
mailing list