From owner-freebsd-net@FreeBSD.ORG Tue Jan 13 05:55:37 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1617D16A4CE for ; Tue, 13 Jan 2004 05:55:37 -0800 (PST) Received: from daemon.kr.FreeBSD.org (daemon.kr.freebsd.org [61.78.53.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id C613243D1F for ; Tue, 13 Jan 2004 05:55:34 -0800 (PST) (envelope-from cjh@kr.FreeBSD.org) Received: from localhost (gradius [211.44.63.164]) by daemon.kr.FreeBSD.org (Postfix) with ESMTP id ACDD01A735 for ; Tue, 13 Jan 2004 22:54:06 +0900 (KST) Date: Tue, 13 Jan 2004 22:54:11 +0900 (KST) Message-Id: <20040113.225411.74714267.cjh@kr.FreeBSD.org> To: freebsd-net@freebsd.org From: CHOI Junho Organization: Korea FreeBSD Users Group X-URL: http://www.kr.FreeBSD.org/~cjh X-Mailer: Mew version 4.0.62 on Emacs 21.3.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: FreeBSD -> Windows HTTP TCP performance X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 13:55:37 -0000 Hi, Our company's web service has noticable difference serving Windows HTTP clients(IE) (98, 2000, XP). It is relatively slow comparing Windows -> Windows case. - FreeBSD(4.7,4.8,4.9) thttpd/apache/builtin ftpd -> Windows 2000 : 300-800Kbytes/sec - Windows 2000 IIS(no optimization) -> Windows 2000 : 800k - 1.1Mbytes/sec HTTP request is plain file transfer(around 10-20Mbytes). XP client was very bad result, about 300-400Kbytes/sec for FreeBSD server. Our servers are in data center, and client PC has 10M connection. At first I suspected network environment of server and client, but two servers(FreeBSD, windows) are on the same subnet and link type(1000SX), hardware, server load, etc. so I didn't see any difference between them. With google, I found some info but it doesn't help... (e.g. set tcp sendspace/recvspace to 64k, turn off delayed_ack, turn on rfc1323 knob, or samba SO_SNDBUF optimization). Also, bandwidth test using iperf and ttcp shows almost same bandwidth(8~9Mbit/sec). Can you give me any hints? Here is my sysctl.conf: kern.ipc.nmbclusters="65536" (in /boot/loader.conf.local) net.link.ether.inet.log_arp_wrong_iface=0 kern.ipc.maxsockbuf=67108864 kern.ipc.somaxconn=32768 kern.maxfiles=65536 kern.maxfilesperproc=32768 net.inet.tcp.rfc1323=1 net.inet.tcp.delayed_ack=0 net.inet.tcp.sendspace=65536 net.inet.tcp.recvspace=65536 net.inet.ip.portrange.last=20000 net.inet.ip.portrange.hifirst=40000 net.inet.tcp.msl=1000 net.inet.icmp.drop_redirect=1 net.inet.icmp.log_redirect=0 net.inet.ip.redirect=0 net.inet6.ip6.redirect=0 net.link.ether.inet.max_age=1200 net.inet.ip.sourceroute=0 net.inet.ip.accept_sourceroute=0 net.inet.icmp.bmcastecho=0 net.inet.icmp.maskrepl=0 net.inet.tcp.inflight_enable=1 kern.polling.enable=1