Re: which PC



Floyd L. Davidson <floyd@xxxxxxxxxx> wrote:
rfischer@xxxxxxxxx (Ray Fischer) wrote:
Floyd L. Davidson <floyd@xxxxxxxxxx> wrote:
"dennis@home" <dennis@xxxxxxxxxxxxxxxxxxxxxx> wrote:
"Floyd L. Davidson" <floyd@xxxxxxxxxx> wrote:

I would have to agree at least in part.. you don't need to defrag a disk
(note disk not file system as a file system may not be on a disk).
You don't even have to defrag windows.

However there /is/ a performance boost from defraging a file system.

Only if you have a very poorly designed filesystem.
*Very* poorly designed.

How many file systems have you designed?

Cute, but irrelevant.

Very relevant. Your opinion about what constitutes a "poor"
file system is not worth much.

The only systems where this isn't true are specialised ones like some
databases use and even then the database will have some sort of optimisation
built in.

There is no need for defragmentation on any of the
modern filesystems that have been designed for unix
based systems.

Why not?

For basically three reasons.

First, there are fragmented i/o requests,

No such thing.

On a
single user single tasking system (say, CP/M, MSDOS, or
early Windows versions) sequential file i/o was not
fragmented,

What the hell is "fragmented i/o" supposed to mean?

But with multi-user,

Not relevant to PCs.

multi-tasking, multi-threaded, multi-processor systems
the requests themselves are necessarily going to be
fragmented,

No they're not. It only happens in the case that there are
multiple threads doing disk I/O at the same time. That's
not a commmon occurance in a desktop PC.

and therefore it makes little difference
whether the disk is fragmented or not (it might even be
faster if it is!).

And the moon might really be made of swiss cheese.

Beyond that, hard disk technology has advanced to avoid
many of the inherent problems with fragmentation.

Nonsense. Hard disk technology has done nothing aboout disk
fragmentation.

Instead of physical i/o being done in the order the
requests are received, the data is buffered,

You cannot buffer read data until it's actually been read.
Buffering write data is problematic because the OS doesn't
know when the data actually been written, making transaction
processing unreliable.

and the i/o
requests are then ordered for optimum speed (eliminating
duplicate cylinder reads and avoiding excessive seek
operations).

Gee, I wasn't aware that those 500GB disk drives had such large
buffers. Last I checked the amount of memory was just about enough
to hold one track or cylinder. 8MB or 16MB.

Last but not least, modern OS's have two features that
reduce the effects of disk fragmentation. Disk i/o is
buffered,

That's been true for about the last 30 years.

No, make that 40 years.

The filesystems accomplish other
optimizations too, by grouping data together in
different sized chunks (fewer fragments)

MS-DOS did that.

and then
optimizing placement of tail fragments to allow them be
on the same cylinder as other fragments in order to
avoid seek operations.

You haven't read up on some really recent file system designs.

As I originally said, defragmentation is not required
on anything but a very poorly designed system.

Defragmentation is never _required_. It is sometimes helpful.

--
Ray Fischer
rfischer@xxxxxxxxx

.



Relevant Pages

  • Re: XP Defrager
    ... rendering knows for a fact that fragmentation can cause enough delays to ... drives between each editing/rendering session in order to be sure the ... Video work is extremely disk intensive. ... It's a lot cheaper to just let it defrag in between. ...
    (microsoft.public.windowsxp.general)
  • Re: defrag in linux?
    ... heads of your HD advance sequentially through the hard disk. ... fragmentation is a concern when one ... On the other hand, if you are Linux, you reorder the ... 'file fragmented' Linux file system and a 'file unfragmented' Linux ...
    (alt.os.linux.suse)
  • Re: Newbie question about defragmenting
    ... of your HD advance sequentially through the hard disk. ... Fortunately, multi-user, multi-tasking, multi-threaded OSs are usually built ... fragmentation is a concern when one process ... Linux file system and a 'file unfragmented' Linux file system is minimal to ...
    (alt.os.linux.suse)
  • Re: defrag one TB drives
    ... used internally are in the external drives. ... practices and type of disk usage. ... you will definitely notice the fragmentation; ... You might even have to run defrag multiple times to get a full defrag ...
    (microsoft.public.windowsxp.general)
  • Re: Defragment
    ... That's the reason Defrag is most effective in Safe ... Disk Defragmenter often says there is no need to Defragment. ... fragmentation that is likely slowing things down, IFF you happen to be using ... shumogy wrote: ...
    (microsoft.public.windowsxp.basics)