From owner-freebsd-net@FreeBSD.ORG Thu Jan 15 06:30:26 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 0570416A4CE for ; Thu, 15 Jan 2004 06:30:25 -0800 (PST) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B89443D39 for ; Thu, 15 Jan 2004 06:30:24 -0800 (PST) (envelope-from andre@freebsd.org) Received: (qmail 28696 invoked from network); 15 Jan 2004 14:30:23 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.54]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 15 Jan 2004 14:30:23 -0000 Message-ID: <4006A3FF.6061AFB9@freebsd.org> Date: Thu, 15 Jan 2004 15:30:23 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: CHOI Junho References: <20040113.225411.74714267.cjh@kr.FreeBSD.org> <20040115.224407.41715339.cjh@kr.FreeBSD.org> 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 14:30:26 -0000 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. 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. > kern.ipc.maxsockbuf: 67108864 This is way too high. Normally it is 262144 (=256k). Don't do more than 1MByte. > <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. > net.inet.tcp.sendspace: 32768 > net.inet.tcp.recvspace: 16384 It's better to have them both at 65536 (64k). > net.inet.tcp.delayed_ack: 0 It's better to have this turned on. > net.inet.tcp.slowstart_flightsize: 1 You can raise this to 4. > net.inet.tcp.msl: 1000 It's better to have this at 30000. You should change these values and try again. A new tcpdump would be helpful too. -- Andre