Path: utzoo!attcan!uunet!lll-winken!ames!ncar!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: File Fragmentation Message-ID: <15397@mimsy.UUCP> Date: 11 Jan 89 04:58:31 GMT References: <18068@adm.BRL.MIL> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 31 In article <18068@adm.BRL.MIL> slouder@note.nsf.gov (Steve Loudermilk) writes: >I am involved in a local discussion about the benefits of "compacting" the >information on our disks regularly. By compacting I mean dumping to a >different device, running "newfs" and then restoring a file system. >One school of thought says this is necessary and should be done fairly >frequently to avoid excessive fragmentation and inefficient disk I/O. >The other school of thought says it isn't necessary because of the way >the Berkeley "fast file system" (BSD 4.2) handles assignment of >blocks and fragments when a file is stored. The second school is usually correct. >... Ultrix 2.3. ... running with at least 12% free space. If that `12% free' means that `df' shows 12% free, then you have plenty of room. If it means that df shows 2% free, then you have room. Only if df shows 110% full are you truly out of space. This 10% `reserve' is there to prevent fragmentation from becoming excessive. It can be adjusted if desired (see `man 8 tunefs'). Recent Berkeley releases have `fsck' report the amount of fragmentation. On our machines it is typically under 1%. If you do have have too much fragmentation, you may find that you cannot write files even though there is some free space left. Dumping and restoring should reduce the fragmentation. We have never found it necessary to do this, and I have never heard of anyone who did. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris