Yesterday, I received some answers regarding how to query the memory (thread). I am now comparing two approaches, and I am getting different values.
When I deploy a canister and install its wasm, I obtain different values when comparing canister_status
and memory_size
:
Through canister_status
, I get a memory_size
of 30.02 MB, while core::arch::wasm32::memory_size(0)
returns 28 (approximately 1.75 MB) if I’m not mistaken.
I assume these two numbers indicate different things, but what am I missing?
Somehow give a brand new canster with only few heap data, I naively assumed that both would indicate the same size.