Re: File Fragmentation
- From: Robert Heller <heller@xxxxxxxxxxxx>
- Date: Mon, 05 Dec 2005 18:06:15 +0100
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...
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.
The FAT file system was designed for *floppy* disks, under a
single-user / single-tasking environment and was designed to have a
small overhead footprint (to get the maximum use of the small media
(only 360K for early small floppies) for actual data). Since floppy
disks rarely have lots of files that get deleted or re-written and were
commonly used in single-user / single-tasking environments, issues of
disk head movement and/or file fragmentation are pretty much
non-issues. When Microsoft extended MS-DOS to work on hard disks, they
made no attempt to design a new file system that was geared to the
realities of a hard disk and the constant re-use of disk 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 /\
.
- Follow-Ups:
- Re: File Fragmentation
- From: Cliff Hewitt
- Re: File Fragmentation
- References:
- File Fragmentation
- From: Cliff Hewitt
- File Fragmentation
- Prev by Date: Re: File Fragmentation
- Next by Date: Re: Ubuntu live CD?
- Previous by thread: Re: File Fragmentation
- Next by thread: Re: File Fragmentation
- Index(es):
Relevant Pages
|