Storage Pool and Direct I/O

An archived OpenVMS system is only as good as its disks. EMulatR writes guest data to the host the safe way — unbuffered and write-through — and its storage pool adds a fast write-back cache without giving that up: every change is journaled before the guest is told it is done. That is Transaction-Aware Resiliency.

Direct I/O and the Storage Pool

→

Direct I/O

The default. Each guest read and write goes straight to the disk image on the host, with unbuffered, write-through host I/O: the Windows file cache is bypassed, and a write is on the host's disk before the guest is told it finished. Simple and predictable, with no data held in memory.

▦

Storage Pool

A resident page cache in host memory (512 MB unless configured otherwise). Reads are served from memory once a page has been fetched; per-disk read workers fill misses. Writes are absorbed in the pool as a write-back cache and stored to the images in sorted, contiguous batches.

✎

Transaction Journal

The pool's write-back cache is protected by a persistent journal on the host. A guest write is acknowledged only when its journal record is durable, so an acknowledged write survives an emulator crash or a host power loss.

How a Write Travels Through the Pool

The pool turns many small guest writes into a few large, ordered host writes, without ever telling the guest a write is done before it is safe.

  1. Fetch. The pages the guest writes are made resident; a partial write to a page not yet in memory reads the rest of the page first.
  2. Modify. The guest's data is copied into the resident pages, the copy every later read sees.
  3. Journal. The change is appended to the journal as one unbuffered, write-through host write (up to 64 pages per record).
  4. Acknowledge. Only now is the guest told the write is complete. Its view of the disk's own write cache is off: an acknowledged write is already durable, so cache-flush and force-unit-access commands need nothing more.
  5. Store. After a set number of journaled pages (16 MB by default), the pool sorts its changed pages by disk and position, joins neighbors into runs, and writes them to the images, waiting until they are durable.
  6. Commit. One small header write marks the journal empty; the cached pages stay in memory for reads.

What Happens After a Crash or Power Loss

IF THE HOST STOPS...THE DISK IMAGEAT THE NEXT START
Before a journal record is durableUnchanged; the guest was never told the write finishedThe incomplete record is ignored
After the journal write, before the storeOlder than the guest's viewThe journal is replayed into the image
During the storeA page may be half writtenReplay overwrites it with the journaled version
After the store, before the commitAlready correctReplay is harmless
After the commitCleanNothing to do

Choosing and Sizing the Pool

SETTINGWHAT IT DOESDEFAULT
storage_enginedirect for direct I/O; pool for the storage pool with its journaldirect
pool_mbMemory given to the pool512 MB
journal_depthHow many 4 KB pages are journaled before they are stored to the images. 1 behaves as direct, write-through I/O; larger values absorb more writes. Kept to at most half the pool so changed pages cannot crowd out the read cache.4096 pages (16 MB)
journal_pathThe journal file, relative to the system's folder. Keep it on reliable local storage.pool.journal

These are platform settings, set in the Platform Editor. The storage pool is a Subscription feature; the Community edition uses direct I/O. Raw host partitions and raw host disks (Subscription) take the same paths as virtual disk files.

Watching the Pool Work

About EMulatR → What a Subscription Includes → Register →