Subject: Re: bug#8200: cp -lr uses a lot of CPU time.
From: Jim Meyering <[email-masked]>
To: Rogier Wolff <[email-masked]>
Cc: [email-masked]
Date: Thu, 10 Mar 2011 18:39:34 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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.