From owner-freebsd-stable Fri Jul 26 10:44:29 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3612937B400 for ; Fri, 26 Jul 2002 10:44:27 -0700 (PDT) Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EB3643E3B for ; Fri, 26 Jul 2002 10:44:26 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from sec.codefab.com ([12.88.87.166]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020726174424.XRFD2117.mtiwmhc22.worldnet.att.net@sec.codefab.com> for ; Fri, 26 Jul 2002 17:44:24 +0000 Received: from prime (prime.local [192.168.1.3]) by sec.codefab.com (8.12.5/8.12.5) with SMTP id g6QHiMS9087871 for ; Fri, 26 Jul 2002 13:44:23 -0400 (EDT) (envelope-from cswiger@mac.com) Message-ID: <010301c234cc$11726e80$0301a8c0@prime> From: "Charles Swiger" To: References: <200207260656.g6Q6uBY35654@uitm.zenon.net> Subject: Re: RE: Abominable NFSv3 read performance / FreeBSD server / Solaris client Date: Fri, 26 Jul 2002 13:44:17 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: "Andrey Alekseyev" > 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