Re: [patch 6/12] hold atomic kmaps across generic_file_read

Christoph Hellwig
2002-08-10T18:57:38Z

On Sat, Aug 10, 2002 at 02:52:49PM -0400, Jeff Garzik wrote:
> While working on a race-free rewrite of cp/mv/rm (suggested by Al), I
> did overall-time benchmarks on read+write versus sendfile/stat versus
> mmap/stat, and found that pretty much the fastest way under Linux 2.2,
> 2.4, and solaris was read+write of PAGE_SIZE, or PAGE_SIZE*2 chunks.
> [obviously, 2.2 and solaris didn't do sendfile test]

Solaris 9 (and Solaris 8 with a certain patch) support Linux-style
sendfile(). Linux 2.5 on the other hand doesn't support sendfile to
files anymore..