Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!rochester!pt.cs.cmu.edu!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: comp.sys.ibm.pc Subject: Re: How large should clusters be ? Keywords: Filesystem, Diskmanagement Message-ID: <4408@pt.cs.cmu.edu> Date: 4 Mar 89 03:42:14 GMT References: <4101@uklirb.UUCP> Organization: Carnegie-Mellon University, CS/RI Lines: 23 In article <4101@uklirb.UUCP> kirchner@uklirb.UUCP (Reinhard Kirchner) writes: }When formatting a new hard-disk I found that FORMAT creates clusters }of 8 sectors = 4K byte if the disk is somewhat smaller than 16 MB, and }clusters of 2KB, if the disk is larger. }[Why?] MSDOS 3.x uses 12-bit FATs until the FATs are full (4085 clusters or so), then switches to 16-bit FATs if there are more clusters than will fit in a 12-bit FAT. For compatibility with DOS 2.x, which handled only 12-bit FATs, the cluster size is set to 4K. When DOS switches to 16-bit FATs, it can use smaller clusters (because it will run into the 32M barrier before the FATs fill up), so it does--hence 2K clusters. It turns out that 4085 clusters at 4K apiece is just under 16 megs, thus the size change at that point. It is even possible to fool DOS into using 1K clusters, but I hear that CHKDSK breaks if there are more than about 20000 clusters. Also, fragmentation will become even more of a problem with such small clusters. -- {harvard,uunet,ucbvax}!b.gp.cs.cmu.edu!ralf -=-=- AT&T: (412)268-3053 (school) ARPA: RALF@B.GP.CS.CMU.EDU |"Tolerance means excusing the mistakes others make. FIDO: Ralf Brown at 129/31 | Tact means not noticing them." --Arthur Schnitzler BITnet: RALF%B.GP.CS.CMU.EDU@CMUCCVMA -=-=- DISCLAIMER? I claimed something? --