[Top][All Lists]

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

Memory consumption with cp -l

From: Ole Tange
Subject: Memory consumption with cp -l
Date: Mon, 10 Mar 2003 09:20:20 +0100 (CET)

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.

I guess the reason is that 'cp -l' needs to remember what i-nodes it has
seen before, where as 'cp -a' does not have to do this. If that is the
case then you can hardly consider it a bug. I would, however, very much
like that the manual points this out in the '-l' section:

       -l, --link
              link files instead of copying. This will require
              approximately XX bytes of RAM pr file.

If some genie offered you three wishes, would not your first one be,
"Tell me, please, what is it that I want the most!"
  -- Marvin Minsky in

reply via email to

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