short-term fix for para inherent weight overestimation (#5082)
closes #849 ## Context For the background on this and the long-term fix, see https://github.com/paritytech/polkadot-sdk/issues/849#issuecomment-2247895862. ## Changes * The weigh files are renamed from `runtime_(parachains|common).*` to `polkadot_runtime_(parachains|common).*`. The reason for it is the renaming introduced in #4633. The new weight command and files are generated now include `polkadot_` prefix. * The WeightInfo for `paras_inherent` now includes `enter_empty` which calculates the cost of processing an empty parachains inherent. This cost is subtracted dynamically when calculating other weights (so the other weights remain the same) ## Benefits See https://github.com/paritytech/polkadot-sdk/issues/849#issuecomment-2247895862, but TL;DR is that we are not blocked on weights for scaling the number of validators and cores further. Resolved questions: - [x] why new benchmarks for westend are doing fewer db IOPS? Is it due polkadot-sdk update (db IOPS diff)? or the bench setup is no longer valid? https://github.com/polkadot-fellows/runtimes/blob/7723274a2c5cbb10213379271094d5180716ca7d/relay/polkadot/src/weights/runtime_parachains_paras_inherent.rs#L131-L196 Answer: see background section of #5270 TODOs: - [x] Rerun benchmarks for Rococo and Westend - [x] PRDoc --------- Co-authored-by: command-bot <>
Showing
- polkadot/runtime/parachains/src/builder.rs 8 additions, 7 deletionspolkadot/runtime/parachains/src/builder.rs
- polkadot/runtime/parachains/src/paras_inherent/benchmarking.rs 21 additions, 16 deletions...dot/runtime/parachains/src/paras_inherent/benchmarking.rs
- polkadot/runtime/parachains/src/paras_inherent/weights.rs 15 additions, 3 deletionspolkadot/runtime/parachains/src/paras_inherent/weights.rs
- polkadot/runtime/rococo/src/impls.rs 1 addition, 1 deletionpolkadot/runtime/rococo/src/impls.rs
- polkadot/runtime/rococo/src/lib.rs 16 additions, 16 deletionspolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/rococo/src/weights/mod.rs 16 additions, 16 deletionspolkadot/runtime/rococo/src/weights/mod.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_common_assigned_slots.rs 0 additions, 0 deletions...oco/src/weights/polkadot_runtime_common_assigned_slots.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_common_auctions.rs 0 additions, 0 deletions...me/rococo/src/weights/polkadot_runtime_common_auctions.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_common_claims.rs 0 additions, 0 deletions...time/rococo/src/weights/polkadot_runtime_common_claims.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_common_crowdloan.rs 0 additions, 0 deletions...e/rococo/src/weights/polkadot_runtime_common_crowdloan.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_common_identity_migrator.rs 0 additions, 0 deletions.../src/weights/polkadot_runtime_common_identity_migrator.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_common_paras_registrar.rs 0 additions, 0 deletions...co/src/weights/polkadot_runtime_common_paras_registrar.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_common_slots.rs 0 additions, 0 deletions...ntime/rococo/src/weights/polkadot_runtime_common_slots.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_configuration.rs 0 additions, 0 deletions.../src/weights/polkadot_runtime_parachains_configuration.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_coretime.rs 0 additions, 0 deletions...ococo/src/weights/polkadot_runtime_parachains_coretime.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_disputes.rs 0 additions, 0 deletions...ococo/src/weights/polkadot_runtime_parachains_disputes.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_hrmp.rs 0 additions, 0 deletions...me/rococo/src/weights/polkadot_runtime_parachains_hrmp.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_inclusion.rs 0 additions, 0 deletions...coco/src/weights/polkadot_runtime_parachains_inclusion.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_initializer.rs 0 additions, 0 deletions...co/src/weights/polkadot_runtime_parachains_initializer.rs
- polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_on_demand.rs 0 additions, 0 deletions...coco/src/weights/polkadot_runtime_parachains_on_demand.rs
Please register or sign in to comment