On Saturday 02 October 2010, Florian Philipp wrote:
> Am 01.10.2010 18:23, schrieb Volker Armin Hemmann:
> > On Friday 01 October 2010, Florian Philipp wrote:
> >> Am 01.10.2010 03:12, schrieb Adam Carter:
> >>>     Your harddisk seeks, everything is slow.
> >>> 
> >>> So does that then mean that my options are;
> >>> 1. Defragment, so there is less seeking
> >>> 2. Get an SSD
> >>> 
> >>> Since 2 is too expensive for a decent size drive, is there anything i
> >>> can do about 1 without a backup and restore operation? Or will the
> >>> fragmentation be very small on reiser3 anyway (i mount with notail) so
> >>> I should just accept things as they are.
> >> 
> >> To prevent fragmentation, try to always keep a decent amount of free
> >> space on each partition. That way, the FS driver can allocate space for
> >> new files without too much fragmentation (a fragment every 2 MB or so
> >> doesn't really hurt performance).
> > 
> > you obviously never used a tape drive...
> 
> Hehe, yep. :)
> 
> While we're at the topic, we can do some basic math to show how bad
> fragmentation is.
> 
> Symbols:
> 
> s [MB]: total size
> t_f [s]: total read/write time with fragmentation
> t_nf [s]: total read/write time without fragmentation
> t_s [s]: seek time
> v [MB/s]: sequential throughput
> n [-]: number of fragments
> f [1/MB]: fragmentation (fragments per MB)
> e [-]: effectiveness (percentage)
> 
> Assumptions:
> 
> 1. Seek time is constant. For HDDs we can take an average value. Of
> course this doesn't work for tapes. They have a seek time which
> increases linearly with the distance between the fragments.

I think you misunderstood my remark.

Tapes try to stream. Take an old DLT drive with 5-10mb/sec streaming speed. 
Slow, isn't it?

But when you do a backup on such an old tape even with a modern harddisk you 
have problems keeping it streaming. As soon as you hit a directory with many 
small files - like ~/Mail or /usr/portage you are screwed. 

Yes, you have wonderfull 100mb/sec when you read a big, fat file. Or a single 
small file. But when you have houndreds, thousands or hundreds of thousands of 
small files, harddisks suck.
And your tape drive has to stop and rewind every couple of seconds because 
your harddisks were not able to keep up the required 10mb/sec. Trueley 
pathetic.

Besides, seek times are not constant ;)

Reply via email to