Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Disk Optimization/Defrag for RH6.2?
  2001-01-09 17:33 Upgrade RPM? Robert M. Riches Jr.
@ 2001-01-17 21:12 ` SteveCraft
  2001-01-18  0:53   ` Paul Allen
  0 siblings, 1 reply; 10+ messages in thread
From: SteveCraft @ 2001-01-17 21:12 UTC (permalink / raw)
  To: axp-list

I know my filesystems are fragmented.  Is there a preferred AXP tool out
there to re-order the disk?



Steve Craft
mailto:scraft@nothinbut.net




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Disk Optimization/Defrag for RH6.2?
  2001-01-17 21:12 ` Disk Optimization/Defrag for RH6.2? SteveCraft
@ 2001-01-18  0:53   ` Paul Allen
  2001-01-18 16:28     ` Reinier Bikker
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Allen @ 2001-01-18  0:53 UTC (permalink / raw)
  To: axp-list

SteveCraft wrote:
> 
> I know my filesystems are fragmented.  Is there a preferred AXP tool out
> there to re-order the disk?

In an ext2 filesystem "fragmentation" is normal.  It is not the same
thing as the phenomenon with the same name seen on cruder platforms 
such as Windows.

The ext2 filesystem is designed to automatically keep the blocks of
a file near each other.  It will never become fragmented the way a
Windows disk will unless you defeat the mechanism by setting minfree
to zero and running the disk near full.  A "fragment" is a subset of
a filesystem block that is allocated at the very end of a file.  The
fragmentation percentage reported by fsck is talking about these ends
of files and does not indicate a performance problem.

The Windows filesystem allows blocks of a file to be allocated all 
over the disk, resulting in bad performance.  Since the filesystem is
too dumb to order file blocks sensibly, third-party defrag utilities 
have arisen to patch over the problem.

Filesystem fragmentation, like shared DLL's, executable email, and
the "registry" are Microsoft design flaws.  Microsoft refuses to even
acknowledge these flaws.  This is one of the reasons I use Unix rather
than Windows.

Paul Allen
-- 
Boeing Phantom Works                   \ Paul L. Allen, (425) 865-3297
Math & Computing Technology              \ paul.l.allen@boeing.com
POB 3707 M/S 7L-40, Seattle, WA 98124-2207 \ Prototype Systems Group




^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Disk Optimization/Defrag for RH6.2?
@ 2001-01-18 14:40 Vanco, Donald
  0 siblings, 0 replies; 10+ messages in thread
From: Vanco, Donald @ 2001-01-18 14:40 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

> -----Original Message-----
> From: SteveCraft [mailto:scraft@nothinbut.net]
> Sent: Wednesday, January 17, 2001 4:13 PM
> To: axp-list@redhat.com
> Subject: Disk Optimization/Defrag for RH6.2?
> 
> 
> 
> I know my filesystems are fragmented.  Is there a preferred 
> AXP tool out
> there to re-order the disk?

	While I don't know that fragmentation is an issue under *NIX, I've
been told that you can get your files aligned in a contiguous fashion with a
full restore of a backup.  Seems like a risky proposition for little in
return....

Don




^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Disk Optimization/Defrag for RH6.2?
@ 2001-01-18 14:51 Kevin Joubert
  2001-01-18 16:18 ` Greg Lindahl
  0 siblings, 1 reply; 10+ messages in thread
From: Kevin Joubert @ 2001-01-18 14:51 UTC (permalink / raw)
  To: axp-list

We used to do that on our old VMS workstations. It helped.


----Original Message Follows----
From: "Vanco, Donald" <VANCOD@PIOS.com>
Reply-To: axp-list@redhat.com
To: "'axp-list@redhat.com'" <axp-list@redhat.com>
Subject: RE: Disk Optimization/Defrag for RH6.2?
Date: Thu, 18 Jan 2001 09:40:30 -0500

 > -----Original Message-----
 > From: SteveCraft [mailto:scraft@nothinbut.net]
 > Sent: Wednesday, January 17, 2001 4:13 PM
 > To: axp-list@redhat.com
 > Subject: Disk Optimization/Defrag for RH6.2?
 >
 >
 >
 > I know my filesystems are fragmented.  Is there a preferred
 > AXP tool out
 > there to re-order the disk?

	While I don't know that fragmentation is an issue under *NIX, I've
been told that you can get your files aligned in a contiguous fashion with a
full restore of a backup.  Seems like a risky proposition for little in
return....

Don



_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-list

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com




^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Disk Optimization/Defrag for RH6.2?
  2001-01-18 14:51 Disk Optimization/Defrag for RH6.2? Kevin Joubert
@ 2001-01-18 16:18 ` Greg Lindahl
  0 siblings, 0 replies; 10+ messages in thread
From: Greg Lindahl @ 2001-01-18 16:18 UTC (permalink / raw)
  To: axp-list

> We used to do that on our old VMS workstations. It helped.

VMS's filesystem is completely different from traditional Unix filesystems,
and has different fragmentation properties.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Disk Optimization/Defrag for RH6.2?
@ 2001-01-18 16:23 Kevin Joubert
  2001-01-18 17:11 ` SteveCraft
  0 siblings, 1 reply; 10+ messages in thread
From: Kevin Joubert @ 2001-01-18 16:23 UTC (permalink / raw)
  To: axp-list

Does that mean it won't help him?


----Original Message Follows----
From: "Greg Lindahl" <glindahl@hpti.com>
Reply-To: axp-list@redhat.com
To: <axp-list@redhat.com>
Subject: RE: Disk Optimization/Defrag for RH6.2?
Date: Thu, 18 Jan 2001 11:18:39 -0500

 > We used to do that on our old VMS workstations. It helped.

VMS's filesystem is completely different from traditional Unix filesystems,
and has different fragmentation properties.



_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-list

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Disk Optimization/Defrag for RH6.2?
  2001-01-18  0:53   ` Paul Allen
@ 2001-01-18 16:28     ` Reinier Bikker
  0 siblings, 0 replies; 10+ messages in thread
From: Reinier Bikker @ 2001-01-18 16:28 UTC (permalink / raw)
  To: axp-list

On Wed, 17 Jan 2001, Paul Allen wrote:

: The ext2 filesystem is designed to automatically keep the blocks of
: a file near each other.  It will never become fragmented the way a
: Windows disk will unless you defeat the mechanism by setting minfree
: to zero and running the disk near full.  A "fragment" is a subset of
: a filesystem block that is allocated at the very end of a file.  The
: fragmentation percentage reported by fsck is talking about these ends
: of files and does not indicate a performance problem.
:

While all this is so very true, SteveCraft probably meant the
"non-contiguous files %" that fsck reports. That number actually is the
(internal) fragmentation, i.e. the percentage of files that have at least
one jump in their sequence of blocks. As this number says nothing about
how large these jumps are, it doesn't really tell how severe fragmentation
is. Ext2fs tries to avoid jumps, and tries to keep them small if
unavoidable.

This number therefore does not mean the same as the equivalent number a
certain less refined OS from Redmond reports. In practice you shouldn't
worry unless the percentage gets larger than 10 - 15%. You won't notice
fragmentation effects when loading binaries (page by page) to memory in a
multitasking, multiuser environment. You may notice the effects if you
sequentially read large files, though.

Note that, when using the default 1k blocks, having 8192 blocks per group
means that every file larger than 8 MB extends beyond one block group and
will be non-contiguous according to fsck. At home, I have a backup
partition containing large tar.gz's only. It's 100% fragmented ;-)


Reinier.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Disk Optimization/Defrag for RH6.2?
  2001-01-18 16:23 Kevin Joubert
@ 2001-01-18 17:11 ` SteveCraft
  2001-01-18 17:33   ` Greg Lindahl
  2001-01-18 17:43   ` Michal Jaegermann
  0 siblings, 2 replies; 10+ messages in thread
From: SteveCraft @ 2001-01-18 17:11 UTC (permalink / raw)
  To: axp-list

My Apple II HD needs defrag/optimization, my Mac HD needs
defrag/optimization, and my Windoze boxes need defrag/optimization.  I
figured with the un/installation stuff that was happening on my system, a
good disk optimization would help, especially since I have a slow CPU and
slow HD.

Greg, what do you mean by "different fragmentation properties"?  I am
curious as to why if Linux/Unix is unfragmentable, Microsoft didn't steal
the idea for their own stuff.



On Thu, 18 Jan 2001, Kevin Joubert wrote:

`Does that mean it won't help him?
`
`
`----Original Message Follows----
`From: "Greg Lindahl" <glindahl@hpti.com>
`Reply-To: axp-list@redhat.com
`To: <axp-list@redhat.com>
`Subject: RE: Disk Optimization/Defrag for RH6.2?
`Date: Thu, 18 Jan 2001 11:18:39 -0500
`
` > We used to do that on our old VMS workstations. It helped.
`
`VMS's filesystem is completely different from traditional Unix filesystems,
`and has different fragmentation properties.
`
`
`
`_______________________________________________
`Axp-list mailing list
`Axp-list@redhat.com
`https://listman.redhat.com/mailman/listinfo/axp-list
`
`_________________________________________________________________
`Get your FREE download of MSN Explorer at http://explorer.msn.com
`
`
`
`_______________________________________________
`Axp-list mailing list
`Axp-list@redhat.com
`https://listman.redhat.com/mailman/listinfo/axp-list
`


Steve Craft
mailto:scraft@nothinbut.net




^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Disk Optimization/Defrag for RH6.2?
  2001-01-18 17:11 ` SteveCraft
@ 2001-01-18 17:33   ` Greg Lindahl
  2001-01-18 17:43   ` Michal Jaegermann
  1 sibling, 0 replies; 10+ messages in thread
From: Greg Lindahl @ 2001-01-18 17:33 UTC (permalink / raw)
  To: axp-list

> Greg, what do you mean by "different fragmentation properties"?  I am
> curious as to why if Linux/Unix is unfragmentable, Microsoft didn't steal
> the idea for their own stuff.

The paper about the Berkeley FFS should be somewhere... ah, here it is:

M. McKusick, K. Bostic, M. Karels, J. Quarterman: The Design and
Implementation of the 4.4BSD Operating System; Addison-Wesley Publishing
Company, Reading, MA. April 1996, ISBN 0-201-54979-4.

or this is the original:

[McKusick et al. 1984] M. McKusick, W. Joy, S. Leffler, and R. Fabry. A Fast
File System for UNIX. ACM Transactions on Computer Systems, 2(3):181--197,
August 1984.

I can't find a copy online, however. It's well worth reading. Here are some
online references which discuss the overall issues:

http://citeseer.nj.nec.com/84157.html

-- g




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Disk Optimization/Defrag for RH6.2?
  2001-01-18 17:11 ` SteveCraft
  2001-01-18 17:33   ` Greg Lindahl
@ 2001-01-18 17:43   ` Michal Jaegermann
  1 sibling, 0 replies; 10+ messages in thread
From: Michal Jaegermann @ 2001-01-18 17:43 UTC (permalink / raw)
  To: axp-list

On Thu, Jan 18, 2001 at 12:11:33PM -0500, SteveCraft wrote:
> 
> Greg, what do you mean by "different fragmentation properties"?  I am
> curious as to why if Linux/Unix is unfragmentable, Microsoft didn't steal
> the idea for their own stuff.

Nobody said "Linux/Unix is unfragmentable" but that an explicit
defragmentation will rarely buy you anything or enough on ext2 ("rarely"
does not mean "never" but then rewriting a file system could be simpler
and more effective).

FAT file system, as used by MS-DOS, is very primitive.  This actually
has advantages on machines like the original IBM PC.  A simple code, low
overhead on a creation of new files, even if reading their contents may
get painful after a while, you can flip a big red switch any moment and
be relatively certain that a file system survived, and things like that.
But there are trade-offs, a need for periodic runs of 'defrag' is one of
these, and things like VFAT become later hairy hacks which will induce a
puke if you will look too close.  Still one has "back-compatibility" to
contend with.

Various Linux, and in general Unix, file system were designed with
different goals, a performance one of them, in mind.

  Michal




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-01-18 17:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-18 14:51 Disk Optimization/Defrag for RH6.2? Kevin Joubert
2001-01-18 16:18 ` Greg Lindahl
  -- strict thread matches above, loose matches on Subject: below --
2001-01-18 16:23 Kevin Joubert
2001-01-18 17:11 ` SteveCraft
2001-01-18 17:33   ` Greg Lindahl
2001-01-18 17:43   ` Michal Jaegermann
2001-01-18 14:40 Vanco, Donald
2001-01-09 17:33 Upgrade RPM? Robert M. Riches Jr.
2001-01-17 21:12 ` Disk Optimization/Defrag for RH6.2? SteveCraft
2001-01-18  0:53   ` Paul Allen
2001-01-18 16:28     ` Reinier Bikker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox