Re: defrag on linux system

From: Michel Bardiaux (michel.bardiaux_at_mediaxim.be)
Date: 08/31/05


Date: Wed, 31 Aug 2005 14:48:58 +0200

Tuukka Toivonen wrote:
> On 2005-08-24, Peter T. Breuer <ptb@oboe.it.uc3m.es> wrote:
>
>>>"The more fragmented the volume is, the slower the computer's file input
>>>and output performance will be."
>>
>>That's obviously false in general - I described why. It's only true on
>>a system on which ONE process is running, which is not the modern case.
>
>
> [....]
>
> Not exactly on the topic, but fragmentation is a huge problem to me.
> I have striping RAID 2*120 GB and would like to capture real time
> uncompressed video on it, 768x576x25x1.5 = 15.8 MB/sec.
>
> Measuring with hdparm, the disks could do 40-50 MB/sec, but
> with reiserfs, it's just doesn't work, too slow.
>
> Using ext2 with _unfragmented_ filesystem, it works, but
> I would need to keep the file system practically always
> empty or it gets too fragmented. And this is very difficult
> since I don't have other so large disks.
>
> Does anyone know how could I defragment the disks,
> in particular free space?
> "defrag" seems to defragment _allocated_ space
> (optimizing read speed), but apparently not the empty
> space (_not_ optimizing write speed).
>

I have similar problems with disks holding realtime compressed video.
Old files are perpetually destroyed to make room for new ones while
keeping the disk 99% full, and that seems to be one of those rare cases
where fragmentation *does* grow with time. Unfortunately the idea that
fragmentation could matter even in special cases is heresy to many, and
its almost impossible to have a serene discussion about it. Nevertheless
one useful suggestion was made: preallocate the files, never destroy
them but recycle by renaming.

In your case with raw video the size is *exactly* predictable so that
strategy should work even better.

Greetings,

-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux@mediaxim.be
Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/


Relevant Pages

  • Re: which PC
    ... there is little benefit to defragmenting. ... If your disks are almost full, and you often modify or create large ... and Mac OS X 10.3), there's a chance the disks could be fragmented. ... your disk's use and fragmentation. ...
    (rec.photo.digital)
  • Re: Best filesystem for external USB?
    ... re: Postscript ripping ... the disks will be so fragmented that the process not only slows ... and Windows' memory fragmentation is also an important aspect of the ... the ripping disks on daily basis and boot the machines. ...
    (alt.os.linux.suse)
  • Defragmentation
    ... Can fragmentation of the used space and the free space on the ... disks affect performance. ... This defragmentation can be thot of in 2 ways: ... If you are not the intended recipient, ...
    (SunManagers)
  • Auslogics Disk Defrag 1.1.5
    ... Disk fragmentation leads to system slowdowns, PC crashes, slow startup ... Auslogics Disk Defrag ... is designed for fast optimization of today's modern hard disks. ... Hard disks are by far the slowest component in your computer. ...
    (comp.software.shareware.announce)
  • Auslogics Disk Defrag 1.0.3
    ... Disk fragmentation leads to system slowdowns, PC crashes, slow startup ... Auslogics Disk Defrag is ... designed for fast optimization of today's modern hard disks. ... Hard disks are by far the slowest component in your computer. ...
    (comp.software.shareware.announce)