On Mon, 23 Apr 2001, Niek Bergboer wrote:

> I've implemented a quick hack on the BSD ftp-client: in the original
> recv-file function data is read from a socket into a buffer, which is
> then written to a file. I've mmap-ed the file, and rather than reading
> from the socket into the buffer, I read directly from the socket into
> the mmaped region. I use the MAP_SHARED and MAP_NOSYNC flags, and
> especially the latter makes a huge difference.

I seem to remember Matt Dillon saying that if you extend a file through
mmap'd writes, it will become very fragmented.  Check the archives for
this mailing list during decemeber or so, I believe the thread had
something to so with usenet servers.

Mike "Silby" Silbersack


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to