LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-30-2012, 05:10 AM   #1
sluge
Member
 
Registered: Dec 2006
Location: Russia,52
Posts: 128

Rep: Reputation: 6
Question Time of coping files


Hello!
I have two hard drives and I want to determine time of copying files from one to other.
So, I do:

1) Create file system on the second HDD and mount it
2) Copy set of files from / to folder mounted on step 1
3) Call sync to write all data to disks
3) Repeat step 2-3 10 times to make results more smooth

So, results are too strange:
The first time is a much greater that other 9, for example:
1000 51 50 49 52 ....

I don't have reasons why the first time is mutch greater than other 9: May be on first copying allocated internal structures of file system on the second HDD, or may be sync works on asynchronous manner, it started to write memory buffers to disk, and exits, this process continues then first copying is already started.
 
Old 08-30-2012, 06:48 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,888

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
at the first run some data will be cached.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Data lost while coping files smilemukul Linux - Newbie 6 12-13-2010 03:26 PM
Automake coping files to build directory paulmeacham Programming 0 08-27-2009 08:54 AM
coping or moving files to my pc using putty micro_xii Linux - Newbie 3 05-21-2007 02:00 AM
Permission Denied while coping files busaussie Linux - General 5 01-05-2006 11:26 AM
coping neccesary python files to chroot area dominant Linux - Security 6 12-17-2004 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration