Static air_interpreter_interface::MAX_AIR_SIZE

source ยท
pub static MAX_AIR_SIZE: u64
Expand description

These are RAM consumption related limits to be enforced by AquaVM. There are two enforcing modes in AquaVM: soft and hard limit. The mode is signalled by AquaVM function Invoker via its run parameters. Soft limit mode sets a set of flags to return to the Invoker. Hard limit mode forces AquaVM to return Uncatchable error if the limits are exceeded. The math behind the limits value is based on:

  • 4GB value that provder guaratees for a Computation Unit that also has 1 CPU core.
  • the fact that peak RAM consumption linearly depends on: particle size, number of instructions and their types. The limits values are to be re-considered after more RAM efficient in-memory representation.