Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2001 12:57:44 +0530 (IST)
From:      "Ashutosh S. Rajekar" <asr@softhome.net>
To:        Matt Dillon <dillon@earth.backplane.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: max kernel memory
Message-ID:  <Pine.LNX.4.21.0106201253440.1441-100000@vangogh.indranetworks.com>
In-Reply-To: <200106200704.f5K74M706441@earth.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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