Skip to content

Commit

Permalink
change chunk percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
eaypek-tfh committed Jan 24, 2025
1 parent 4ad063b commit 6a55375
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ env:
value: "true"

- name: SMPC__PAGE_LOCK_CHUNK_PERCENTAGE
value: "20"
value: "10"

- name: SMPC__CLEAR_DB_BEFORE_INIT
value: "true"
Expand Down
2 changes: 1 addition & 1 deletion deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ env:
value: "true"

- name: SMPC__PAGE_LOCK_CHUNK_PERCENTAGE
value: "20"
value: "10"

- name: SMPC__CLEAR_DB_BEFORE_INIT
value: "true"
Expand Down
2 changes: 1 addition & 1 deletion deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ env:
value: "true"

- name: SMPC__PAGE_LOCK_CHUNK_PERCENTAGE
value: "20"
value: "10"

- name: SMPC__CLEAR_DB_BEFORE_INIT
value: "true"
Expand Down
6 changes: 4 additions & 2 deletions iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,7 @@ async fn server_main(config: Config) -> eyre::Result<()> {
S3Store::new(db_chunks_s3_client.clone(), db_chunks_bucket_name.clone());

tokio::runtime::Handle::current().block_on(async {
let total_load_time = Instant::now();
tracing::info!("Page-lock host memory");
let dbs = [
(actor.left_code_db_slices.code_gr.clone(), IRIS_CODE_LENGTH),
Expand All @@ -1202,7 +1203,7 @@ async fn server_main(config: Config) -> eyre::Result<()> {
let n_page_lock_iters = 100 / config.page_lock_chunk_percentage;
let page_lock_chunk_size = config.max_db_size / n_page_lock_iters;
let dbs_clone = dbs.clone();
let now = Instant::now();
let mut now = Instant::now();
for (db, code_length) in dbs_clone {
let device_manager_clone = actor.device_manager.clone();
register_host_memory(
Expand Down Expand Up @@ -1235,6 +1236,7 @@ async fn server_main(config: Config) -> eyre::Result<()> {
}
});

now = Instant::now();
let mut load_summary_ts = Instant::now();
let mut time_waiting_for_stream = Duration::from_secs(0);
let mut time_loading_into_memory = Duration::from_secs(0);
Expand Down Expand Up @@ -1404,7 +1406,7 @@ async fn server_main(config: Config) -> eyre::Result<()> {
tracing::info!(
"Loaded {} records from db into memory in {:?} [DB sizes: {:?}]",
record_counter,
now.elapsed(),
total_load_time.elapsed(),
actor.current_db_sizes()
);

Expand Down

0 comments on commit 6a55375

Please sign in to comment.