Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/evidence/p3_nvme_atomicity_2026-09-25.md # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers 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 3 Basis for the later recovery-architecture investigation. These results are 4 preserved as-is; they must NOT be "fixed" in the Store-over-NVMe integration 5 lane. 6 7 ## Native DGX Spark NVMe (read-only Identify; no writes/format/reconfig) 8 9 Device: SAMSUNG MZALC4T0HBL1-00B07, FW NXHB202Q, PCI 0004:01:00.0 (a810), 4.10 TB. 10 Commands: `sudo nvme id-ctrl /dev/nvme0`, `sudo nvme id-ns /dev/nvme0n1` (plus raw `-b`). 11 12 ```text 13 awun=1023 awupf=0 ; mdts byte 77 = 7 ; nn = 1 14 namespace: nsze=8,001,573,552 flbas=0 nlbaf=0 lbads=9 (512 B) 15 nawupf=0 nabsn=0 nabo=0 nabspf=0 16 decoded: effective power-fail atomic unit = 1 x 512 B ; no atomic boundary 17 Store root: 4096 B = 8 blocks @ 512 B ; 8 > 1 18 NATIVE_GB10_STORE_ROOT_ATOMICITY: FAIL (ExceedsAtomicUnit { required: 8, guaranteed: 1 }) 19 ``` 20 Only 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 25 NVME_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 26 NVME_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 32 Device: `-device nvme,...,logical_block_size=4096,physical_block_size=4096`. 33 34 ```text 35 NVME_GEOMETRY_QEMU: PASS (nsid=1 block_count=16384 block_size=4096) 36 NVME_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 37 NVME_STORE_ROOT_ATOMICITY_QEMU: PASS (slot0=atomic(effective=1) slot1=atomic(effective=1)) 38 QEMU_NVME_ATOMICITY_4K: PASS 39 ``` 40 41 ## Reproduce 42 43 ```bash 44 bash scripts/qemu_nvme_rw_test.sh # 512-byte: RW PASS, atomicity FAIL 45 bash scripts/qemu_nvme_atomicity_test.sh # 4096-byte: atomicity PASS 46 ``` 47 48 ## Consequence 49 50 AIEN's System Store v1 commit design is correct under its stated storage 51 contract (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 53 that contract. A compliant 4096-byte-LBA namespace does. Native adaptation 54 requires either a compliant device or a recovery-design change for a torn 55 inactive superblock; ADR 0015 is not revised by this evidence.