From owner-freebsd-net Thu Feb 27 4:32:50 2003 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 E366537B401 for ; Thu, 27 Feb 2003 04:32:48 -0800 (PST) Received: from daemon.kr.FreeBSD.org (daemon.kr.freebsd.org [211.176.62.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF1E843FD7 for ; Thu, 27 Feb 2003 04:32:47 -0800 (PST) (envelope-from cjh@kr.FreeBSD.org) Received: from gradius.wdb.co.kr (daemon [211.176.62.31]) by daemon.kr.FreeBSD.org (Postfix) with ESMTP id D11418F612; Thu, 27 Feb 2003 21:32:48 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by gradius.wdb.co.kr (8.12.7/8.12.7) with ESMTP id h1RCW38x030403; Thu, 27 Feb 2003 21:32:08 +0900 (KST) (envelope-from cjh@kr.FreeBSD.org) Date: Thu, 27 Feb 2003 21:32:02 +0900 (KST) Message-Id: <20030227.213202.13737180.cjh@kr.FreeBSD.org> To: bra@fsn.hu Cc: net@freebsd.org Subject: Re: Performance tuning hints of gigabit networking? From: CHOI Junho In-Reply-To: References: <20030226.220551.10329540.cjh@kr.FreeBSD.org> <20030227.160757.68128597.cjh@kr.FreeBSD.org> Organization: Korea FreeBSD Users Group X-URL: http://www.kr.FreeBSD.org/~cjh X-Mailer: Mew version 3.2rc1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org From: Attila Nagy 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 KFUG FreeBSD Project Web Data Bank 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