summaryrefslogtreecommitdiffstats
path: root/sbin/dump/dump.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2003-01-13 19:42:41 +0000
committerdillon <dillon@FreeBSD.org>2003-01-13 19:42:41 +0000
commit5b697ad7ba32cd4546d0a6a44b4ef2a58cc6f9e9 (patch)
treeaf69e0b4486eed6e705fe04be584e57921195acb /sbin/dump/dump.h
parentd0082e294ce62cf63d5aa4738b8f999e18b04fff (diff)
downloadFreeBSD-src-5b697ad7ba32cd4546d0a6a44b4ef2a58cc6f9e9.zip
FreeBSD-src-5b697ad7ba32cd4546d0a6a44b4ef2a58cc6f9e9.tar.gz
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
Diffstat (limited to 'sbin/dump/dump.h')
-rw-r--r--sbin/dump/dump.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/dump/dump.h b/sbin/dump/dump.h
index eb04b0c..feb5913 100644
--- a/sbin/dump/dump.h
+++ b/sbin/dump/dump.h
@@ -77,6 +77,7 @@ long asize; /* number of 0.1" units written on current tape */
int etapes; /* estimated number of tapes */
int nonodump; /* if set, do not honor UF_NODUMP user flags */
int unlimited; /* if set, write to end of medium */
+int cachesize; /* size of block cache in bytes */
int notify; /* notify operator flag */
int blockswritten; /* number of blocks written on current tape */
OpenPOWER on IntegriCloud