Skip to content

chore(Core): Adjust instruction cost for accessing pages. #10440

Draft
michael-weigelt wants to merge 5 commits into
masterfrom
mwe/dmt
Draft

chore(Core): Adjust instruction cost for accessing pages. #10440
michael-weigelt wants to merge 5 commits into
masterfrom
mwe/dmt

Conversation

@michael-weigelt

Copy link
Copy Markdown
Contributor

A follow-up PR will refactor and unify the logic and constants.

DO NOT MERGE.

@github-actions github-actions Bot added the chore label Jun 11, 2026
@@ -353,7 +355,7 @@ impl DeterministicMemoryTracker {
}

// Charge 1 instruction per OS page accessed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's no longer 1 instruction.

@@ -364,7 +366,7 @@ impl DeterministicMemoryTracker {
// Charge 1 instruction per OS page dirtied.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

@@ -83,6 +83,8 @@ use crate::checksum;
#[cfg(feature = "sigsegv_handler_checksum")]
use std::ops::BitXor;

const INSTRUCTION_OVERHEAD_PER_OS_PAGE: u64 = 5_000;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you import DEFAULT_DIRTY_PAGE_OVERHEAD instead?

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