Date: Thu, 27 Aug 1998 14:27:34 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Julian Elischer <julian@whistle.com> Cc: net@FreeBSD.ORG Subject: Re: Next big network patch: specialized sosend for TCP Message-ID: <199808271827.OAA10118@khavrinen.lcs.mit.edu> In-Reply-To: <Pine.BSF.3.95.980827105010.3468C-100000@current1.whistle.com> References: <199808270155.VAA07365@khavrinen.lcs.mit.edu> <Pine.BSF.3.95.980827105010.3468C-100000@current1.whistle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Thu, 27 Aug 1998 10:57:57 -0700 (PDT), Julian Elischer <julian@whistle.com> said: > On Wed, 26 Aug 1998, Garrett Wollman wrote: > can be rewritten to: >> + if (resid >= MINCLSIZE) { >> + MCLGET(m, M_WAIT); >> + if (m->m_flags & M_EXT) >> + mlen = MCLBYTES; >> + } >> + len = min(min(mlen, resid), space); There's a lot more work to be done in here. For example, one of the things I'd like to see is whether sucking the data in MSS-sized chunks helps or hurts us. I think we may also see a win by aligning short packets against the end of the mbuf, so that when TCP m_prepend()s its headers, it doesn't need to allocate another buffer. (This is still really klugey; hopefully I'll get a chance to finish my UDP work which is much more fully-formed.) -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808271827.OAA10118>