bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory consumption with cp -l


From: Jim Meyering
Subject: Re: Memory consumption with cp -l
Date: Mon, 10 Mar 2003 10:07:42 +0100

Ole Tange <address@hidden> wrote:
> I am using 'cp -l' to copy a large file structure. I was a bit surprised
> that 'cp -l' used 300 MB RAM where as 'cp -a' used around 1 MB.

Thank you for the report.
Unfortunately, I can't reproduce that using the latest version from here:

  ftp://alpha.gnu.org/gnu/coreutils/coreutils-4.5.9.tar.bz2
  (coreutils is the union of fileutils, textutils, and sh-utils)

I tried cp/linking a 5.0 GB hierarchy containing just under 1 million files,
but memory usage (virtual/resident were the same) did not exceed 750KB.
I used these commands:

  mkdir .junk
  cp -Rl * .junk

But it was a pretty shallow tree with short names.
The longest path name was just 54 bytes.

If you can reproduce the problem using the latest version
mentioned above, would you please send more information?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]