Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jul 2002 13:44:17 -0400
From:      "Charles Swiger" <cswiger@mac.com>
To:        <stable@FreeBSD.ORG>
Subject:   Re: RE: Abominable NFSv3 read performance / FreeBSD server / Solaris client
Message-ID:  <010301c234cc$11726e80$0301a8c0@prime>
References:  <200207260656.g6Q6uBY35654@uitm.zenon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
From: "Andrey Alekseyev" <uitm@zenon.net>
> The only settings applied to Solaris tcp stack are:
>
> /usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q0 1024
> /usr/sbin/ndd -set /dev/tcp tcp_xmit_hiwat 49152
> /usr/sbin/ndd -set /dev/tcp tcp_recv_hiwat 49152

For what it's worth, here's Solaris settings tuned for the exact opposite of the
current situation:

# Network tuning for web servers
/usr/sbin/ndd -set /dev/ip ip_path_mtu_discovery 1
/usr/sbin/ndd -set /dev/ip ip_respond_to_echo_broadcast 0
/usr/sbin/ndd -set /dev/ip ip_icmp_err_interval 50
/usr/sbin/ndd -set /dev/tcp tcp_deferred_ack_interval 300
/usr/sbin/ndd -set /dev/tcp tcp_ip_abort_cinterval 10000
/usr/sbin/ndd -set /dev/tcp tcp_recv_hiwat 32768
/usr/sbin/ndd -set /dev/tcp tcp_xmit_hiwat 32768
/usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q 512
/usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q0 1024
/usr/sbin/ndd -set /dev/tcp tcp_slow_start_initial 2
/usr/sbin/ndd -set /dev/tcp tcp_time_wait_interval 3000

This was tuned for a webserver handling 2+ million hits per day, with a
substantial portion of the userbase connecting over 56K modem dialups.
Specificly, this reduced the number of retransmitted bytes by nearly an order of
magnitude.  (The machine retransmitted bytes at a 2+:1 ratio with the default
Solaris network stack, which was obviously tuned toward LAN performance.)

Note that the 'tcp_slow_start_initial' knob is intended to make Solaris work
around a performance problem in M$'s implementation of TCP slow start.  I don't
remember enough about the issue to be certain of how relevant it is here, but
some of the other settings might be worth tweaking, too.

-Chuck



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010301c234cc$11726e80$0301a8c0>