From owner-freebsd-questions@FreeBSD.ORG Thu Mar 1 21:50:56 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C0E0616A40A for ; Thu, 1 Mar 2007 21:50:56 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 6375213C4C5 for ; Thu, 1 Mar 2007 21:50:56 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from vanquish.pgh.priv.collaborativefusion.com (vanquish.pgh.priv.collaborativefusion.com [192.168.2.61]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Thu, 01 Mar 2007 16:50:55 -0500 id 00056436.45E74ABF.0000F63C Date: Thu, 1 Mar 2007 16:50:55 -0500 From: Bill Moran To: Ivan Voras Message-Id: <20070301165055.638b0a06.wmoran@collaborativefusion.com> In-Reply-To: References: <539c60b90703010849x33dd4bbbt8f6ca6aa0c8e83a0@mail.gmail.com> Organization: Collaborative Fusion X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.9; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: defrag X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2007 21:50:56 -0000 In response to Ivan Voras : > Steve Franks wrote: > > How come I never hear defrag come up as a topic, and can't find > > anything related to defrag in the ports tree? Is it really not an > > issue on UFS? Can someone point me to an explantion if so? > > fsck will tell you the level of fragmentation on the file system: > > > fsck /usr > ** /dev/ad0s2g (NO WRITE) > ** Last Mounted on /usr > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 352462 files, 2525857 used, 875044 free (115156 frags, 94986 blocks, > 3.4% fragmentation) > > This is from a /usr system that's been in use for years. (note that > "frags" in the last line refer to file system fragments - "subblocks", > not fragmented files). Just to reiterate: "Fragmentation" on a Windows filesystem is _not_ the same as "fragmentation" on a unix file system. They are not comparable numbers, and do not mean the same thing. The only way to avoid fragmentation on a unix file system is to make every file you create equal to a multiple of the block size. And unix fragmentation does not degrade performance unless the file system is close to full. -- Bill Moran Collaborative Fusion Inc.