From owner-freebsd-questions Thu Sep 24 03:51:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA09575 for freebsd-questions-outgoing; Thu, 24 Sep 1998 03:51:31 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.10.60]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA09568 for ; Thu, 24 Sep 1998 03:51:28 -0700 (PDT) (envelope-from kheuer@gwdu60.gwdg.de) Received: from localhost (kheuer@localhost) by gwdu60.gwdg.de (8.9.0/8.9.0) with SMTP id MAA00880; Thu, 24 Sep 1998 12:50:50 +0200 (CEST) Date: Thu, 24 Sep 1998 12:50:50 +0200 (CEST) From: Konrad Heuer To: Peter Kok cc: freebsd Subject: Re: fragmentation In-Reply-To: <3609F91C.A4362BE5@sweda.com.hk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 24 Sep 1998, Peter Kok wrote: > After boot up a computer, there is message prompted > > /dev/rmd0s2a: clean, 17705 free (313 frags, 2174 blocks, 1.0 > fragmentation) > > what is the meaning of frags? and how do you do defragmentation? You don't need to defragment a FreeBSD file system (which is essentially a 4.2BSD fast file system (ffs)). The file system typically uses 8K blocks of disk space. Since files are often smaller a file can use fragments (typically 1K) of a block. To be more precise, the last block of a file may be fragmented. Fragmentation you probably think of is spreading all the blocks of a file over the disk. The Berkeley ffs implements very intelligent algorithms to prevent this and to optimize file system throughput. Take a look at the system documentation: gunzip < /usr/share/doc/smm/05.fastfs/paper.ascii.gz | more Regards Konrad Heuer // Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH // Goettingen (GWDG), Am Fassberg, D-37077 Goettingen, Germany // // kheuer@gwdu60.gwdg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message