DECram for OpenVMS User's Manual

DECram for OpenVMS User's Manual


April 2001

This manual describes the features of the DECram for OpenVMS Device Driver (MDDRIVER). It includes information on how to determine which files should be stored on the device, how to configure the device, and how to use the device driver.

Revision/Update Information This is a new document

Operating System and Version: OpenVMS Alpha Version 7.2-1H1 or higher

Software Version: DECram for OpenVMS Version 3.0




Compaq Computer Corporation
Houston, Texas


© 2001 Compaq Computer Corporation

Compaq, VAX, VMS, and the Compaq logo Registered in U.S. Patent and Trademark Office.

All other product names mentioned herein may be the trademarks or registered trademarks of their respective companies.

Confidential computer software. Valid license from Compaq required for possession, use, or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license.

Compaq shall not be liable for technical or editorial errors or omissions contained herein.

The information in this document is provided "as is" without warranty of any kind and is subject to change without notice. The warranties for Compaq products are set forth in the express limited warranty statements accompanying such products. Nothing herein should be construed as constituting an additional warranty.

ZK5698

The DECram documentation set is available on CD-ROM.

Contents Index


Preface

This manual describes the DECram for OpenVMS Device Driver (MDDRIVER). You will find information on how to determine which files should be stored on the device, how to configure the device, and how to use the device driver.

Intended Audience

This manual is intended for system managers who want to take advantage of the increased performance that results from using the DECram driver. You should be familiar with managing the OpenVMS Alpha operating systems before reading this manual.

Document Structure

This manual consists of three chapters only as follows:

Related Documents

See the following documents for information that is relevant to configuring and programming DECram disks:

The following documents contain information that will assist you in identifying files that can be stored on a DECram disk:

For additional information on OpenVMS products and services, access the Compaq website at the following location:


http://www.openvms.compaq.com 

Reader's Comments

Compaq welcomes your comments on this manual. Please send comments to either of the following addresses
Internet openvmsdoc@compaq.com
Mail Compaq Computer Corporation
OSSG Documentation Group, ZKO3-4/U08
110 Spit Brook Rd.
Nashua, NH 03062-2698

How To Order Additional Documentation

Use the following World Wide Web address to order additional documentation:


http://www.openvms.compaq.com/ 

If you need help deciding which documentation best meets your needs, call 800-282-6672.

Conventions

The following conventions are used in this manual:
Ctrl/ x A sequence such as Ctrl/ x indicates that you must hold down the key labeled Ctrl while you press another key or a pointing device button.
PF1 x A sequence such as PF1 x indicates that you must first press and release the key labeled PF1 and then press and release another key or a pointing device button.
[Return] In examples, a key name enclosed in a box indicates that you press a key on the keyboard. (In text, a key name is not enclosed in a box.)

In the HTML version of this document, this convention appears as brackets, rather than a box.

... A horizontal ellipsis in examples indicates one of the following possibilities:
  • Additional optional arguments in a statement have been omitted.
  • The preceding item or items can be repeated one or more times.
  • Additional parameters, values, or other information can be entered.
.
.
.
A vertical ellipsis indicates the omission of items from a code example or command format; the items are omitted because they are not important to the topic being discussed.
( ) In command format descriptions, parentheses indicate that you must enclose the options in parentheses if you choose more than one.
[ ] In command format descriptions, brackets indicate optional elements. You can choose one, none, or all of the options. (Brackets are not optional, however, in the syntax of a directory name in an OpenVMS file specification or in the syntax of a substring specification in an assignment statement.)
[|] In command format descriptions, vertical bars separating items inside brackets indicate that you choose one, none, or more than one of the options.
{ } In command format descriptions, braces indicate required elements; you must choose one of the options listed.
bold text This text style represents the introduction of a new term or the name of an argument, an attribute, or a reason.
italic text Italic text indicates important information, complete titles of manuals, or variables. Variables include information that varies in system output (Internal error number), in command lines (/PRODUCER= name), and in command parameters in text (where dd represents the predefined code for the device type).
UPPERCASE TEXT Uppercase text indicates a command, the name of a routine, the name of a file, or the abbreviation for a system privilege.
Monospace text Monospace type indicates code examples and interactive screen displays.

In the C programming language, monospace type in text identifies the following elements: keywords, the names of independently compiled external functions and files, syntax summaries, and references to variables or identifiers introduced in an example.

- A hyphen at the end of a command format description, command line, or code line indicates that the command or statement continues on the following line.
numbers All numbers in text are assumed to be decimal unless otherwise noted. Nondecimal radixes---binary, octal, or hexadecimal---are explicitly indicated.


Chapter 1
DECram Disks

This chapter describes the DECram disk, which is a disk device created in the physical memory area of a system. The operating system can read from and write to a DECram disk, using standard OpenVMS disk I/O operations, at access times much greater than those for standard hardware disks. DECram disks use the DECram for OpenVMS device driver (MDDRIVER).

1.1 Characteristics of a DECram Disk

The DECram driver allows you to create a disk in available physical memory and to read and write to that disk using standard OpenVMS disk I/O operations. This provides high-speed access to read-only data such as libraries, fonts, and command files. Additionally, the DECram disk can be used to hold temporary or scratch files that an application may require.

Other characteristics include the following:

Caution

Because DECram disk data is resident in main memory, the data will be lost if the host system fails or is shut down. Therefore, Compaq recommends using the DECram disk to store small, frequently accessed files such as temporary (scratch) files, or read-only files such as commonly used image files that reside permanently on a conventional disk unless the DECram disk is shadowed to a physical disk with OpenVMS host-based volume shadowing.

1.1.1 Comparing a DECram Disk to a Conventional Disk

Table 1-1 compares the features of a DECram disk to conventional disk features.

Table 1-1 DECram Disk Versus Conventional Disk
Type of Storage Device
A virtual disk that operates like a physical disk device. Disk device.
Device Setup
Set up once each time the system is rebooted. Set up at installation time. There is rarely, if ever, a need to set up the device again.
Models Available
Only one model, although the size can vary. Upgrading is not a consideration. Many models, each fixed in size. Upgrading is always an important consideration. Options include price/performance, size of the disk, density, and seek time.
Use as a Storage Device
Typically holds small files. Expansibility is limited by the amount of system memory; cannot be used for offline storage. Holds files of all sizes. Expansible to several orders of magnitude more than the amount of data that can be stored on a DECram disk. Some models have removable packs for secure offline storage.
Write Operations
Stored data can be lost if system fails or is shut down. Writable, permanent files should generally not be placed on the DECram disk. However, if writable files must be placed on a DECram disk, then strongly consider the use of volume shadowing and journaling for data preservation. Suitable for writable, permanent file storage.
Data Access Performance
Extremely fast, limited only by CPU power and memory bandwidth, which are electronic in nature. Speed limited by mechanical considerations, that is, seek time and rotation speed. Performance is also limited by other factors, such as interconnect bandwidth and controller features.

1.1.2 Comparing a DECram Disk to Disk Caches

Both DECram disks and disk caches improve system performance by providing faster access to data. However, they differ in how they function and in how they are used by the system. Table 1-2 describes these differences.

Table 1-2 DECram Disk Versus Disk Caches
Type of Storage Device
Operates like a disk device. Operates as memory.
Device Setup
Requires preloading files and using logical names to access these files on the DECram disk. A disk cache is easily configured. The cache is usually transparent to the user.
Use as a Storage Device
Typically holds entire files. Typically holds only portions of files.
Can hold files as large as 4,294,967,296 bytes with Version 3.0. Maximum file size capacity for Version 2.3 is still 524,280 blocks. It is possible to create logically contiguous devices greater than either of these limits by creating multiple DECram devices and binding them together. Capable of holding entire databases.
Both data blocks and file system blocks can be held. Consequently, opening and closing files is faster. Disk caches often migrate to holding data blocks, as opposed to file system blocks.
Type of Data
Choice of files to be held on the disk; subject to size constraints. Choice of files to be held on disk caches not usually allowed.
Write Operations
Not intended for permanent data storage. No write-back of data to permanent storage media. Write operations write-back data to permanent storage media.
Generally more efficient than writing to a disk cache; scratch files are created relatively quickly. Writing to a disk cache is slower than writing to a DECram disk. Creating scratch files is a relatively slow process.
Local DECram disk files cannot survive a system shutdown. Data blocks survive a system shutdown.
Shared DECram disk files can survive a system shut down.  
Data Access Performance
Always reliable. Files are under the user's control and readily accessible. Not always predictable. Access can vary by disk size and system load. (However, access is always more efficient than on comparable systems without any disk cache.)
Recommendations for Use
Used for small, frequently accessed files such as application scratch files, system images, libraries, and DCL procedures. Disk caches should be used for databases, general user work files, and files that increase in size.
  Some disk caches use a protocol to write-back data where the software is informed that a write operation is complete before ensuring the data is actually stored on the disk. Although write-back by a disk cache increases write performance to a level comparable to that of a write to a DECram disk, data can be lost if the system shuts down before the modified data is written back to disk. Users should be aware that the write-back characteristics of a disk cache can result in lost data.


Next Contents Index