Date: Mon, 14 Feb 2000 17:30:52 -0800 From: "Scott Hess" <scott@avantgo.com> To: "Lachlan O'Dea" <lodea@vet.com.au>, "Erik Wenzel" <erik@todo.de> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: why is cp so slow? Message-ID: <1a0501bf7754$4c111790$1e80000a@avantgo.com> References: <20000214125652.A25174@todo.de> <20000215120459.A44286@vet.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
If your confident that you can either recreate the target filesystem (newfs and re-copy), or that your on a UPS and will have _zero_ power issues or other crashes during the copy, I'll sometimes remount the filesystem async, which is probably possible under 2.2.7. /sbin/mount -u -o rw,async /dev/??? /mnt/pnt. Then after you're done, remount it again without async. Later, scott ----- Original Message ----- From: "Lachlan O'Dea" <lodea@vet.com.au> To: "Erik Wenzel" <erik@todo.de> Cc: <freebsd-questions@FreeBSD.ORG> Sent: Monday, February 14, 2000 5:05 PM Subject: Re: why is cp so slow? > On Mon, Feb 14, 2000 at 12:56:52PM +0100, Erik Wenzel wrote: > > Hi All, > > > > why is moving /usr/ports to another Partition taking over 1/2 hour? > > That's only 4MB. I am using freebsd-stable-2.2.7. > > It's because there are so many directories and small files in that 4 Mb. > I don't think 2.2 has softupdates, so that won't help. I often use > cpio(1) for this kind of thing, which generally is faster than cp: > > $ cd /usr/ports > $ find . -depth -print0 | cpio -0pvd /new/directory > > I believe you can achieve a similar effect with tar as well. > > -- > Lachlan O'Dea <mailto:lodea@vet.com.au> Computer Associates Pty Ltd > Webmaster Vet - Anti-Virus Software > http://www.vet.com.au/ > > "You have controlled your fear... > now release your anger." - Darth Vader > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1a0501bf7754$4c111790$1e80000a>