dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
9
share rss forum feed


Steve
I know your IP address
Consultant
join:2001-03-10
Foothill Ranch, CA
kudos:5
reply to shdesigns

Re: maximum number of open sockets, files, threads, etc..?

said by shdesigns:

Each socket may gave 256k TX and RX buffers (seems to be default minimum) with file descriptors allocated also.
Can TX and RX buffer sizes be tuned separately? I would think that for web-type service, maxing out the TX buffer and minimizing the RX buffer would make a big diff in scaling.

If they can't be, then this smells like a great optimization to add to the kernel.

Steve
--
Stephen J. Friedl | Unix Wizard | Microsoft Security MVP | Tustin, California USA | my web site


shdesigns
Powered By Infinite Improbabilty Drive
Premium
join:2000-12-01
Stone Mountain, GA
Reviews:
·EarthLink
·Comcast
·Atlantic Nexus

1 edit

said by Steve:

Can TX and RX buffer sizes be tuned separately? I would think that for web-type service, maxing out the TX buffer and minimizing the RX buffer would make a big diff in scaling.

If they can't be, then this smells like a great optimization to add to the kernel.

Steve
/proc/sys/net/ipv4:

tcp_rmem - 4096 87380 16777216
tcp_wmem - 4096 87380 16777216
tcp_mem - 98304 131072 196608

I think those are min/default/max

edit: I bet Apache opens sockets with its own settings.
--
Scott Henion

Embedded Systems Consultant, shenion on #ATU @irc.freenode.net
SHDesigns home