From owner-freebsd-stable Mon Jul 22 22:34:29 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEE3637B400 for ; Mon, 22 Jul 2002 22:34:25 -0700 (PDT) Received: from smtp.noos.fr (camus.noos.net [212.198.2.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED31D43E3B for ; Mon, 22 Jul 2002 22:34:24 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 45354335 invoked by uid 0); 23 Jul 2002 05:34:23 -0000 Received: from unknown (HELO gits.gits.dyndns.org) ([212.198.229.153]) (envelope-sender ) by 212.198.2.70 (qmail-ldap-1.03) with SMTP for ; 23 Jul 2002 05:34:23 -0000 Received: from gits.gits.dyndns.org (zb6oriiuthmd8x18@localhost [127.0.0.1]) by gits.gits.dyndns.org (8.12.5/8.12.5) with ESMTP id g6N5YMi5054682; Tue, 23 Jul 2002 07:34:22 +0200 (CEST) (envelope-from root@gits.dyndns.org) Received: (from root@localhost) by gits.gits.dyndns.org (8.12.5/8.12.5/Submit) id g6N5YLu2054681; Tue, 23 Jul 2002 07:34:21 +0200 (CEST) (envelope-from root) Date: Tue, 23 Jul 2002 07:34:20 +0200 From: Cyrille Lefevre To: Matthew Dillon Cc: Andreas Koch , freebsd-stable@FreeBSD.ORG Subject: Re: 4.6-RC: Glacial speed of dump backups Message-ID: <20020723053420.GB17187@gits.dyndns.org> Mail-Followup-To: Cyrille Lefevre , Matthew Dillon , Andreas Koch , freebsd-stable@FreeBSD.ORG References: <20020606204948.GA4540@ultra4.eis.cs.tu-bs.de> <20020722081614.E367@gsmx07.alcatel.com.au> <20020722100408.GP26095@ultra4.eis.cs.tu-bs.de> <200207221943.g6MJhIBX054785@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200207221943.g6MJhIBX054785@apollo.backplane.com> User-Agent: Mutt/1.3.99i Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[< List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jul 22, 2002 at 12:43:18PM -0700, Matthew Dillon wrote: > > Slightly new patch then the last one I posted (this one allowed you > to specify a cache size of 0): usage string updated as well as the old-option hanling (a la tar). also, the manual page has been updated but I'm sure that a `native' english speaker will do it better than me :) diff -u main.c.orig main.c --- main.c.orig Tue Jul 23 07:29:51 2002 +++ main.c Tue Jul 23 07:20:00 2002 @@ -520,9 +520,9 @@ #ifdef KERBEROS "k" #endif - "nSu] [-B records] [-b blocksize] [-D dumpdates]\n" - " [-d density] [-f file ] [-h level] [-s feet] " - "[-T date] filesystem\n" + "nSu] [-B records] [-b blocksize] [-C cachesize]\n" + " [-D dumpdates] [-d density] [-f file ] [-h level] [-s feet]\n" + " [-T date] filesystem\n" " dump [-W | -w]\n"); exit(X_STARTUP); } @@ -638,9 +638,10 @@ switch (*ap) { case 'B': case 'b': + case 'C': + case 'D': case 'd': case 'f': - case 'D': case 'h': case 's': case 'T': Index: dump.8 =================================================================== RCS file: /home/ncvs/src/sbin/dump/dump.8,v retrieving revision 1.27.2.13 diff -u -r1.27.2.13 dump.8 --- dump.8 1 Jul 2002 00:35:49 -0000 1.27.2.13 +++ dump.8 23 Jul 2002 05:28:06 -0000 @@ -45,6 +45,7 @@ .Op Fl 0123456789acknSu .Op Fl B Ar records .Op Fl b Ar blocksize +.Op Fl C Ar cachesize .Op Fl D Ar dumpdates .Op Fl d Ar density .Op Fl f Ar file @@ -131,6 +132,11 @@ The number of kilobytes per output block, except that if it is larger than 64, the command uses 64. (See the BUGS section.) The default block size is 10. +.It Fl C Ar cachesize +The number of megabytes allocated internally by +.Nm +to cache disk blocks. +The default cache size is 4MB. .It Fl c Change the defaults for use with a cartridge tape drive, with a density of 8000 bpi, and a length of 1700 feet. Cyrille. -- Cyrille Lefevre mailto:cyrille.lefevre@laposte.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message