From owner-freebsd-questions@FreeBSD.ORG Tue Feb 1 20:46:52 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6D9C16A4CE for ; Tue, 1 Feb 2005 20:46:52 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D24F43D54 for ; Tue, 1 Feb 2005 20:46:52 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j11Kkfx3093512; Tue, 1 Feb 2005 14:46:41 -0600 (CST) (envelope-from dan) Date: Tue, 1 Feb 2005 14:46:41 -0600 From: Dan Nelson To: Jim Pazarena Message-ID: <20050201204641.GA25470@dan.emsphone.com> References: <41FFDECF.3060901@ccstores.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41FFDECF.3060901@ccstores.com> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: FreeBSD Questions Subject: Re: disk fragmentation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 20:46:52 -0000 In the last episode (Feb 01), Jim Pazarena said: > during the boot sequence, I routinely see a "% fragmentation > message". > > It was my understanding that fragmentation doesn't occur on a Unix > (er FreeBSD) box.. > > It seems that there is a concept of fragmentation from the above > message, so, is there an "un-fragment" utility? In the ffs filesystem, a file that's smaller than the default 16k blocksize (or the last part of a file that doesn't completely fit into a block) doesn't have to waste an entire block. Blocks can be split into eight 2k fragments and small files are put in them. The "% fragmentation" is just the percentage of fragment blocks vs the total number blocks. It's more an indicator of how many small files you have in the system than anything else. -- Dan Nelson dnelson@allantgroup.com