From owner-freebsd-net@FreeBSD.ORG Thu Jan 15 07:05:27 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 BEA1B16A4CE; Thu, 15 Jan 2004 07:05:27 -0800 (PST) Received: from daemon.kr.FreeBSD.org (daemon.kr.freebsd.org [61.78.53.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC24D43D1D; Thu, 15 Jan 2004 07:05:25 -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 F12D81A704; Fri, 16 Jan 2004 00:03:56 +0900 (KST) Date: Fri, 16 Jan 2004 00:04:01 +0900 (KST) Message-Id: <20040116.000401.104115832.cjh@kr.FreeBSD.org> To: andre@freebsd.org From: CHOI Junho In-Reply-To: <4006A3FF.6061AFB9@freebsd.org> References: <20040113.225411.74714267.cjh@kr.FreeBSD.org> <20040115.224407.41715339.cjh@kr.FreeBSD.org> <4006A3FF.6061AFB9@freebsd.org> Organization: Korea FreeBSD Users Group X-URL: http://www.kr.FreeBSD.org/~cjh X-Mailer: Mew version 4.0.64 on Emacs 21.3.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: 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: Thu, 15 Jan 2004 15:05:27 -0000 From: Andre Oppermann Subject: Re: FreeBSD -> Windows HTTP TCP performance Date: Thu, 15 Jan 2004 15:30:23 +0100 > CHOI Junho wrote: > > > > For those who interested, I made packet dump file: > > > > http://www.kr.freebsd.org/~cjh/misc/freebsd-net/ > > > > Best thing is do tcpdump at client machine but I have no admin > > permission, so failed. > > I can't read the dump files with ethereal, it says they are corrupt. > file *.tcpdump test-fbsd.tcpdump: tcpdump capture file (little-endian) - version 2.4 (Ethernet, capture length 120) test-w2k.tcpdump: tcpdump capture file (little-endian) - version 2.4 (Ethernet, capture length 120) I can read these files with 'tcpdump -r '. They are captured with 'tcpdump -w -p -v -s 120 -n -l host '. > But lets go through your sysctl settings: > > > kern.clockrate: { hz = 2000, tick = 500, ... > > HZ should not be higher than 1000 or you get problems with some > tcp timers. OK. > > kern.ipc.maxsockbuf: 67108864 > > This is way too high. Normally it is 262144 (=256k). Don't do > more than 1MByte. OK. > > <118>Jan 12 13:06:21 kt-down3 thttpd[37449]: accept - Software caused connection abort > > <118>Jan 12 13:21:00 kt-down3 thttpd[37449]: mmc panic - freeing 49 unreferenced maps > > <118>Jan 12 13:22:49 kt-down3 thttpd[37449]: mmc panic - freeing 49 unreferenced maps > > <118>Jan 12 13:31:18 kt-down3 thttpd[37449]: mmc panic - freeing 45 unreferenced maps > > <118>Jan 12 13:33:12 kt-down3 thttpd[37449]: mmc panic - freeing 110 unreferenced maps > > This doesn't look good. You should find out why thttpd is complaining. This thttpd is my custom version... it is some kind of debugging(periodical garbage collection). > > net.inet.tcp.sendspace: 32768 > > net.inet.tcp.recvspace: 16384 > > It's better to have them both at 65536 (64k). OK. > > net.inet.tcp.delayed_ack: 0 > > It's better to have this turned on. Some people or webpage recommends turning off delayed_ack for Windows clients. Which is true? > > net.inet.tcp.slowstart_flightsize: 1 > > You can raise this to 4. OK. > > net.inet.tcp.msl: 1000 > > It's better to have this at 30000. OK. > You should change these values and try again. A new tcpdump would be > helpful too. Thank you! I'll try with new tuned parameters. -- CHOI Junho KFUG FreeBSD Project Web Data Bank Key fingerprint = 1369 7374 A45F F41A F3C0 07E3 4A01 C020 E602 60F5