[Nottingham] File copying filesystem -> filesystem

Martin martin at ml1.co.uk
Tue Sep 8 13:46:04 UTC 2009


Martin wrote:
> Folks,
> 
> There's many ways to copy files around, but which is the 'best'?

Well, so far my thoughts are that you should copy across the largest 
files first in an attempt to minimise fragmentation. Copying the smaller 
files last lets them fill in any gaps on the disk hopefully without 
themselves getting fragmented.

Yet, files within a directory should be kept localised on the disk in 
the anticipation that you would wish to stay working within a directory...

Sooo, how about this strategy?...

Firstly create the entire directory hierarchy breadth-first. Then fill 
the directories ordered by largest total filesize for each directory. 
For a directory, transfer the files across ordered by largest file first.


(And no I haven't time to try this multiple times to make a scientific 
study out of different strategies!)


Yes, good, bad, indifferent?

Cheers,
Martin

-- 
----------------
Martin Lomas
martin at ml1.co.uk
----------------



More information about the Nottingham mailing list