From owner-freebsd-hackers Sun Mar 8 17:55:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA20015 for freebsd-hackers-outgoing; Sun, 8 Mar 1998 17:55:43 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA19902 for ; Sun, 8 Mar 1998 17:53:57 -0800 (PST) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id SAA07098; Sun, 8 Mar 1998 18:53:56 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp03.primenet.com, id smtpd007077; Sun Mar 8 18:53:55 1998 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id SAA12797; Sun, 8 Mar 1998 18:53:52 -0700 (MST) From: Terry Lambert Message-Id: <199803090153.SAA12797@usr08.primenet.com> Subject: Re: kernel wishlist for web server performance To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Mon, 9 Mar 1998 01:53:52 +0000 (GMT) Cc: marcs@znep.com, hackers@FreeBSD.ORG In-Reply-To: <199803080416.FAA04413@labinfo.iet.unipi.it> from "Luigi Rizzo" at Mar 8, 98 05:16:46 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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...) To save the copy from the backing object to the mbuf, I'm betting. A lot of NT products use TransmitFile() to avoid the overhead involves in the way most WinSock implementations operate (the last NT product I worked on used this, in fact). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message