Memory consumption with cp -l
Ole Tange <[email protected]> Mon, 10 Mar 2003 09:20:20 +0100 (CET)
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
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.
/Ole
--
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
freenet://SSK@FaixQi7FkK-~RFGsa64m6FKreHIPAgM/truenames//