Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Mar 1998 01:53:52 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        luigi@labinfo.iet.unipi.it (Luigi Rizzo)
Cc:        marcs@znep.com, hackers@FreeBSD.ORG
Subject:   Re: kernel wishlist for web server performance
Message-ID:  <199803090153.SAA12797@usr08.primenet.com>
In-Reply-To: <199803080416.FAA04413@labinfo.iet.unipi.it> from "Luigi Rizzo" at Mar 8, 98 05:16:46 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803090153.SAA12797>