[ Previous | Next | Table of Contents | Index | Library Home |
Performance Management Guide
Sometimes applications may want to implement their own journaling;
database applications are good examples. These applications can avoid
duplicate logging (its own database logs and the JFS logs) by performing I/O
directly to the raw logical volume and bypassing the JFS.
A program might access disk in raw mode in three ways:
- Block raw-disk-device special files have names of the form
/dev/hdiskn, and are used by some subsystems.
These devices should not be used by application programs.
- Character raw-disk-device special files have names of the form
/dev/rhdiskn. Use of these devices by application
programs is not recommended. If you decide to use this technique, make
sure that no logical volumes occupy any part of the physical disk drive being
accessed. The performance effect of interaction between raw access and
file-system access to the same physical drive is unpredictable. Make
sure you do not overwrite the first 512 bytes of the disk because that is
where the physical volume ID is stored.
- A logical volume on which no file system has been created can be accessed
in raw mode. All writes, reads, lseeks, and so on must be in multiples
of 512 bytes. The least important consequence of violating this rule is
serious performance degradation. The Logical Volume Control Block
(LVCB) occupies the first 512 bytes of the logical volume. An
application writing directly to the logical volume must ensure that it does
not overwrite this LVCB.
[ Previous | Next | Table of Contents | Index |
Library Home |