From owner-freebsd-net Mon Jun 24 10:33:46 2002 Delivered-To: freebsd-net@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 46ECD37B40C; Mon, 24 Jun 2002 10:33:05 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id A29CCAE147; Mon, 24 Jun 2002 10:33:05 -0700 (PDT) Date: Mon, 24 Jun 2002 10:33:05 -0700 From: Alfred Perlstein To: Mike Silbersack Cc: Andre Oppermann , "Kenneth D. Merry" , net@freebsd.org, current@freebsd.org Subject: Re: zero copy code checkin in 2 days, new snapshot Message-ID: <20020624173305.GW53232@elvis.mu.org> References: <3D1752CC.B21627F1@tix.ch> <20020624122147.G53369-100000@patrocles.silby.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020624122147.G53369-100000@patrocles.silby.com> User-Agent: Mutt/1.3.27i 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 * Mike Silbersack [020624 10:24] wrote: > > On Mon, 24 Jun 2002, Andre Oppermann wrote: > > > Mike Silbersack wrote: > > > Cool, thttpd / others should benefit greatly then. > > > > The last time I checked thttpd didn't even use sendfile(2). It does > > use accf_http(9). Maybe kqueue(2) could speed it up further. > > > > -- > > Andre > > I thought that thttpd used kqueue (as of recent versions), and write()s > from mmap'd files. I could be wrong, of course. (The program seems to > evolve relatively quickly.) I submitted some patches to use sendfile(2) that weren't accepted for some reason. It's not too hard, you just have to adjust the code not to close(2) the descriptors and make the mmap() function a stub type thing. really out of date... http://people.freebsd.org/~alfred/thttpd/thttpd-sendfile-acceptfilter.diff -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message