Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Reinier Bikker <R.P.Bikker@phys.uu.nl>
To: <axp-list@redhat.com>
Subject: Re: Disk Optimization/Defrag for RH6.2?
Date: Thu, 18 Jan 2001 17:28:01 +0100 (MET)	[thread overview]
Message-ID: <Pine.OSF.4.31.0101181654290.10566-100000@itpuu.phys.uu.nl> (raw)
In-Reply-To: <3A663E9D.B0A3BC88@boeing.com>

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.




  reply	other threads:[~2001-01-18 16:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
2001-01-19 22:20       ` Database Conspiracy PostgreSQL? SteveCraft
2001-01-19 22:42         ` James Fowler
2001-01-19 23:29           ` John Jasen
  -- strict thread matches above, loose matches on Subject: below --
2001-01-18 14:40 Disk Optimization/Defrag for RH6.2? Vanco, Donald
2001-01-18 14:51 Kevin Joubert
2001-01-18 16:18 ` Greg Lindahl
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
read-only archive

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