Brings seaweed-block main (v1.1.1 plus the docs and a test fix after it) into seaweed-block/ as one commit. Only files under seaweed-block/ change, and the subtree equals seaweed-block main exactly. The module's full history stays in the seaweed-block repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8.3 KiB
Agent workspace disks: measured results
Use this when: you need the full workspace measurements behind the README
summary: the workload comparison, fsync behavior, snapshot and fork cost, cut
upload time, and the two-host lifecycle run, with how each was measured.
Source of truth: lab runs on Firecracker microVMs and a host-side proxy, as described below.
The workload and lifecycle numbers come from lab runs with Firecracker microVMs (4 vCPU, 4 GiB, guest kernel 6.1). The snapshot, fork and cut numbers come from a host-side proxy, described with their table. Each number is the median of 3 runs. They are measurements, not SLOs.
The README chart draws from two of the runs below, both of pre-release builds:
- Its first four rows (
npm ci,git clone, untar 100,000 files, coldfind+stat) come from runswbd0a-r5(commitf7a6305,walstore), and time the operation itself. With the guest's finalsyncfsincluded on both sides, the first three are 11-23% slower than the local disk, and untar of 5,000 small files takes about 2.2 times as long. - Its last two rows (2,000 × create + write +
fsync, and the guestfsyncmedian) come from thewalstore-chunkrun after the group-commit fix.
Workspace workloads, Seaweed Block disk vs a local file-backed disk (run
swbd0a-r5, 2026-11-15; a pre-release build, commit f7a6305, with
--durable-impl walstore, the local engine that the released walstore-chunk
path builds on; one bare-metal host; NVMe/TCP loopback; seconds). The first two
columns time the operation itself; the last two add the guest syncfs that
followed it, recorded separately:
| Workload | Seaweed Block | Local disk | Seaweed Block with syncfs |
Local disk with syncfs |
|---|---|---|---|---|
npm ci (617 packages, offline) |
2.14 | 2.14 | 2.90 | 2.36 |
git clone (Go 1.23 repository, local) |
7.10 | 6.99 | 8.01 | 7.23 |
| Untar 5,000 files | 0.31 | 0.31 | 1.07 | 0.49 |
| Untar a 100,000-file tree | 1.10 | 1.06 | 1.32 | 1.17 |
find + stat over 100,000 files (cold) |
0.32 | 0.33 | ||
2,000 × create + write + fsync |
14.33 | 6.09 | 14.34 | 6.09 |
- Metadata-heavy agent workloads run at local-disk speed, because the guest kernel absorbs metadata and the block device only sees batched writes.
- Every guest
fsyncwas verified to reach the backend sync: about 2 NVMe flushes perfsync, and zero in an unsafe-cache control. - The cost in these runs was
fsynclatency, about 7 ms against 3 ms local, over the NVMe/TCP loopback frontend. These are the original runs, kept as history; the next section measuresfsyncafter the group-commit fix. - The same comparison on an Azure
D16s_v5nested-virtualization host gives the same picture.
The same workloads against an early FUSE prototype on the same host (same
run, swbd0a-r5; the comparator is a host-side FUSE prototype built on the
SeaweedFS filer, not a released product and not FUSE file systems in general;
seconds, median of 3; its times change by less than 0.01 s with syncfs):
| Workload | Seaweed Block | FUSE prototype | Factor | Seaweed Block with syncfs |
Factor with syncfs |
|---|---|---|---|---|---|
npm ci (617 packages, offline) |
2.14 | 11.81 | 5.5× | 2.90 | 4.1× |
git clone (Go 1.23 repository, local) |
7.10 | 37.09 | 5.2× | 8.01 | 4.6× |
| Untar 5,000 files | 0.31 | 19.28 | 62× | 1.07 | 18× |
| Untar a 100,000-file tree | 1.10 | 47.54 | 43× | 1.32 | 36× |
2,000 × create + write + fsync |
14.33 | 14.32 | 1.0× | 14.34 | 1.0× |
- Metadata-heavy work was 4 to 36 times faster on the block disk with the final
flush included (5 to 62 times for the operation alone);
fsync-bound work took the same time on both. - The cold
find+statrow has no FUSE equivalent in this run (the FUSE runs measured a first and a second pass instead), so it is left out.
fsync after the group-commit fix (#173;
one bare-metal lab host; Firecracker guest; fio 4 KiB random write, one request
at a time, fsync after every write, 60 s; median of 3 boots per setup; a
pre-release run of the walstore-chunk path, on the same host as the run above,
whose build commit is not recorded, so these are not measurements of a tagged
release):
| Setup | fsync p50 |
fsync p99 |
Write IOPS | 2,000 × create + write + fsync |
|---|---|---|---|---|
ublk, walstore-chunk |
3.23 ms | 9.11 ms | 283 | 8.48 s |
ublk, smartwal (experimental) |
3.26 ms | 5.21 ms | 299 | 8.29 s |
NVMe/TCP loopback, walstore-chunk |
3.59 ms | 9.63 ms | 258 | 9.27 s |
NVMe/TCP loopback, smartwal (experimental) |
3.59 ms | 7.57 ms | 263 | 8.68 s |
| Local file-backed disk | 2.74 ms | 4.42 ms | 357 | 6.11 s |
- Before the fix, on the same pack and host, guest
fsyncp50 was 5.54 ms (ublk) and 5.87 ms (NVMe/TCP) against 2.74 ms local. - The fix removed an idle wait: a lone
Syncused to sit out the group-commit collection delay with nobody to batch with. Onwalstore-chunkthe group-commit wait fell to about 8 µs (histogram p50 bucket), and a backendSyncnow takes about 1.2 ms on average (mean over the gate window). Each guestfsynccauses two backend syncs. - All four Seaweed Block setups passed a gate that every guest
fsyncreaches the backend sync (at least 2,000 flushes and 2,000 backend syncs per run); an unsafe-cache control showed zero. - The other workloads (
npm ci,git clone, untar,find+stat) stayed at local-disk speed. - One time window, 3 runs per setup: descriptive, not a performance gate.
Snapshot and fork cost (a 10 GiB volume written as 2,560 chunks of 4 MiB;
median of 3). This is a host-side proxy, not a guest or network run: chunks are
local files on a native Linux host, and filer metadata calls use a
deterministic model, so network latency, guest fsync and the block frontend
are excluded.
| Flat manifest | Two-level manifest (current) | |
|---|---|---|
| HEAD size | 261,531 B | 2,172 B |
| Snapshot | 5.79 ms | 0.18 ms |
| Fork | 10.67 ms | 0.29 ms |
In the same proxy, a cut that writes 64 dirty chunks (256 MiB) took a median 624 ms with one upload at a time and 434 ms with 8 parallel uploads.
Workspace lifecycle on two hosts (Firecracker VMs, SeaweedFS chunk backend):
- 35 of 35 checks passed:
- create;
- write;
- snapshot S1 and S2;
- fork from S1, which is independent of its parent;
- a clean move to the second host;
- a stale-holder replay, which is refused;
- delete the fork and S1, then GC.
- GC reclaimed 38 of 38 candidate chunks, and every reclaimed chunk returns 404.
- Everything still referenced read back byte-identical, including the moved workspace's digest before and after GC.
Fault injection on the release candidate (v1.0.0-rc.3, 2026-11-28; five runs on one lab host, single-replica volumes, the same holder and object store; each run injected a process kill during a snapshot, a kill during a write, and a pause of the object store during a snapshot; process faults only, not a power-loss test):
- The durability checker judged 253 writes across the five runs: acknowledged writes lost = 0, and writes of unknown outcome landing after a later durable write = 0.
- Four of the five runs failed other checks: checks of operation outcomes (snapshot, move and restore results), including a restore target that could not be read and a restore whose outcome stayed unresolved. These are separate from the write-loss check above and were not found to be write loss; for the unresolved restore, the absence of loss was not established.
Planned hand-over between two machines (v1.0.0-rc.3, 2026-11-28; two lab hosts with NVMe disks, blockmaster with mutual TLS, single-replica volumes):
- A volume written with 512 blocks was sealed on one host (HEAD generation 4), revoked, acknowledged, and moved clean to the other host. It served there and read back all 512 written blocks, 0 mismatched.
- In the same run, a snapshot of a second volume was restored into a new volume on the other host, which read back its 512 blocks, 0 mismatched.
- A forced move after a host loss was not part of this run.
The lifecycle run above predates v1.0.0. In v1.0.0 the chunk path
(walstore-chunk) is the supported single-replica configuration; see the
v1.0.0 release note. The
agent workspace design describes how it works.