From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3d7c46c5a454d6ba,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-12-14 16:48:40 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!swrinde!sgiblab!sgigate.sgi.com!olivea!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth.cxo.dec.com!alan From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Subject: Re: optimal partition sizing Message-ID: <1993Dec14.235740.19173@nntpd2.cxo.dec.com> Sender: usenet@nntpd2.cxo.dec.com (USENET News System) Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Organization: Digital Equipment Corporation References: <2el30d$ja6@illuminati.io.com> Date: Tue, 14 Dec 1993 23:57:40 GMT In article <2el30d$ja6@illuminati.io.com>, bitdance@illuminati.io.com (R. David Murray) writes: >I realize this is probably a stupid question, but I can't find the answer >in the docs. I want non-standard partitions on an rz28 disk. I set >up what I wanted, but when I newfsed the partitions, each one told me that >xxx number of sectors on the last cylinder were not allocated. Is this >something I should be concerned about? Is there an optimal modulus for the >number of blocks to put in a partition? It wasn't a stupid question. As far as I know the answer has never been in any documentation. Having a clue to the answer relies on knowing something about file system organization, mostly that they come in cylinder groups. A cylinder group is organized roughly as: +-------+-------+------~~~------+----------~~~----------+ | Super | Summ. | Inodes | Data | +-------+-------+------~~~------+----------~~~----------+ "Super" is the backup superblock for that cylinder group (*). "Summ" is the cylinder group summary block. These are followed by the blocks containing the inode data and finally most of the data blocks. The start of the backup superblock is progressively offset on cylinder groups after the first and space used for data. After some experimentation, I found that newfs/mkfs like to have cylinder groups take up whole cylinders. When they don't some space is wasted. For my limited experiments I found that if the partition size was a multiple of the cylinder size, the wasted message would go away. Likely exceptions when this simple rule isn't used: 1. The file system only uses even multiple of the file system block size; 16 KB. Left over sectors don't get reported as "wasted", even though they are. 2. If the last cylinder group doesn't have enough space for *some* data blocks once the superblock, cylinder group summary and inodes have been allocated, that space will also be wasted. The warning message is different though. (*) The primary superblock and bootblock preceed the backup superblock of the first cylinder group. > >--David > -- Alan Rollow alan@nabeth.cxo.dec.com