High TCP connect timeout rate questions
15/05/2018 14:54

-- - Kyle
Source is Usenet: comp.unix.solaris
Sign in to add a comment
Answer score: 5

Below is a script I use when setting up web servers (Sol 10) which seems to increase throughput - YMMV of course, and I wouldn't blindly apply the script, take some time to work through it and identify if it would be useful to you. Some features may not work on older Solaris versions, again YMMV.
http://docs.sun.com/app/docs?q=tunable+parameters+solaris is very useful.
#!/bin/sh # # S70stacktune # v 1.22 25/2/2006 SamN # Tune TCP stack on busy Solaris 10 boxes.
fill () { awk '{leninput=length($($NF)); fill=63-leninput ; for (i=1; i< fill; i++) fillchar=fillchar. ; printf $($NF) fillchar}' } setparams () { VAL=`/usr/sbin/ndd -set $1 $2 $3` printf Value of $1 $2 is: | fill printf ${VAL} ($3) } # Set the tcp time wait interval printf Set the tcp time wait interval setparams /dev/tcp tcp_time_wait_interval 60000 # Speed up the flushing of half-closed connection in state FIN_WAIT_2 printf Flushing of half-closed connection in state FIN_WAIT_2 setparams /dev/tcp tcp_fin_wait_2_flush_interval 67500ms # Set the receive and transmit window sizes printf Set the receive and transmit window sizes setparams /dev/tcp tcp_xmit_hiwat 400000 setparams /dev/tcp tcp_recv_hiwat 400000 # Set number of half-open connections printf Set number of half-open connections setparams /dev/tcp tcp_conn_req_max_q0 102400 # Set number of simultaneous connections printf Set number of simultaneous connections setparams /dev/tcp tcp_conn_req_max_q 102400 # Set the maximum buffer size printf Set the maximum buffer size setparams /dev/tcp tcp_max_buf 4194304 # Set the tcp time wait interval printf Set the tcp time wait interval setparams /dev/tcp tcp_time_wait_interval 60000 # Set TCP connection abort interval printf Set TCP connection abort interval setparams /dev/tcp tcp_ip_abort_interval 60000 # Set congestion window size printf Set congestion window size setparams /dev/tcp tcp_cwnd_max 2097152 # Set TCP Keepalive Interval printf Set TCP Keepalive Interval setparams /dev/tcp tcp_keepalive_interval 60000 printf Ok, tuning complete
Source is Usenet: comp.unix.solaris
Sign in to add a comment
Answer score: 5

-- - Kyle
Source is Usenet: comp.unix.solaris
Sign in to add a comment
Answer score: 5

/dev/tcp tcp_conn_req_max_q0 - unestablished connection queue (incomplete handshake) /dev/tcp tcp_conn_req_max_q - established connection queue Are two parameters that you can tune in order to increase the queue sizes.
http://www.informit.com/articles/article.asp?p=101138&seqNum=5&rl=1 has more info - it seems to be a pretty good article.
cheers Sam
Source is Usenet: comp.unix.solaris
Sign in to add a comment
Answer score: 5

[ script snipped ] This looks very helpful.
Yes, I read a good amount on docs.sun.com and Google groups when this occured. But I can't find a definitive answer to what actually occurs, if anything, when the error is issued and what increments the above counters in netstat. Any idea? Thanks.
-- - Kyle
Source is Usenet: comp.unix.solaris
Sign in to add a comment