Skip to content

Commit

Permalink
feat: Increase per canister overhead
Browse files Browse the repository at this point in the history
  • Loading branch information
dsarlis authored and DFINITYManu committed Oct 10, 2024
1 parent f80e0f0 commit 6959aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rs/config/src/subnet_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ const MAX_INSTRUCTIONS_PER_SLICE: NumInstructions = NumInstructions::new(2 * B);
// to enter and exit the Wasm engine.
const INSTRUCTION_OVERHEAD_PER_EXECUTION: NumInstructions = NumInstructions::new(2 * M);

// We assume 1 cycles unit ≅ 1 CPU cycle, so on a 2 GHz CPU it takes about 4ms
// We assume 1 cycles unit ≅ 1 CPU cycle, so on a 2 GHz CPU it takes about 8ms
// to prepare execution of a canister.
const INSTRUCTION_OVERHEAD_PER_CANISTER: NumInstructions = NumInstructions::new(8 * M);
const INSTRUCTION_OVERHEAD_PER_CANISTER: NumInstructions = NumInstructions::new(16 * M);

// Metrics show that finalization can take 13ms when there were 5000 canisters
// in a subnet. This comes out to about 3us per canister which comes out to
Expand Down

0 comments on commit 6959aa4

Please sign in to comment.