Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Dec 2004 16:48:35 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Andre Oppermann <andre@freebsd.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Rewritten TCP reassembly
Message-ID:  <16830.3635.392271.923345@grasshopper.cs.duke.edu>
In-Reply-To: <41BE0ADA.9A1EE748@freebsd.org>
References:  <41BA0088.9000107@freebsd.org> <41BDD1C7.7060105@freebsd.org> <16830.1004.797220.47672@grasshopper.cs.duke.edu> <41BE0ADA.9A1EE748@freebsd.org>

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

Andre Oppermann writes:

 > 
 > I have already the next round in the works which is optimized even more
 > by merging consecutive mbuf chains together (at the moment I have packet
 > segment chains which have a direct pointer to the mbuf at the end of the
 > chain) and which get passed in one go to soappend_stream.  This removes
 > the "present" loop and simplifies the general code a bit more again.

Great..  I've been a little busy, and have only run tests -- I haven't
even looked at the code ;)

 > With this and two other optimizations I have in mind you should be able
 > to get very close to the theoretical maximum bandwidth of your current
 > 4Gig Myrinet cards.
 > 
 > There are a couple of other TCP tweaks that would help your special case
 > some more now though.

FWIW, the out-of-order frames are a firmware bug that we hope to fix
soon.  Its just icing on the cake that the bug makes such a nice test
case for you ;)

With no copy overhead (kttcp), 3.95Gb/sec is easily achievable,
even in 5-stable with the old TCP reassembly code.  

Drew



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