Re: File Fragmentation



Robert Heller wrote:
  Cliff Hewitt <somebug@xxxxxxxxxxxxxx>,
  In a message on Mon, 05 Dec 2005 16:25:15 GMT, wrote :

CH> Hey folks,
CH> CH> I understand that ext2 and ext3 are supposed to be better than FAT and CH> NTFS with respect to file fragmentation, but somehow I was under the CH> impression that there would be no fragmentation. Clearly, when I run


Wrong.  Fragmentation happens and is *normal*.  What happens to the O/S
and disk I/O performance when it happens is a whole other issue...

Certainly. That's why I'm interested in it.


CH> filefrag, I see some files with "discontinuit[ies]". I am interested in CH> knowing why the fragmentation happens, and what I can do to defragment. CH> I don't care much that fragmentation occurs, since I blindly accept CH> the statement "ext/x/ is better than FAT and NTFS," but I'd like to CH> understand it better for ext2 and 3.


Linux (and UNIX) file I/O works differently than MS-DOS/MS-Windows. The driver modules (both low-level disk drivers and file system
modules) optimize disk access to minimize disk head travel (seeks) in a
multi-user / multi-tasking environment. This is part of how they were
designed: from the ground up for a multi-user / multi-tasking environment.

So, these two file systems are designed with minimizing seek times versus, say, finding the largest continuous segment of free space?


... NTFS
was sort of an attempt at this, but because of the downward
compatibility requirements and basic mis-designs deep in MS-Windows NT,
NTFS is only marginally better than FAT in terms of performance issues
WRT fragmentation.

CH> CH> Thanks,
CH> CH> Cliff Hewitt
CH>


\/
Robert Heller ||InterNet: heller@xxxxxxxxxxxx
http://www.deepsoft.com/ ||FidoNet: 1:321/153 http://www.deepsoft.com/~heller /\



Thanks again,

Cliff Hewitt
.



Relevant Pages

  • Re: I had a crash
    ... FAT was created on a 'we need something now' basis during early DOS development in FL. ... FAT was obsoleted by HPFS which is turn was obsoleted by NTFS. ... locations so that damage to one disk area does not damage both ... bunnies causing hardware crashes. ...
    (alt.os.windows-xp)
  • RE: Cannot convert FAT to NTFS with Convert.exe!!!
    ... Thats a basic rule in the NTFS design. ... The type of the file system is FAT. ... 1,457,664 bytes total disk space. ... 508 allocation units available on disk. ...
    (microsoft.public.dotnet.vjsharp)
  • Re: disk management
    ... Windows XP doesn't work on FAT; it will run on FAT32 or NTFS. ... When you clone a hard disk an exact copy is made, so when you clone a disk ... For right now, you should do a clean install of Windows XP, and choose the ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: OT: More OS questions
    ... I've always had more success recovering data from a FAT ... one than an NTFS. ... and just a floppy disk to boot from, ... as easily mountable from another Windows, Windows boot CD, or a Linux ...
    (uk.games.video.misc)
  • Re: NTFS gone BAD
    ... Disk Defragmenter does not support 12-bit FAT partitions. ... Defragmenter, you must upgrade to a 16 bit FAT, FAT32, or NTFS file system. ...
    (microsoft.public.windowsxp.hardware)