02.07.2013 Views

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mkfs(IM) mkfs(IM)<br />

Whether or not a proto file is given, the rotational gap <strong>and</strong> the<br />

modulus values can be specified within the mk f s comm<strong>and</strong> line.<br />

The value of gap allows certain disk blocks to be treated as logically<br />

contiguous even though they are not physically contiguous.<br />

Specifically, those blocks that are gap blocks apart are treated as if<br />

they are contiguous during reads <strong>and</strong> writes. By doing this, the<br />

time delay between two consecutive reads or writes of blocks can<br />

be accounted for <strong>and</strong> the disk media does not rotate beyond the location<br />

of the next physical block. Rather than wait for the disk to<br />

make a complete revolution before the missed block comes under<br />

the read/write head once again, performance is better if alternating<br />

disk blocks are treated as if they were contiguous.<br />

The value of modulus is needed to help determine what blocks are<br />

treated as logically contiguous. With each complete revolution,<br />

some extra offset may have to be introduced besides the fixed<br />

value gap. For example, for a gap value of 2 <strong>and</strong> a hypothetical 10<br />

blocks per revolution, physical blocks 0, 2, 4, 6, <strong>and</strong> 8 would be<br />

treated as contiguous. However, if this were continued throughout<br />

the disk, odd-numbered physical blocks would never become accessible.<br />

A modulus value of 10 corrects the mapping so that after<br />

physical block 8 is mapped, block 1 is mapped, followed by 3, 5,<br />

7, <strong>and</strong> 9.<br />

Also note that modem hard disks perform a similar function internally<br />

so that the operating system need not be encumbered with<br />

the function of disk-block remapping. For all but a very few rare<br />

cases (hard disks not sold by Apple <strong>and</strong> of old vintage), these<br />

operating system facilities do not result in increased performance.<br />

Even when optimization is possible, it cannot be achieved unless<br />

you can determine from technical specifications for the disk what<br />

values are needed.<br />

The default values 1 for gap <strong>and</strong> 1 for modulus suppress the<br />

remapping of disk blocks. The default values are used if gap <strong>and</strong><br />

modulus are considered illegal values or if they are omitted.<br />

EXAMPLE<br />

To make an 800 KB file system on a 3.5-inch floppy disk, use<br />

mkfs /dev/rfloppyO 1600<br />

This makes a file system on the floppy media referenced through<br />

/dev/rfloppyO. The new file system extends for 1600 512byte<br />

disk blocks (800 KB).<br />

February, 1990<br />

Revision C<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!