From owner-freebsd-questions Thu Jun 27 3: 3:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from breaker.dakotacom.net (breaker.dakotacom.net [208.235.160.21]) by hub.freebsd.org (Postfix) with ESMTP id 93D5A37B405 for ; Thu, 27 Jun 2002 03:03:14 -0700 (PDT) Received: from jimws (tuc-140.dakotacom.net [208.211.28.152] (may be forged)) by breaker.dakotacom.net (8.12.2/x.y.z) with SMTP id g5RA3Ci8001946 for ; Thu, 27 Jun 2002 03:03:12 -0700 (MST) X-Sent-Via: DakotaCom.NET Message-ID: <001401c21dc1$896e5c40$981cd3d0@jimws> From: "JimBodkins (Dakotacom)" To: Subject: Re: best advice/tips for a new high-traffic webserver install? Date: Thu, 27 Jun 2002 03:00:58 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I had an experience with a database server (Interbase) involving very poor net performance when connected to a Windows TCP Client and discovered that by launching it (Interbase on the FreeBSD server) with the following code #include #include #include #include #include #include void main(int argc, char *argv[]) { int value = 1; setsockopt(0, IPPROTO_TCP, TCP_NODELAY, (char *)&value, sizeof(int)); setsockopt(1, IPPROTO_TCP, TCP_NODELAY, (char *)&value, sizeof(int)); setsockopt(2, IPPROTO_TCP, TCP_NODELAY, (char *)&value, sizeof(int)); execl(argv[1], NULL); } The problem was resolved. I havent tried this approach with any webservers however. Apparently, there are legacy issues with early (probably win95 era) windows TCP Stacks that FreeBSD responds too conservatively to IMO. The difference in performance on FreeBSD 4.2 was remarkable. Jim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message