interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / evidence / p3_nvme_atomicity_2026-09-25.md

55 lines · 2453 bytes Raw Blame History Rendered
1# P3 NVMe power-fail atomicity evidence (2026-09-25)
2
3Basis for the later recovery-architecture investigation. These results are
4preserved as-is; they must NOT be "fixed" in the Store-over-NVMe integration
5lane.
6
7## Native DGX Spark NVMe (read-only Identify; no writes/format/reconfig)
8
9Device: SAMSUNG MZALC4T0HBL1-00B07, FW NXHB202Q, PCI 0004:01:00.0 (a810), 4.10 TB.
10Commands: `sudo nvme id-ctrl /dev/nvme0`, `sudo nvme id-ns /dev/nvme0n1` (plus raw `-b`).
11
12```text
13awun=1023 awupf=0 ; mdts byte 77 = 7 ; nn = 1
14namespace: nsze=8,001,573,552 flbas=0 nlbaf=0 lbads=9 (512 B)
15 nawupf=0 nabsn=0 nabo=0 nabspf=0
16decoded: effective power-fail atomic unit = 1 x 512 B ; no atomic boundary
17Store root: 4096 B = 8 blocks @ 512 B ; 8 > 1
18NATIVE_GB10_STORE_ROOT_ATOMICITY: FAIL (ExceedsAtomicUnit { required: 8, guaranteed: 1 })
19```
20Only one LBA format (512-byte) is advertised (`nlbaf=0`), so no 4K-LBA path.
21
22## QEMU, 512-byte LBA (default harness geometry)
23
24```text
25NVME_ATOMICITY_IDENTIFY_QEMU: block_size=512 lbads=9 awupf_raw=0 nawupf_raw=0 nabspf_raw=0 nabo_blocks=0 effective_pf_blocks=1 boundary_blocks=-1
26NVME_STORE_ROOT_ATOMICITY_QEMU: FAIL (slot0=not_atomic(ExceedsAtomicUnit { required_blocks: 8, guaranteed_blocks: 1 }) slot1=...)
27```
28`QEMU_NVME_RW: PASS (smmu)` and `PASS (fail-closed)` are unaffected.
29
30## QEMU, 4096-byte LBA (compliant geometry)
31
32Device: `-device nvme,...,logical_block_size=4096,physical_block_size=4096`.
33
34```text
35NVME_GEOMETRY_QEMU: PASS (nsid=1 block_count=16384 block_size=4096)
36NVME_ATOMICITY_IDENTIFY_QEMU: block_size=4096 lbads=12 awupf_raw=0 nawupf_raw=0 nabspf_raw=0 nabo_blocks=0 effective_pf_blocks=1 boundary_blocks=-1
37NVME_STORE_ROOT_ATOMICITY_QEMU: PASS (slot0=atomic(effective=1) slot1=atomic(effective=1))
38QEMU_NVME_ATOMICITY_4K: PASS
39```
40
41## Reproduce
42
43```bash
44bash scripts/qemu_nvme_rw_test.sh # 512-byte: RW PASS, atomicity FAIL
45bash scripts/qemu_nvme_atomicity_test.sh # 4096-byte: atomicity PASS
46```
47
48## Consequence
49
50AIEN's System Store v1 commit design is correct under its stated storage
51contract (a 4096-byte root write that cannot tear). The native Spark SSD
52(512-byte LBA, AWUPF=0 -> 1 block) and the default QEMU namespace do not meet
53that contract. A compliant 4096-byte-LBA namespace does. Native adaptation
54requires either a compliant device or a recovery-design change for a torn
55inactive superblock; ADR 0015 is not revised by this evidence.