From owner-freebsd-net Mon Jul 8 10:55:42 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA77637B401 for ; Mon, 8 Jul 2002 10:55:38 -0700 (PDT) Received: from tesla.distributel.net (nat.MTL.distributel.NET [66.38.181.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id E448C43E42 for ; Mon, 8 Jul 2002 10:55:37 -0700 (PDT) (envelope-from bmilekic@unixdaemons.com) Received: (from bmilekic@localhost) by tesla.distributel.net (8.11.6/8.11.6) id g68HwJE09811; Mon, 8 Jul 2002 13:58:19 -0400 (EDT) (envelope-from bmilekic@unixdaemons.com) Date: Mon, 8 Jul 2002 13:58:19 -0400 From: Bosko Milekic To: Jonathan Lemon Cc: Luigi Rizzo , Mike Silbersack , Alfred Perlstein , net@FreeBSD.ORG Subject: Re: the incredible shrinking socket Message-ID: <20020708135819.A9714@unixdaemons.com> References: <20020708013907.J15265-100000@patrocles.silby.com> <20020708115539.D18260-100000@patrocles.silby.com> <20020708101636.A71846@iguana.icir.org> <20020708132214.A9544@unixdaemons.com> <20020708102937.A75756@iguana.icir.org> <20020708123757.T1020@prism.flugsvamp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020708123757.T1020@prism.flugsvamp.com>; from jlemon@flugsvamp.com on Mon, Jul 08, 2002 at 12:37:57PM -0500 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Jul 08, 2002 at 12:37:57PM -0500, Jonathan Lemon wrote: > On Mon, Jul 08, 2002 at 10:29:37AM -0700, Luigi Rizzo wrote: > > On Mon, Jul 08, 2002 at 01:22:14PM -0400, Bosko Milekic wrote: > > ... > > > > > Speaking of competition, someone should go look at this: > > > > > > > > > > http://mail-index.netbsd.org/current-users/2002/07/03/0011.html > > > > > > > > UDP sockets have the same problem... i posted patches for that > > > > case around dec.2000 which i never ended up committing. > > > > > > I spent a half-hour trying to dig for that thread. Do you recall what > > > the subject of it was? When I saw this come up on DaemonNews, the > > > > it was "[patch] fast sbappend*, please try..." > > see > > > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=366972+0+archive/2001/freebsd-net/20010211.freebsd-net > > > > jlemon had an amended patch for that. > > I think we should revisit this keeping in mind the tcp case as well. > > I still have the amended patch in my tree, I'll dig it out this week. Luigi also mentionned at the end of the discussion that it would be worthwhile to - besides for just keeping a pointer to the last mbuf in the sockbuf - keep a pointer to the last mbuf in the packet. Maybe this pointer could be stashed in the m_pkthdr struct. > -- > Jonathan Regards, -- Bosko Milekic bmilekic@unixdaemons.com bmilekic@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message