LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 06:10 AM   #1
sluge
Member
 
Registered: Dec 2006
Location: Russia,52
Posts: 116

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, 07:48 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:26 PM
Automake coping files to build directory paulmeacham Programming 0 08-27-2009 09:54 AM
coping or moving files to my pc using putty micro_xii Linux - Newbie 3 05-21-2007 03:00 AM
Permission Denied while coping files busaussie Linux - General 5 01-05-2006 12:26 PM
coping neccesary python files to chroot area dominant Linux - Security 6 12-17-2004 04:30 AM


All times are GMT -5. The time now is 08:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration