Skip to content

Commit

Permalink
feat(collator): added more work units params
Browse files Browse the repository at this point in the history
  • Loading branch information
SmaGMan committed Jan 24, 2025
1 parent a150a18 commit d897324
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ tycho-storage = { path = "./storage", version = "0.1.5" }
tycho-util = { path = "./util", version = "0.1.5" }

[patch.crates-io]
everscale-types = { git = "https://github.com/broxus/everscale-types.git", rev = "65f384824a0a10447376f22f609acc81a2e32346" }
everscale-types = { git = "https://github.com/broxus/everscale-types.git", rev = "28f4143e8cee79f1ae710e1a008dc6344ca42282" }

[workspace.lints.rust]
future_incompatible = "warn"
Expand Down
8 changes: 7 additions & 1 deletion cli/src/cmd/tools/gen_zerostate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,9 @@ fn make_default_params() -> Result<BlockchainConfigParams> {

work_units_params: WorkUnitsParams {
prepare: WorkUnitsParamsPrepare {
fixed_part: 500_000, // 500 ns
fixed_part: 500_000, // 500 ns
msgs_stats: 0,
remaning_msgs_stats: 0,
read_ext_msgs: 200, // 200 ns
read_int_msgs: 5_000, // 5 mcs
read_new_msgs: 500, // 500 ns
Expand All @@ -689,6 +691,10 @@ fn make_default_params() -> Result<BlockchainConfigParams> {
state_update_min: 15_000_000, // 15 ms
state_update_accounts: 500, // 0.5 mcs
state_update_msg: 2_000, // 2 mcs
create_diff: 0,
serialize_diff: 0,
apply_diff: 0,
diff_tail_len: 0,
},
},
})?;
Expand Down
1 change: 1 addition & 0 deletions collator/src/collator/do_collate/finalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ impl Phase<FinalizeState> {
state_update_min,
state_update_accounts,
state_update_msg,
..
} = wu_params_finalize;

let accounts_count_logarithm = accounts_count.checked_ilog2().unwrap_or_default() as u64;
Expand Down
1 change: 1 addition & 0 deletions collator/src/collator/do_collate/work_units.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ impl PrepareMsgGroupsWu {
read_int_msgs,
read_new_msgs,
add_to_msg_groups,
..
} = wu_params_prepare;

let read_ext_msgs_wu = msgs_reader_metrics
Expand Down

0 comments on commit d897324

Please sign in to comment.