Is the data disk fast enough, and which disk settings does it use?
Answered 2026-10-05: no. Decided 2026-10-06: D, NFR02-fs-speedNFR02-fs-speed: FilesystemThe workspace is on guest-native storage. becomes a goal outside the release gate. Option D isn’t one this brief offered. It came up in discussion, and is added below. The decision and its reasons are in the I19I19 (closed): X05-fs-benchmark: Filesystem benchmarkHow does the data disk perform with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads? comment that starts Decision (2026-10-06):. Source: X05-fs-benchmarkX05-fs-benchmark: Filesystem benchmarkData disk with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads. (I19I19 (closed): X05-fs-benchmark: Filesystem benchmarkHow does the data disk perform with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads?). Changes NFR00-indexNFR00-index: Non-functional requirementsHow fast, how small, on which platforms, and how maintainable Wraith Box must be., V1-initialV1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there., S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does. and S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq…. Feeds I44I44 (closed): S06-vm-lifecycle: data disk durability, and never mount a guest-written diskS06-vm-lifecycle says the data disk "can be rebuilt from host state plus git, so it may use relaxed write-through settings for speed".. Follow-up: I97I97 (open): npm ci in a macOS guest runs at 71% of host speed with every disk settingX05-fs-benchmark (#19) found that npm ci in a macOS guest reaches only 71% of host throughput with the chosen data disk setting (raw image, automatic caching, full sync), below the 80% of NFR02-fs-speed..
Figure 1. Guest speed as a share of host speed (medians of five warm runs, raw data image). The relaxed setting (no sync, host cache) is not faster on these workloads than full sync, and npm ci stays under the target even on a RAM disk in the guest, where no virtual disk is involved. The time goes elsewhere in the guest. Details in X05-fs-benchmarkX05-fs-benchmark: Filesystem benchmarkData disk with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads..
The decision left: the npm ci target
Section titled “The decision left: the npm ci target”When this brief was written, NFR02-fs-speedNFR02-fs-speed: FilesystemThe workspace is on guest-native storage. was a V1-M6-release-gateV1-M6-release-gate: Release gateThe Seatbelt profiles of wb-hostd and the sessions, confinement self-checks, warm start and suspend, the full conformance suite and benchmarks, packaging and upgrades. requirement. npm ci misses it by about 9 points, and no disk setting brings it to 80%. The spec stays on full sync under every option.
Impact
Section titled “Impact”No SEC* control changes under any option.
Evidence
Section titled “Evidence”- verified Warm medians with 4 vCPU, raw image, automatic caching and full sync:
npm ci3.26 s against 2.33 s on the host (71%),git status0.182 s against 0.250 s (137%), Go incremental build 0.542 s against 0.439 s (81%). The guest ran each workload five times per setting, the host 75 times (15 for the clean Go build). Source: X05-fs-benchmarkX05-fs-benchmark: Filesystem benchmarkData disk with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads., “Answer”, andresults/stats.txton the spike branch. - verified Across 13 disk settings (every caching and sync mode on ASIF, four on raw),
npm citook 3.08 s to 3.60 s with no order by sync mode. On a guest RAM disk it took 3.03 s, with 8 vCPU 3.65 s. Source: X05-fs-benchmarkX05-fs-benchmark: Filesystem benchmarkData disk with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads., “Measurements”. - verified The sync mode shows on flush-heavy writes: 500 appends with
fsynctook 1.50 s to 2.05 s with full sync and 0.20 s to 0.49 s with none. Source: X05-fs-benchmarkX05-fs-benchmark: Filesystem benchmarkData disk with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads., “Answer”. - verified In six kills of a VM process mid-write (three modes, either the
wb-vmdstand-in or the Virtualization service), every flushed write was kept, andfsck_apfsfound each volume clean. Source:results/kill-*on the spike branch. - verified A raw image gave back 1 GiB the guest deleted within 30 s, and an ASIF image kept it. Source:
results/trim-raw.txt,results/trim-asif.txt. - verified With no sync, “the disk image cannot safely be reused on failure”, and the
fsyncmode is “best-effort” (VZDiskImageStorageDeviceAttachment.h, macOS 27 SDK). - assumed That full sync keeps flushed writes through a host power loss, as the header says. Only process kills were tested.
- assumed That the host baseline is fair, which can be wrong both ways. FileVault and an Endpoint Security extension slow the host. Other agents’ work (load average 3 to 4) may slow the 4-vCPU guest more than the mostly single-threaded host run: the best single guest runs of
npm cireached 77.6% of the host median on the data disk and 82.6% on the RAM disk, so a quiet host could put the guest above 80%. The “no” holds for the conditions measured. I97I97 (open): npm ci in a macOS guest runs at 71% of host speed with every disk settingX05-fs-benchmark (#19) found that npm ci in a macOS guest reaches only 71% of host throughput with the chosen data disk setting (raw image, automatic caching, full sync), below the 80% of NFR02-fs-speed. measures again on a quiet host. - assumed That Claude Code doesn’t flush often enough for full sync to slow it down, which wasn’t measured.
What it unblocks
Section titled “What it unblocks”I44I44 (closed): S06-vm-lifecycle: data disk durability, and never mount a guest-written diskS06-vm-lifecycle says the data disk "can be rebuilt from host state plus git, so it may use relaxed write-through settings for speed". (data disk durability) gets its disk settings from this spike: one fully synced data disk. X08-data-diskX08-data-disk: Data disk for homesGuest user homes on a second disk, surviving a system-disk replacement. (I22I22 (closed): X08-data-disk: Data disk for homesCan guest user homes live on a second disk and survive a replacement of the system disk?) is still open for homes on a second disk. wb-vmd disk setup in V1-M2-walking-skeletonV1-M2-walking-skeleton: Walking skeletonwb-vmd boots a fixture VM bundle in its confined process, wb-guestd answers over vsock, a data disk made on the host holds the homes, and wb shell opens a PTY as a project user, with its output through the terminal fi… can use the S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does. settings.
Details and glossary
Why the relaxed modes don’t help. npm ci, git status and a Go build write and read a lot of files, but they rarely ask the disk to make writes permanent. The sync mode only changes what happens at that request, so it only shows on programs that make it after each write, like a database or a log that has to be kept through a crash.
Why a process kill isn’t a host crash. When the VM’s process is killed, its writes are already in the host kernel’s memory, and the host writes them out later. Every mode passed that test. A host crash or power loss loses whatever the host hadn’t written out yet, and only full sync makes the host write out each flushed write before telling the guest it’s done.
ASIF. Apple’s newer disk image format, sparse by design. The SDK header says the attachment takes raw images only, but ASIF worked. It never gave space back. The data disk uses raw images.
- Data disk: the second virtual disk of a VM, holding project users’ homes, Claude Code state, and workspaces.
- Sync mode: how the host handles the guest’s request to make writes permanent: full honors it to the storage itself,
fsyncpasses it to the drive without flushing the drive’s cache, none ignores it. - Caching mode: whether the host keeps disk image data in its own memory: automatic (Virtualization decides), cached, or uncached.
- Warm and cold: a warm run finds its files in memory from the run before. A cold run starts after the guest dropped its file cache.
- vCPU: a virtual processor of the VM. S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does.’s default is 4.