Skip to content

feat: [EXC-1783] No execution overhead on low cycles#10096

Merged
alin-at-dfinity merged 3 commits into
masterfrom
alin/EXC-1783-no-execution-overhead-on-low-cycles
May 6, 2026
Merged

feat: [EXC-1783] No execution overhead on low cycles#10096
alin-at-dfinity merged 3 commits into
masterfrom
alin/EXC-1783-no-execution-overhead-on-low-cycles

Conversation

@alin-at-dfinity
Copy link
Copy Markdown
Contributor

@alin-at-dfinity alin-at-dfinity commented May 5, 2026

When a message execution is skipped due to low cycle balance, don't deduct the message execution overhead from the round instruction limit. The instruction overhead is intended to account for entering and exiting the sandbox, which does not apply here.

This will allow the "execution" of arbitrarily many messages per round on frozen (or close to frozen) canisters, which could drive up round duration. However, there are a lot of other limits in place (ingress messages in blocks, canister call fees, queue sizes) that make this a non-issue. Particularly given that the overhead for skipping a message execution is at least an order of magnitude lower than that of executing one.

When a message execution is skipped due to low cycle balance, don't deduct the message execution overhead from the round instruction limit. The instruction overhead is intended to account for entering and exiting the sandbox, which does not apply here.
@alin-at-dfinity alin-at-dfinity requested a review from a team as a code owner May 5, 2026 16:45
@github-actions github-actions Bot added the feat label May 5, 2026
Comment thread rs/execution_environment/src/scheduler.rs
Comment thread rs/execution_environment/src/scheduler/tests/limits.rs
@alin-at-dfinity alin-at-dfinity enabled auto-merge May 6, 2026 11:41
@alin-at-dfinity alin-at-dfinity added this pull request to the merge queue May 6, 2026
Merged via the queue into master with commit dc3040c May 6, 2026
37 checks passed
@alin-at-dfinity alin-at-dfinity deleted the alin/EXC-1783-no-execution-overhead-on-low-cycles branch May 6, 2026 12:42
pull Bot pushed a commit to bit-cook/ic that referenced this pull request May 13, 2026
…finity#10096)" (dfinity#10218)

This temporarily reverts commit
dc3040c.

That change introduced a potential issue with the OnLowWasmMemory hook.
Until we find the most appropriate fix that retains the intended
semantics, revert to the previous behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants