From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
Subject: Re: optimal partition sizing
Date: Tue, 14 Dec 1993 23:57:40 GMT [thread overview]
Message-ID: <1993Dec14.235740.19173@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 2el30d$ja6@illuminati.io.com
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
prev parent reply other threads:[~1993-12-14 23:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-12-14 19:09 optimal partition sizing R. David Murray
1993-12-14 23:57 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds. [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox