From owner-cvs-ports@FreeBSD.ORG Sun Nov 16 10:25:13 2003 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97A0B16A4D1 for ; Sun, 16 Nov 2003 10:25:13 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6540043FB1 for ; Sun, 16 Nov 2003 10:25:10 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 54788 invoked from network); 16 Nov 2003 18:25:09 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 16 Nov 2003 18:25:09 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sun, 16 Nov 2003 12:25:08 -0600 (CST) From: Mike Silbersack To: Alexey Dokuchaev In-Reply-To: <20031115102127.GA14554@regency.nsu.ru> Message-ID: <20031116121934.B2192@odysseus.silby.com> References: <200311141832.hAEIWnpb056798@repoman.freebsd.org> <20031115102127.GA14554@regency.nsu.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-ports@freebsd.org cc: Mike Silbersack cc: cvs-all@freebsd.org cc: ports-committers@freebsd.org Subject: Re: cvs commit: ports/www/thttpd/files patch-mmc.c X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2003 18:25:13 -0000 On Sat, 15 Nov 2003, Alexey Dokuchaev wrote: > BTW, is there any place/docs I can read about pros/cons USE_SENDFILE > yields me? > > Thanks! > > ./danfe I can give you a quick overview: Pros: - It's slightly more efficient with system resources. Cons: - You need to tune sfbufs rather than mbufs, so it requires a bit more skill to tune at the moment. - Sendfile is slightly less efficient at sending small files (for now.) - The thttpd sendfile support is rather experimental right now. So, given that thttpd is very efficient without sendfile support compiled in, it's not worth worrying about using sendfile with it yet. Once I finish importing some of the DeBox project's changes to sendfile, then there will be substantial benefits to using sendfile. Mike "Silby" Silbersack