Subject: bug#7715: closed (Re: bug#7715: cp command on Linux)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 23 Dec 2010 01:45:03 +0000

Your bug report

#7715: cp command on Linux 

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
7715: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7715
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#7715: cp command on Linux
From: Paul Eggert <[email-masked]>
To: Hemant Rumde <[email-masked]>
Cc: [email-masked]
Date: Wed, 22 Dec 2010 17:50:52 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

Subject: cp command on Linux
From: "Hemant Rumde" <[email-masked]>
To: <[email-masked]>
Date: Wed, 22 Dec 2010 16:07:20 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

============================================================================================