Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Apr 2001 12:09:26 -0500 (CDT)
From:      Mike Silbersack <silby@silby.com>
To:        <niek@bergboer.net>
Cc:        Alfred Perlstein <bright@wintelcom.net>, <freebsd-hackers@freebsd.org>
Subject:   Re: UFS block size vs. write speed
Message-ID:  <Pine.BSF.4.31.0104231207360.1931-100000@achilles.silby.com>
In-Reply-To: <20010423134554.A57241@wit379119.student.utwente.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

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 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?Pine.BSF.4.31.0104231207360.1931-100000>