Update block max cost limit to fix performance regession (#19276)

* increase block_cost_max by 10 times to accommodate updated account read and write costs; Otherwise during performace test, banking_stage will start reject and retry transactions in next block, result regressed performance.

* fix typo
This commit is contained in:
Tao Zhu 2021-08-18 11:38:44 -05:00 committed by GitHub
parent 39459085ef
commit d7ba15cde8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ pub const fn max_instructions_per_block() -> u64 {
}
pub const fn block_cost_max() -> u64 {
MAX_INSTRUCTION_COST * max_instructions_per_block()
MAX_INSTRUCTION_COST * max_instructions_per_block() * 10
}
pub const fn account_cost_max() -> u64 {
@ -23,7 +23,7 @@ pub const fn account_cost_max() -> u64 {
}
pub const fn compute_unit_to_us_ratio() -> u64 {
block_cost_max() / MAX_BLOCK_TIME_US
(MAX_INSTRUCTION_COST / AVG_INSTRUCTION_TIME_US) * SYSTEM_PARALLELISM
}
pub const fn signature_cost() -> u64 {