From 95948664c1c8ca6d3f9611fadbe178a96f8abb09 Mon Sep 17 00:00:00 2001 From: Guoteng Rao <3603304+grao1991@users.noreply.github.com> Date: Mon, 9 Oct 2023 22:07:13 -0700 Subject: [PATCH] [Storage] Increase the threshold of versions between two JMT snapshots. (#10437) --- storage/aptosdb/src/state_store/buffered_state.rs | 2 +- testsuite/single_node_performance.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/storage/aptosdb/src/state_store/buffered_state.rs b/storage/aptosdb/src/state_store/buffered_state.rs index 7c089ac9cd4d0..28bfbf18bc43b 100644 --- a/storage/aptosdb/src/state_store/buffered_state.rs +++ b/storage/aptosdb/src/state_store/buffered_state.rs @@ -23,7 +23,7 @@ use std::{ }; pub(crate) const ASYNC_COMMIT_CHANNEL_BUFFER_SIZE: u64 = 1; -pub(crate) const TARGET_SNAPSHOT_INTERVAL_IN_VERSION: u64 = 20_000; +pub(crate) const TARGET_SNAPSHOT_INTERVAL_IN_VERSION: u64 = 100_000; /// The in-memory buffered state that consists of two pieces: /// `state_until_checkpoint`: The ready-to-commit data in range (last snapshot, latest checkpoint]. diff --git a/testsuite/single_node_performance.py b/testsuite/single_node_performance.py index 9364038c1a313..3bed60eb2437e 100755 --- a/testsuite/single_node_performance.py +++ b/testsuite/single_node_performance.py @@ -73,15 +73,15 @@ class RunGroupConfig: # Local machine numbers will be higher. # fmt: off TESTS = [ - RunGroupConfig(expected_tps=22700, key=RunGroupKey("no-op"), included_in=Flow.LAND_BLOCKING), - RunGroupConfig(expected_tps=3200, key=RunGroupKey("no-op", module_working_set_size=1000), included_in=Flow.LAND_BLOCKING), - RunGroupConfig(expected_tps=15000, key=RunGroupKey("coin-transfer"), included_in=Flow.LAND_BLOCKING | Flow.REPRESENTATIVE), - RunGroupConfig(expected_tps=29000, key=RunGroupKey("coin-transfer", executor_type="native"), included_in=Flow.LAND_BLOCKING), - RunGroupConfig(expected_tps=12700, key=RunGroupKey("account-generation"), included_in=Flow.LAND_BLOCKING | Flow.REPRESENTATIVE), + RunGroupConfig(expected_tps=25000, key=RunGroupKey("no-op"), included_in=Flow.LAND_BLOCKING), + RunGroupConfig(expected_tps=3300, key=RunGroupKey("no-op", module_working_set_size=1000), included_in=Flow.LAND_BLOCKING), + RunGroupConfig(expected_tps=16000, key=RunGroupKey("coin-transfer"), included_in=Flow.LAND_BLOCKING | Flow.REPRESENTATIVE), + RunGroupConfig(expected_tps=34000, key=RunGroupKey("coin-transfer", executor_type="native"), included_in=Flow.LAND_BLOCKING), + RunGroupConfig(expected_tps=13000, key=RunGroupKey("account-generation"), included_in=Flow.LAND_BLOCKING | Flow.REPRESENTATIVE), RunGroupConfig(expected_tps=26500, key=RunGroupKey("account-generation", executor_type="native"), included_in=Flow.CONTINUOUS), - RunGroupConfig(expected_tps=20000, key=RunGroupKey("account-resource32-b"), included_in=Flow.LAND_BLOCKING), + RunGroupConfig(expected_tps=21000, key=RunGroupKey("account-resource32-b"), included_in=Flow.LAND_BLOCKING), RunGroupConfig(expected_tps=4050, key=RunGroupKey("modify-global-resource"), included_in=Flow.LAND_BLOCKING | Flow.REPRESENTATIVE), - RunGroupConfig(expected_tps=12500, key=RunGroupKey("modify-global-resource", module_working_set_size=10), included_in=Flow.LAND_BLOCKING), + RunGroupConfig(expected_tps=12800, key=RunGroupKey("modify-global-resource", module_working_set_size=10), included_in=Flow.LAND_BLOCKING), RunGroupConfig(expected_tps=140, key=RunGroupKey("publish-package"), included_in=Flow.LAND_BLOCKING | Flow.REPRESENTATIVE), RunGroupConfig(expected_tps=2600, key=RunGroupKey( "mix_publish_transfer",