From owner-cvs-all Mon Jan 13 11:42:44 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD02F37B401; Mon, 13 Jan 2003 11:42:42 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 394D543FCF; Mon, 13 Jan 2003 11:42:42 -0800 (PST) (envelope-from dillon@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h0DJggfh010761; Mon, 13 Jan 2003 11:42:42 -0800 (PST) (envelope-from dillon@repoman.freebsd.org) Received: (from dillon@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h0DJgfbN010760; Mon, 13 Jan 2003 11:42:41 -0800 (PST) Message-Id: <200301131942.h0DJgfbN010760@repoman.freebsd.org> From: Matt Dillon Date: Mon, 13 Jan 2003 11:42:41 -0800 (PST) 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 X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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