* optimal partition sizing
@ 1993-12-14 19:09 R. David Murray
1993-12-14 23:57 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
0 siblings, 1 reply; 2+ messages in thread
From: R. David Murray @ 1993-12-14 19:09 UTC (permalink / raw)
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?
--David
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: optimal partition sizing
1993-12-14 19:09 optimal partition sizing R. David Murray
@ 1993-12-14 23:57 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
0 siblings, 0 replies; 2+ messages in thread
From: Alan Rollow - Alan's Home for Wayward Tumbleweeds. @ 1993-12-14 23:57 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-12-14 23:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox