dslreports logo
 
    All Forums Hot Topics Gallery
spc
uniqs
30

Steve
I know your IP address

join:2001-03-10
Tustin, CA

Steve to shdesigns

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

shdesigns
Powered By Infinite Improbabilty Drive
Premium Member
join:2000-12-01
Stone Mountain, GA
(Software) pfSense
ARRIS SB6121

1 edit

shdesigns

Premium Member

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.