From owner-freebsd-hackers Sat Mar 7 21:47:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA05401 for freebsd-hackers-outgoing; Sat, 7 Mar 1998 21:47:02 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id VAA05391 for ; Sat, 7 Mar 1998 21:46:53 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id FAA04413; Sun, 8 Mar 1998 05:16:47 +0100 From: Luigi Rizzo Message-Id: <199803080416.FAA04413@labinfo.iet.unipi.it> Subject: Re: kernel wishlist for web server performance To: marcs@znep.com Date: Sun, 8 Mar 1998 05:16:46 +0100 (MET) Cc: hackers@FreeBSD.ORG In-Reply-To: from "Marc Slemko" at Mar 7, 98 10:13:12 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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...) cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message