Date: Thu, 27 Feb 2003 21:32:02 +0900 (KST) From: CHOI Junho <cjh@kr.FreeBSD.org> To: bra@fsn.hu Cc: net@freebsd.org Subject: Re: Performance tuning hints of gigabit networking? Message-ID: <20030227.213202.13737180.cjh@kr.FreeBSD.org> In-Reply-To: <Pine.LNX.4.53.0302271118030.6884@scribble.fsn.hu> References: <20030226.220551.10329540.cjh@kr.FreeBSD.org> <20030227.160757.68128597.cjh@kr.FreeBSD.org> <Pine.LNX.4.53.0302271118030.6884@scribble.fsn.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Attila Nagy <bra@fsn.hu> Subject: Re: Performance tuning hints of gigabit networking? Date: Thu, 27 Feb 2003 11:18:48 +0100 (CET) > Hello, > > > 3. Usually thttpd use mmap() for caching contents in memory. Our > > service file(only static files) varies from 10k ~ > > 300Mbytes. Sometimes thttpd denies request with 500 internal error, > > resetting mmap() buffers. > I faced that problem years ago, contacted the authour, who said: > "don't serve big files with thttpd, use something else" Yes. thttpd tries to mmap() everything, when memory is full, it releases all mmap()'ed entries, and reload again. That's why I try thttpd patched to use sendfile() instead of mmap(). -- CHOI Junho <http://www.kr.FreeBSD.org/~cjh> KFUG <cjh at kr.FreeBSD.org> FreeBSD Project <cjh at FreeBSD.org> Web Data Bank <cjh at wdb.co.kr> Key fingerprint = 1369 7374 A45F F41A F3C0 07E3 4A01 C020 E602 60F5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030227.213202.13737180.cjh>