GNU bug report logs -
#7715
cp command on Linux
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Wed, 22 Dec 2010 17:50:52 -0800
with message-id <4D12AAFC.2000203 <at> cs.ucla.edu>
and subject line Re: bug#7715: cp command on Linux
has caused the GNU bug report #7715,
regarding cp command on Linux
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
7715: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7715
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Hi
I do not log any bug for cp command. In our company, we copy huge Cobol
files before processing data. This is to rollback our data files.
Suppose A1 is my huge file of 60GB and A1.bk is its backup file, before
we process ( change ) data into A1. Then which of our method
would be faster?
1. Method-1 ( A1.bk exists )
$ cp A1 A1.bk
2. Method-2
$ rm -f A1.bk
$ cp A1 A1.bk
3. Method-3
$ cp --remove-destination A1 A1,bk
This operation is very simple. But our operators tell, in some cases cp
takes longer time. How can we reduce copying time?
Thanks
Hemant Rumde
ING US
Boston US
---------------------------------------------------------
NOTICE: The information contained in this electronic mail message is confidential and intended only for certain recipients. If you are not an intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication and any attachments is strictly prohibited. If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing it.
============================================================================================
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
On 12/22/2010 01:07 PM, Hemant Rumde wrote:
> Then which of our method would be faster?
Method 3 is probably a tad faster than method 2,
but whether 1 or 3 is faster depends on the
underlying implementation. If you're seeing
wildly different performance numbers I'd look
there, not at 'cp' itself.
This bug report was last modified 14 years and 150 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.