From owner-freebsd-questions Tue Oct 22 2:48:39 2002 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 3273D37B401 for ; Tue, 22 Oct 2002 02:48:38 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E166F43E65 for ; Tue, 22 Oct 2002 02:48:36 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g9M9mKKf008277; Tue, 22 Oct 2002 10:48:20 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g9M9mFCp008276; Tue, 22 Oct 2002 10:48:15 +0100 (BST) Date: Tue, 22 Oct 2002 10:48:14 +0100 From: Matthew Seaman To: BigBrother Cc: questions@FreeBSD.ORG Subject: Re: What do you do about your FFS fragmention? Message-ID: <20021022094814.GA8138@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , BigBrother , questions@FreeBSD.ORG References: <20021022120108.Q212-100000@bigb3server.bbcluster.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021022120108.Q212-100000@bigb3server.bbcluster.gr> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-14.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, TO_LOCALPART_EQ_REAL,USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Oct 22, 2002 at 12:06:33PM +0300, BigBrother wrote: > > > I know how the FFS (filesystem) works, and that it really does an excelent > job in allocating clusters as local as possible. But it is also true that after > some period of extensive use of it, the filesystem get fragmented, and > results in severe degration of speed. > > One way is to dump/restore everything which is very painfull thing. > > ------- > So, what do you do [except dump/restore] to defrag the FFS after some time > of extensive use? Or you dont care for the degration in speed? Nope. You're thinking of Windows filesystems. So long as you don't fill a filesystem to 100% or more, it will have sufficient space reserved to be able to automatically defragment itself. No user intervention required. If you're seeing a gradual performance degradation over time on FreeBSD it's more likely some other factor. You can check the degree of fragmentation on a filesystem by rebooting to single user and running fsck(8) on the unmounted filesystems. For a typical filesystem you should see something less that the 1% mark. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message