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:
parent
39459085ef
commit
d7ba15cde8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue