Date: Wed, 19 Apr 2000 22:16:43 +0900 From: "Akinori -Aki- MUSHA" <knu@idaemons.org> To: jdp@FreeBSD.org Cc: freebsd-ports@FreeBSD.org Subject: Speed up cvsup-mirror! Message-ID: <86aeiqdydg.wl@localhost.local.idaemons.org>
next in thread | raw e-mail | index | archive | help
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 / (_ / ( (__( <knu@idaemons.org> "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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86aeiqdydg.wl>