GNU bug report logs - #8200
cp -lr uses a lot of CPU time.

Previous Next

Package: coreutils;

Reported by: Rogier Wolff <R.E.Wolff <at> BitWizard.nl>

Date: Tue, 8 Mar 2011 05:23:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 8200-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Rogier Wolff <R.E.Wolff <at> BitWizard.nl>
Cc: 8200-done <at> debbugs.gnu.org
Subject: Re: bug#8200: cp -lr uses a lot of CPU time.
Date: Thu, 10 Mar 2011 18:39:34 +0100
Rogier Wolff wrote:
> Aaargh... It seems the bug has been fixed... Feel free to ignore my
> explanation below.

Thanks.  I've marked this ticket as closed.

> On Tue, Mar 08, 2011 at 04:05:04PM +0100, Jim Meyering wrote:
>> For starters, what version of cp did you use?
>> Run cp --version
>
> -> cp (GNU coreutils) 8.5

In v7.0-63-g3ece035, I made this change:

    http://git.sv.gnu.org/cgit/coreutils.git/commit/?id=3ece0355d52e41a1
    cp: use far less memory in some cases

    cp --link was "remembering" many name,dev,inode triples unnecessarily.
    ...

which would make a big difference in your case.




This bug report was last modified 14 years and 133 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.