Re: fragmentation?

From: Shadow_7 (wwwshadow7_at_yaNOhoo.comNULL)
Date: 05/27/05


Date: Fri, 27 May 2005 15:24:48 GMT


> If you reach, say, 90% full on a filesystem, but keep
> writing/erasing/rewriting large files, _that_ is when you will tend to
> have fragmentation build-up. Otherwise, normally no.

Even if it's highly fragmented, you'll rarely gain more than 25% boost in
performance by defragging for most linux filesystems. Unlike fat32 where
you can gain many times 100% better performance.

ext2 does have e2defrag which is part of the defrag package in my debian
system. I've used it, but most of what you gain is a little drive space
from more efficient use of the device. And running updatedb plus ldconfig
seems to help about as much if not more in the efficiency department. But
I don't run cron and therefor don't run the run-parts job that runs those
on a daily basis.

You can always tar up the partition, mkfs, then untar it back in most
cases. And in many respects this is better and more efficient than most
defrag programs. Of course tar assumes you have another partition/drive
to use that is large enough to handle the process.

Many put /var/log/ and others on their own partitions to avoid
fragmentation where it counts. As well overcoming other issues which is
probably more of a motivator than fragmentation.

Shadow_7



Relevant Pages

  • Re: [PATCH] Avoiding fragmentation through different allocator
    ... James and Grant added to CC. ... > fragmentation for some orders are over time. ... > only support pagesize and reiser will create a filesystem with a blocksize ... > the assumption that high-order allocations will fail. ...
    (Linux-Kernel)
  • Re: fragmentation
    ... by fragmentation - because we use it in many different ways. ... the storage and computational overhead in maintaining the filesystem. ... have 8k or 16k allocation units, then even small files would have ... logically contiguous end up being discontiguous on the disk. ...
    (freebsd-questions)
  • Re: defragment streamed audio on clean HD?
    ... The causes of fragmentation are not always as one might expect, ... especially so for the system partition. ... written to disk and there is limited free disk space. ... I have used a shared pagefile partition and it caused no problems. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Managing XP system space for the MFT
    ... I find that it is easier to image the whole partition ... > You may be confusing the MFT with system restore. ... >> Fragmentation percentage ...
    (microsoft.public.windowsxp.hardware)
  • Re: Managing XP system space for the MFT
    ... I find that it is easier to image the whole partition ... > You may be confusing the MFT with system restore. ... >> Fragmentation percentage ...
    (microsoft.public.windowsxp.general)