freebsd-dev/sbin/dump
Matthew Dillon 5941e412ca Add a caching option to dump. Use -C. Note that NetBSD has a caching option
called -r but it takes 512 byte blocks instead of megabytes, and I felt a
megabytes specification would be far more useful so I did not use the same
option character.

This will *greatly* improve dump performance at the cost of possibly
missing filesystem changes that occur between passes, and does a fairly
good job making up for the loss of buffered block devices.  Caching is disabled
by default to retain historical behavior.

In tests, dump performance improved by about 40% when dumping / or /usr.

Beware that dump forks and the cache may wind up being larger then you
specify, but a more complex shared memory implementation would not produce
results that are all that much better so I kept it simple for now.

MFC after:	3 days
2003-01-13 19:42:41 +00:00
..
cache.c Add a caching option to dump. Use -C. Note that NetBSD has a caching option 2003-01-13 19:42:41 +00:00
dump.8 Add a caching option to dump. Use -C. Note that NetBSD has a caching option 2003-01-13 19:42:41 +00:00
dump.h Add a caching option to dump. Use -C. Note that NetBSD has a caching option 2003-01-13 19:42:41 +00:00
dumprmt.c Use the standardized CHAR_BIT constant instead of NBBY in userland. 2002-09-25 04:06:37 +00:00
itime.c Use the standardized CHAR_BIT constant instead of NBBY in userland. 2002-09-25 04:06:37 +00:00
main.c Add a caching option to dump. Use -C. Note that NetBSD has a caching option 2003-01-13 19:42:41 +00:00
Makefile Add a caching option to dump. Use -C. Note that NetBSD has a caching option 2003-01-13 19:42:41 +00:00
optr.c Use the standardized CHAR_BIT constant instead of NBBY in userland. 2002-09-25 04:06:37 +00:00
pathnames.h Move _PATH_WALL from dump and shutdown's local pathnames.h to paths.h. 2002-05-17 11:47:12 +00:00
tape.c Use the standardized CHAR_BIT constant instead of NBBY in userland. 2002-09-25 04:06:37 +00:00
traverse.c Add a caching option to dump. Use -C. Note that NetBSD has a caching option 2003-01-13 19:42:41 +00:00
unctime.c o remove __P 2002-03-20 22:49:40 +00:00