Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2004 06:43:14 -0800 (PST)
From:      Arne "Wörner" <arne_woerner@yahoo.com>
To:        freebsd-performance@freebsd.org
Subject:   Re: I've ran out of ideas
Message-ID:  <20041122144314.75061.qmail@web41208.mail.yahoo.com>
In-Reply-To: <18f60194041121222468ea996e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041122144314.75061.qmail>