From owner-freebsd-questions Mon Feb 14 17:31:49 2000 Delivered-To: freebsd-questions@freebsd.org Received: from bomber.avantgo.com (ws1.avantgo.com [207.214.200.194]) by builder.freebsd.org (Postfix) with ESMTP id 6EA094002 for ; Mon, 14 Feb 2000 17:31:24 -0800 (PST) Received: from river ([10.0.128.30]) by bomber.avantgo.com (Netscape Messaging Server 3.5) with SMTP id 442; Mon, 14 Feb 2000 17:28:01 -0800 Message-ID: <1a0501bf7754$4c111790$1e80000a@avantgo.com> From: "Scott Hess" To: "Lachlan O'Dea" , "Erik Wenzel" Cc: References: <20000214125652.A25174@todo.de> <20000215120459.A44286@vet.com.au> Subject: Re: why is cp so slow? Date: Mon, 14 Feb 2000 17:30:52 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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" To: "Erik Wenzel" Cc: 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 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