Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 1996 09:23:42 -0500 (EST)
From:      "John S. Dyson" <toor@dyson.iquest.net>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        jkh@time.cdrom.com, cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-sys@freefall.freebsd.org, dyson@freefall.freebsd.org
Subject:   Re: cvs commit: src/sys/ufs/ufs ufs_readwrite.c
Message-ID:  <199612111423.JAA03249@dyson.iquest.net>
In-Reply-To: <199612110216.NAA27773@godzilla.zeta.org.au> from "Bruce Evans" at Dec 11, 96 01:16:28 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> There are a number of clones of the cmp and cp code in the tree.  E.g.,
> xinstall.c has a version of cmp with an arbitrary 8MB limit like cp.
> It's not clear that the mmap() version is faster than the read() version.
>
The mmap version has almost always recently been faster than read() when
the file is already cached.  Also, cp isn't nearly as bad as cmp when
actually reading from disk (due to the disk head contention that cmp
causes.)

John



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