From owner-freebsd-performance@FreeBSD.ORG Thu Nov 18 11:02:49 2004 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF6F816A4D0 for ; Thu, 18 Nov 2004 11:02:49 +0000 (GMT) Received: from daemon.kr.FreeBSD.org (www.kr.freebsd.org [211.115.73.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE65F43D31 for ; Thu, 18 Nov 2004 11:02:47 +0000 (GMT) (envelope-from cjh@kr.FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by daemon.kr.FreeBSD.org (Postfix) with ESMTP id 3C2591A6D0; Thu, 18 Nov 2004 20:02:41 +0900 (KST) Received: from daemon.kr.FreeBSD.org ([127.0.0.1]) by localhost (daemon.kr.freebsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 56666-06; Thu, 18 Nov 2004 20:02:37 +0900 (KST) Received: from localhost (gradius [211.44.63.164]) by daemon.kr.FreeBSD.org (Postfix) with ESMTP id 67A0F1A6C9; Thu, 18 Nov 2004 20:02:37 +0900 (KST) Date: Thu, 18 Nov 2004 19:58:54 +0900 (KST) Message-Id: <20041118.195854.85380612.cjh@kr.FreeBSD.org> To: aaron.glenn@gmail.com From: CHOI Junho In-Reply-To: <18f6019404111801471db5bbfd@mail.gmail.com> References: <18f6019404111801471db5bbfd@mail.gmail.com> Organization: Korea FreeBSD Users Group X-URL: http://www.kr.FreeBSD.org/~cjh X-Mailer: Mew version 4.1.50 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at kr.FreeBSD.org cc: freebsd-performance@freebsd.org Subject: Re: I've ran out of ideas X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 11:02:49 -0000 Can you test it on 4.x machines? I think 5.x is not stable/optimized for kqueue operations of thttpd. If you have sufficient(not swapping) memory, you can do 100Mbps/sec easily, as long as on 4.x. And, check several sysctls: somaxconn, mbuf, and polling. From: Aaron Glenn Subject: I've ran out of ideas Date: Thu, 18 Nov 2004 01:47:17 -0800 > I'm pushing large files via thttpd over low-end hardware (celeron > 1.8GHz, 512MB RAM, UATA 100 drive) and, out of the box, FreeBSD > 5.3-RELEASE topped out at 40Mbps sustained. After creating a separate > partition with a much larger blocksize, it's hit 50Mbps sustained but > won't go past 54Mbps at all. > > iostat shows the drive pushing 3.5MB/s pretty consistently. There are > on average 750 http connections. Interrupts take 12% of the CPU, > according to top, and another 2% for thttpd itself. The box doesn't > swap. > > My dmesg is inexplicably gone...which I realize is going to seriously > hamper any constructive input. It is an fxp card, and the IDE > controller is a generic Intel controller (the motherboard is an old > gateway desktop pull). The /var/log/messages file is filled with: > > Nov 18 04:00:15 d thttpd[38743]: write - Socket is not connected > sending /path/to/file.name > > I'd like to know what else I can to do maximize raw network I/O. I > don't see why this box can't push 90Mbps. My good friend, colleague, > and Linux zealot, is eating this up. (-: > > Regards, > aaron.glenn > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org" -- CHOI Junho cjh@[kr.]FreeBSD.org Key fingerprint = 1369 7374 A45F F41A F3C0 07E3 4A01 C020 E602 60F5