Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rs/config/src/subnet_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub const DEFAULT_REFERENCE_SUBNET_SIZE: usize = 13;
pub const SEV_REFERENCE_SUBNET_SIZE: usize = 7;

/// Costs for each newly created dirty page in stable memory.
const DEFAULT_DIRTY_PAGE_OVERHEAD: NumInstructions = NumInstructions::new(1_000);
const DEFAULT_DIRTY_PAGE_OVERHEAD: NumInstructions = NumInstructions::new(5_000);

/// Accumulated priority reset interval, rounds.
///
Expand Down
3 changes: 3 additions & 0 deletions rs/embedders/src/wasmtime_embedder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ impl WasmtimeEmbedder {
&mut *store,
self.log.clone(),
self.config.feature_flags.deterministic_memory_tracker,
self.config.dirty_page_overhead,
subtract_instruction_counter,
);

Expand Down Expand Up @@ -798,6 +799,7 @@ fn sigsegv_memory_tracker<S>(
store: &mut wasmtime::Store<S>,
log: ReplicaLogger,
deterministic_memory_tracker: FlagStatus,
page_overhead: NumInstructions,
subtract_instruction_counter: Arc<SignalMutex<dyn FnMut(u64) + Send>>,
) -> HashMap<CanisterMemoryType, Arc<SignalMutex<SigsegvMemoryTracker>>> {
let maybe_missing_page_handler_kind = match deterministic_memory_tracker {
Expand Down Expand Up @@ -843,6 +845,7 @@ fn sigsegv_memory_tracker<S>(
page_map,
maybe_missing_page_handler_kind,
memory_limits,
page_overhead.get(),
subtract_instruction_counter.clone(),
)
.expect("failed to instantiate SIGSEGV memory tracker"),
Expand Down
Loading
Loading