Date: Mon, 13 Jan 2003 11:42:41 -0800 (PST) From: Matt Dillon <dillon@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/dump Makefile cache.c dump.8 dump.h main.c traverse.c Message-ID: <200301131942.h0DJgfbN010760@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
dillon 2003/01/13 11:42:41 PST Modified files: sbin/dump Makefile dump.8 dump.h main.c traverse.c Added files: sbin/dump cache.c Log: 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 Revision Changes Path 1.20 +1 -1 src/sbin/dump/Makefile 1.1 +151 -0 src/sbin/dump/cache.c (new) 1.54 +11 -0 src/sbin/dump/dump.8 1.22 +1 -0 src/sbin/dump/dump.h 1.44 +7 -2 src/sbin/dump/main.c 1.31 +4 -3 src/sbin/dump/traverse.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301131942.h0DJgfbN010760>