From owner-freebsd-net Sun Jul 7 21:48:16 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 3386137B406 for ; Sun, 7 Jul 2002 21:48:14 -0700 (PDT) Received: from prism.flugsvamp.com (66-191-112-47.mad.wi.charter.com [66.191.112.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69ED843E3B for ; Sun, 7 Jul 2002 21:48:13 -0700 (PDT) (envelope-from jlemon@flugsvamp.com) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.6/8.11.6) id g684l2t01700; Sun, 7 Jul 2002 23:47:02 -0500 (CDT) (envelope-from jlemon) Date: Sun, 7 Jul 2002 23:47:02 -0500 (CDT) From: Jonathan Lemon Message-Id: <200207080447.g684l2t01700@prism.flugsvamp.com> To: silby@silby.com, net@freebsd.org Subject: Re: the incredible shrinking socket X-Newsgroups: local.mail.freebsd-net In-Reply-To: References: Organization: Cc: 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 In article you write: > >On Sun, 7 Jul 2002, Alfred Perlstein wrote: > >> Possibly, but the additional pointer dereference would be expensive >> and a lot of code would have to change without the compatibility >> macros. >> >> I sort of did it as a proof of concept, but of course since it doesn't >> completely work I haven't proved it. :) >> >> >> -- >> -Alfred Perlstein [alfred@freebsd.org] > >Well, if it's not working I wouldn't worry too much about it. A TIME_WAIT >cache or socket buffer autosizing would probably save a lot more memory. >:) I do have a smaller TIME_WAIT structure done; it even throws the socket away since it isn't needed. The savings are currently about 500 bytes, and I can and also perform some other savings in the general case. I think Alfred was just trying to get his changes done first before I got around to committing what I have. :-) :-) :-) (It's currently in p4) -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message