From owner-freebsd-performance@FreeBSD.ORG Mon Nov 22 14:43:15 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 24D7A16A4CE for ; Mon, 22 Nov 2004 14:43:15 +0000 (GMT) Received: from web41208.mail.yahoo.com (web41208.mail.yahoo.com [66.218.93.41]) by mx1.FreeBSD.org (Postfix) with SMTP id E7C7143D2D for ; Mon, 22 Nov 2004 14:43:14 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 75063 invoked by uid 60001); 22 Nov 2004 14:43:14 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=nn0mBf7xoEeIQlIILt7qxWDyAbDKgcqrzTQbrOEwxZXvcpVIzRAmd/SYrezAGw7k9LU+SxY2E6igaCZf6mW/ppYYGT+M5hlS7bI0U1Xcc52OivaPwrLka9C/HoctviynLxUH3OWpGgBWhEoz2Fu1PRvSOMkBO9dslJ8BtF2ac3o= ; Message-ID: <20041122144314.75061.qmail@web41208.mail.yahoo.com> Received: from [83.129.242.96] by web41208.mail.yahoo.com via HTTP; Mon, 22 Nov 2004 06:43:14 PST Date: Mon, 22 Nov 2004 06:43:14 -0800 (PST) From: Arne "Wörner" To: freebsd-performance@freebsd.org In-Reply-To: <18f60194041121222468ea996e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Mon, 22 Nov 2004 14:43:15 -0000 > Can't remember if I posted this to the list, but I ftp'ed /dev/zero > from another box on another subnet two switches away at 93Mbps > sustained (for three minutes). The cable, network card, network > driver, and network I/O is fine. I'm positive I'm hitting the > limitations of Apache or thttpd - but I don't know why. > > Any trace'ing tips, perhaps? > Hmm. You could try to run thttpd without the sendfile-syscall (which is suspicious to me, because I did not know it before): > cd /usr/ports/www/thttpd > make configure > vi work/thttpd-2.25b/config.h [remove the line, that contains USE_SENDFILE] > make > nm work/thttpd-2.25b/thttpd.o | grep sendfile | wc -l [the result should be "0"] Since thttpd tries to throttle for some reason (I thought the OS would slow down some send requests by inserting packets of other send requests; or isn't there time sharing in the ethernet drivers?), it might be interesting (a) to increase the values for max_bytes in lines 1740, or (b) to use just one single HTTP connection during the test phase (in that case throttling should be disabled)... -Arne __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com