home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: aus.mac
- Path: sparky!uunet!munnari.oz.au!uniwa!bilby.cs.uwa.oz.au!usenet
- From: Quinn <quinn@cs.uwa.edu.au>
- Subject: Re: Hard drives & file space
- Message-ID: <1992Dec24.013805.26306@bilby.cs.uwa.edu.au>
- X-Xxdate: Thu, 24 Dec 92 01: 29:08 GMT
- Sender: usenet@bilby.cs.uwa.edu.au
- Nntp-Posting-Host: eriodon
- Organization: The University of Western Australia
- X-Useragent: Nuntius v1.1.1d13
- References: <9235813.2960@mulga.cs.mu.OZ.AU>
- Date: Thu, 24 Dec 1992 01:38:05 GMT
- Lines: 32
-
- In article <9235813.2960@mulga.cs.mu.OZ.AU> Matt Riddle,
- matthew_riddle.pharmacology@muwayf.unimelb.edu.au writes:
- >I have encountered an unexpected anomaly when using a large capacity hard
- >drive. Inve noticed that files using less than 16K actually always take
- >up exactly 16K of disk space.
-
- Welcome to the world of Macintosh HFS (Hierarchical File System) where
- the maximum number of allocation units on a volume is 65536. Therefore
- if you have a big drive (say 1GB) then a 1 byte file is going to
- take 16K on the disk (1024*1024/65536).
-
- But worse than that, each fork of the file requires an allocation
- unit so you can have a file contain 512 bytes (256 in the data fork,
- 256 in the resource fork) that takes 32K on disk!
-
- For more information about the internals of HFS see IM IV-159..174.
-
- >I wonder if anyone has a simple reason or solution to offer?
-
- The only solution at the moment is to partition the drive into multiple
- volumes. Each volume has a much smaller size, and hence a
- smaller allocation block size. If you half the volume size you
- half the internal fragmentation.
-
- The only *good* solution is for Apple to write a new file system to
- replace HFS. This isn't going to happen until they release the
- (somewhat mythical) File System Manager that (is reported to) make
- adding new file systems easy. Don't hold your breath.
-
- Quinn "The Eskimo!" <quinn@cs.uwa.edu.au> "Support HAVOC!"
- Department of Computer Science, The University of Western Australia
- -- Can anyone say "Seemed like a good idea at the time!"
-