From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id ED5272F773 for ; Thu, 18 Jan 2001 11:28:03 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f0IGSDb28632 for axp-list@listman.redhat.com; Thu, 18 Jan 2001 11:28:13 -0500 Received: from max.phys.uu.nl (max.phys.uu.nl [131.211.32.73]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f0IGSCv28628 for ; Thu, 18 Jan 2001 11:28:12 -0500 Received: from itpuu.phys.uu.nl (itpuu.phys.uu.nl [131.211.32.67]) by max.phys.uu.nl (8.9.3/8.9.3/hjm) with ESMTP id RAA31011 for ; Thu, 18 Jan 2001 17:28:02 +0100 (MET) Date: Thu, 18 Jan 2001 17:28:01 +0100 (MET) From: Reinier Bikker To: Subject: Re: Disk Optimization/Defrag for RH6.2? In-Reply-To: <3A663E9D.B0A3BC88@boeing.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors On Wed, 17 Jan 2001, Paul Allen wrote: : The ext2 filesystem is designed to automatically keep the blocks of : a file near each other. It will never become fragmented the way a : Windows disk will unless you defeat the mechanism by setting minfree : to zero and running the disk near full. A "fragment" is a subset of : a filesystem block that is allocated at the very end of a file. The : fragmentation percentage reported by fsck is talking about these ends : of files and does not indicate a performance problem. : While all this is so very true, SteveCraft probably meant the "non-contiguous files %" that fsck reports. That number actually is the (internal) fragmentation, i.e. the percentage of files that have at least one jump in their sequence of blocks. As this number says nothing about how large these jumps are, it doesn't really tell how severe fragmentation is. Ext2fs tries to avoid jumps, and tries to keep them small if unavoidable. This number therefore does not mean the same as the equivalent number a certain less refined OS from Redmond reports. In practice you shouldn't worry unless the percentage gets larger than 10 - 15%. You won't notice fragmentation effects when loading binaries (page by page) to memory in a multitasking, multiuser environment. You may notice the effects if you sequentially read large files, though. Note that, when using the default 1k blocks, having 8192 blocks per group means that every file larger than 8 MB extends beyond one block group and will be non-contiguous according to fsck. At home, I have a backup partition containing large tar.gz's only. It's 100% fragmented ;-) Reinier.