From owner-freebsd-hackers Sat Mar 7 21:55:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA07198 for freebsd-hackers-outgoing; Sat, 7 Mar 1998 21:55:23 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA07172 for ; Sat, 7 Mar 1998 21:55:16 -0800 (PST) (envelope-from marcs@znep.com) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.8.7/8.8.7) with UUCP id WAA06843; Sat, 7 Mar 1998 22:55:05 -0700 (MST) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with SMTP id WAA03282; Sat, 7 Mar 1998 22:53:20 -0700 (MST) Date: Sat, 7 Mar 1998 22:53:20 -0700 (MST) From: Marc Slemko To: Luigi Rizzo cc: hackers@FreeBSD.ORG Subject: Re: kernel wishlist for web server performance In-Reply-To: <199803080416.FAA04413@labinfo.iet.unipi.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 8 Mar 1998, Luigi Rizzo wrote: > > Just a few misc comments regarding what I would want in an OS used for a > > high performance web server, for anyone who may be considering > ... > > A sendfile() (eg. HPUX 11.x) or TransmitFile (eg. WinNT) system call. > > The key features are: > > - it can transmit from an arbitrary start position and an > > arbitrary length. Sending starting from the current position > > why do you want it to be a syscall ? Can't you mmap() the file and then > issue a large write() to save the copy ? (and having AIO might also > save you from using a separate thread...) In addition to the other followups I posted on this, see: ftp://ftp.cup.hp.com/dist/networking/briefs/copyavoid.pdf for a few comments on HPUX. This is an old paper so it doesn't talk about sendfile() at all, just about the problems of copy avoidance using write(). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message