HardenedBSD src tree
Go to file
John Dyson b68a757139 Significant performance improvement for mmap'ed files. This commit
makes MADV_SEQUENTIAL much more effective.  I suggest that
we start using MADV_SEQUENTIAL on system utilities that mmap
their input files, and the I/O is predominantely sequential.
Below is a test with 'cmp' on two relatively large binary files,
where the files are so large that the caching is ineffective:

+ ls -l t1.xxx t2.xxx
-rw-r--r--  1 root  wheel  65598384 Dec 10 12:13 t1.xxx
-rw-r--r--  1 root  wheel  65598384 Dec 10 12:14 t2.xxx

+ time cmp t1.xxx t2.xxx
3.78user 0.70system 1:33.43elapsed 4%CPU

+ time cmpmadv t1.xxx t2.xxx
4.21user 1.05system 0:30.93elapsed 17%CPU

This change is as a result of an observation made by BDE.
1996-12-11 05:17:23 +00:00
bin
contrib Fix up programs which expect <net/if.h> to include <sys/time.h> to instead 1996-12-10 17:11:53 +00:00
eBones
etc ifconfig 127.0.0.1 instead of localhost 1996-12-10 02:23:27 +00:00
games
gnu
include
lib Get struct ether_addr directly from <net/ethernet.h> rather than pulling 1996-12-10 17:19:11 +00:00
libexec Fix up programs which expect <net/if.h> to include <sys/time.h> to instead 1996-12-10 17:11:53 +00:00
lkm
release
sbin Fix if.h lossage. I could have sworn I already fixed this one. 1996-12-10 21:25:42 +00:00
secure
share Add support for uncompressing manpages that are already installed 1996-12-11 04:51:31 +00:00
sys Significant performance improvement for mmap'ed files. This commit 1996-12-11 05:17:23 +00:00
tools
usr.bin Don't dup the network pipe to stderr, it prevents ssh from asking for a 1996-12-10 23:41:27 +00:00
usr.sbin Merg-o-matic. 1996-12-11 00:07:19 +00:00
COPYRIGHT
Makefile