Re: cmp(1) has a bottleneck, but where?

2012-01-15 Thread Dieter BSD
> posix_fadvise() should probably be used for large files to tell the > system not to cache the data. Its man page reminded me of the O_DIRECT > flag. Certainly if the combined size exceeds the size of main memory, > O_DIRECT would be good (even for benchmarks that cmp the same files :-). > But cmp

Re: cmp(1) has a bottleneck, but where?

2012-01-15 Thread Bruce Evans
On Sun, 15 Jan 2012, Dieter BSD wrote: posix_fadvise() should probably be used for large files to tell the system not to cache the data. Its man page reminded me of the O_DIRECT flag. Certainly if the combined size exceeds the size of main memory, O_DIRECT would be good (even for benchmarks that