From owner-freebsd-hackers Wed Jun 20 0:22: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ip.eth.net (mail.ip.eth.net [202.9.128.18]) by hub.freebsd.org (Postfix) with ESMTP id 3F71B37B403 for ; Wed, 20 Jun 2001 00:22:04 -0700 (PDT) (envelope-from asr@softhome.net) Received: (apparently) from vangogh.indranetworks.com ([61.11.16.239]) by ip.eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Wed, 20 Jun 2001 12:51:40 +0530 Date: Wed, 20 Jun 2001 12:57:44 +0530 (IST) From: "Ashutosh S. Rajekar" To: Matt Dillon Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: max kernel memory In-Reply-To: <200106200704.f5K74M706441@earth.backplane.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 20 Jun 2001, Matt Dillon wrote: > This is fairly easy to do. You can use SO_SNDBUF and SO_RCVBUF > socket opts to adjust the tcp buffer space. You can make the default > small and receive-centric and when you think you've got a good > connection you can pump it up. > > I used fixed assymetric TCP buffering at BEST - I made the send buffer > a lot bigger then the receive buffer. Or, more to the point, I left > the send buffer pretty much alone and made the receive buffer smaller. True, but what I meant is that the amount of memory required to hold a connection from a client with SYN-ACK-SYNACK already being sent shouldbe really minimal, like around 100 bytes or so ... and this structure is upgraded to look like a socket structure only when the proxy decides that it can take more connections. Otherwise neither are we wasting too much memory, and it won't be really bad to jsut throw away the connection. -ASR --------------------------------------------------------------------- ("`-''-/").___..--''"`-._ (\ Indra Networks Pvt. Ltd `6_ 6 ) `-. ( ).`-.__.`) Pune, INDIA. (_Y_.)' ._ ) `._ `. ``-..-' mailto: asr@softhome.net _..`--'_..-_/ /--'_.' ,' http://www.rajekar.org (il),-'' (li),' ((!.-' http://www.indranetworks.com --------------------------------------------------------------------- Consultant, n.: An ordinary man a long way from home. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message