Disc (De)Fragger

Brett McCoy brtmac at maverick.ksu.ksu.edu
Thu May 2 12:46:39 AEST 1991


In <1991May01.154043.1031 at scuzzy.in-berlin.de> src at scuzzy.in-berlin.de (Heiko Blume) writes:

>stevedc at syma.sussex.ac.uk (Stephen Carter) writes:
>>		Disc Fragmentation (etc)

>for system V machines:
>i regularly use a program called packdisk on my /usr/spool/news.
>another program called fsanalyze tells me that the above filesystem
>takes about two weeks to develop >40% fragmentation. packdisk makes
>that ~3% again. packdisk was posted to comp.sources.misc, volume8,
>fsanalyze is in volume5. of course packdisk is somewhat dangerous :-)

One reason such a tool doesn't exist for BSD 4.2 filesystems is that
it is built in to the filesystem.  The 4.2 filesystem does it's best
to keep a disk from fraging, and to unfrag a disk that is fragmented
as files are read and then rewritten.  The 10% diskspace buffer that
is suggested for filesystems is to allow the extra space with which
to perform this task.  If you cut the buffer down to 0% and then fill
the disk up it will fragment rather badly, but so long as you leave
the 10% free space you will usually never get more than 3-4%.  On
my news partition the worst I have ever seen it get is 4% after months
of use.

--
Brett McCoy			Computing and Telecommunications Activities
brtmac at maverick.ksu.ksu.edu	Kansas State University
Every woman's a 10.  It just depends upon which base you're counting in.



More information about the Comp.unix.admin mailing list