Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2002 03:00:58 -0700
From:      "JimBodkins (Dakotacom)" <bodkins@prologic.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: best advice/tips for a new high-traffic webserver install?
Message-ID:  <001401c21dc1$896e5c40$981cd3d0@jimws>

next in thread | raw e-mail | index | archive | help
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 <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001401c21dc1$896e5c40$981cd3d0>