Independent IC review: main-memory size
All three payload sizes—100 MiB, 500 MiB and 2 GiB—produced identical metered instruction counts for the same operations. The larger existing linear-memory extent did not itself add metered work to these calls. This is a raw Wasm64 main-memory experiment, without the RSX allocator, Candid library, Rust containers or SDK wrappers. It isolates a different question from the ordinary BTreeMap benchmark.
The measured server is PocketIC 16, SHA-256 69e324bdb68d32d878b7a9504b1379f08f8d1921272bacb065b0fabb3d0f3792, IC revision fc21803c3c3a8dd452b3b58b959751c41fecb89c. The identical 1,928-byte probe Wasm has SHA-256 adc3a703b700a1805dc40b2330103b83092988f76f9e407deaf72f988b37d7cb in all three cohorts.
| Operation | Whole probe instructions | Payload-body instructions |
|---|---|---|
| No payload access | 164,535 | 293 |
| Read one 8-byte word | 244,591 | 80,349 |
| Read the same word 32 times, one update | 246,325 | 82,085 |
| Read 32 adjacent words, one update | 246,455 | 82,213 |
| Read 32 distant words, one update | 2,726,869 | 2,562,629 |
| Write one word | 324,595 | 160,353 |
| Write 32 distant words, one update | 5,286,997 | 5,122,757 |
| Read distant words in 32 separate updates, mean per update | 244,591 | 80,349 |
| Write distant words in 32 separate updates, mean per update | 324,595 | 160,353 |
Every entry above holds for every payload size and all three trials. The separate preparatory no-op measured 161,558 instructions for all sizes. Reading 1 MiB with 131,072 explicit word loads cost 9,308,857 whole instructions; it is a dense loop, not merely 16 region accesses.
The source makes address placement explicit. probe.rs, lines 119 and 176, grows memory once and fills every payload byte with 1 in earlier committed updates of at most 16 MiB. Page 0 holds argument and reply scratch; payload starts at 64 KiB. The measured loop at line 229 touches only its selected payload addresses. Whole counters run after reply and use exported Wasm globals, with the small observer/prepaid-tail qualification. The runner, line 66, places one untimed no-op before each interval and no queries, status calls or snapshots between its 32 updates. Query-side scratch/global mutations are checked to be discarded. Persistent writes have a continuing value oracle.
The pinned tracker subtracts access and dirty costs from the instruction counter, using 5,000 instructions per 4 KiB OS page. Its 64 KiB tracked region therefore costs 80,000 on first access and an additional 80,000 on first dirtying within an execution. The controlled-address results agree with that implementation. Address coverage is a source-derived prediction, not recorded fault telemetry. Separate updates receive separate tracking state.
Independent audit recomputed all 108 intervals, 666 measured updates and 167 committed fill updates. Fill ranges cover exactly 100/500/2,048 MiB without gaps or overlaps. Checksums were independently recomputed across all reads and persistent writes. Observer sums/counts/no-op deltas, bounds and region unions passed. Source, actual Wasm and server hashes match all cohorts; complete instruction vectors, including counter starts and ends, match across sizes. Main-memory metrics are 104,923,136 / 524,353,536 / 2,147,549,184 bytes, with zero stable bytes and an actual 3 GiB configured main-memory limit. Measurements do not grow memory. 100 MiB, 500 MiB, 2 GiB.
Initialization is separate and scales with filled bytes: 361,992,648 / 1,809,476,798 / 7,411,118,846 whole instructions across 7/32/128 committed fills. A lookup does not repeat that work. The experiment does not measure physical RAM residency, storage rent or pure replica wall time; recorded host elapsed time includes client-side oracle work. It also does not explain all state-dependent argument/allocator costs of the ordinary Rust heap fixture. It rules out treating allocated heap size alone as an automatic proportional metered charge for these controlled calls. Scheduler-only round overhead remains outside these canister counters, as described in the accounting audit.