From owner-freebsd-questions Mon Jun 10 17:44:22 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA00738 for questions-outgoing; Mon, 10 Jun 1996 17:44:22 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id RAA00727 for ; Mon, 10 Jun 1996 17:44:14 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id RAA05303; Mon, 10 Jun 1996 17:43:49 -0700 From: Terry Lambert Message-Id: <199606110043.RAA05303@phaeton.artisoft.com> Subject: Re: defrags To: valtech@caribnet.net (Sean Batson) Date: Mon, 10 Jun 1996 17:43:49 -0700 (MST) Cc: questions@FreeBSD.ORG In-Reply-To: from "Sean Batson" at Jun 10, 96 07:45:48 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > How is fragmentation dealt with under FreeBSD? By using clyinder groups to prevent it from ever ocurring. > Is there a utility for defragmenting the Hard Drive? No. Since it never occurs, you never need a defragger. > The following is summary of my start up showing my disk: > > /dev/rwd0a: clean 8604 free (108 frags, 2124 blocks, 0.7% fragmentation) > /dev/rwd0s2f: clean 21384 free (148 frags, 5309 blocks, 0.1% fragmentation) > /dev/rwd0s2e: clean 12934 free (70 frags, 3216 blocks, 0.5% fragmentation) > > How do i defrag the above partitions? Change your file sizes so that partial files are all some multiple of 512 bytes. ;-). The reported fragmentation is the unusable disk space (as opposed to the DOS fragmentation, which is the disk space rendered unusable by the DOS FS layout policy). You will always have some minimal amount of fragmentation because hard disks read and write in terms of blocks. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.