From owner-freebsd-ports Wed Apr 19 6:17:20 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ms.tokyo.jcom.ne.jp (ms.tokyo.jcom.ne.jp [210.234.123.18]) by hub.freebsd.org (Postfix) with ESMTP id CC9AE37B551; Wed, 19 Apr 2000 06:17:17 -0700 (PDT) (envelope-from knu@idaemons.org) Received: from daemon.local.idaemons.org (203-165-77-40.sugnm1.kt.home.ne.jp [203.165.77.40]) by ms.tokyo.jcom.ne.jp (8.9.1/3.7W 04/18/00) with ESMTP id WAA26021; Wed, 19 Apr 2000 22:17:16 +0900 (JST) Received: by daemon.local.idaemons.org (8.9.3/3.7W) id WAA52651; Wed, 19 Apr 2000 22:16:44 +0900 (JST) Date: Wed, 19 Apr 2000 22:16:43 +0900 Message-ID: <86aeiqdydg.wl@localhost.local.idaemons.org> From: "Akinori -Aki- MUSHA" To: jdp@FreeBSD.org Cc: freebsd-ports@FreeBSD.org Subject: Speed up cvsup-mirror! User-Agent: Wanderlust/1.1.1 (Purple Rain) EMIKO/1.13.12 (Euglena sociabilis) FLIM/1.13.2 (Kasanui) APEL/10.2 MULE XEmacs/21.1 (patch 9) (Canyonlands) (i386--freebsd) Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 1BEF D9B2 BABD 25D7 659A FD08 89C2 F3BE E981 4E16 MIME-Version: 1.0 (generated by EMIKO 1.13.12 - "Euglena sociabilis") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have a suggestion for speeding up cvsup-mirror by cutting useless disk I/O: Why don't we add the `-s' option to the cvsup command line in `update.sh'? As you know, cvsup-mirror is meant to mirror the master repositories, documents and archives AS IS, so there is no reason for users to modify local copies directly. (and they know that kind of operations should not be done) Given that, CVSup could omit checking if the local files are modified, and that's exactly what the `-s' option does. Turning it on would greatly reduce local disk i/o, My simple test has shown the following results: Without -s: CVSup update begins at 2000-04-19 19:45:00 (snip) CVSup update ends at 2000-04-19 19:51:24 With -s: CVSup update begins at 2000-04-19 20:07:41 (snip) CVSup update ends at 2000-04-19 20:08:38 Well, six times faster with very low disk i/o. :) Would you mind if I commit the attached patch? -- / /__ __ / ) ) ) ) / Akinori -Aki- MUSHA aka / (_ / ( (__( "If you choose not to decide you still have made a choice." Index: files/update.sh =================================================================== RCS file: /home/ncvs/ports/net/cvsup-mirror/files/update.sh,v retrieving revision 1.10 diff -u -r1.10 update.sh --- files/update.sh 2000/03/05 18:40:28 1.10 +++ files/update.sh 2000/04/19 11:22:03 @@ -42,7 +42,7 @@ startup=${PREFIX}/etc/rc.d eval chome=~${cuser} cmd="env HOME=${chome} cvsup" -options="-1gL 1 -b ${base} -c ${colldir}" +options="-1gL 1 -b ${base} -c ${colldir} -s" umask 2 ok=yes To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message