-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Take into account size as well in weight limiting. #7369
Conversation
No longer supported by runtime.
Random filtering of remote disputes got dropped.
bot bench $ runtime polkadot runtime_parachains::paras_inherent |
@eskimor https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/3088040 was started for your command Comment |
@eskimor https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/3088041 was started for your command Comment |
@eskimor https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/3088044 was started for your command Comment |
@eskimor https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/3088045 was started for your command Comment |
@eskimor Command |
…ains::paras_inherent
@eskimor Command |
@eskimor Command |
@eskimor Command |
bot bench $ runtime polkadot runtime_parachains::paras_inherent |
@eskimor https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/3089256 was started for your command Comment |
…chains::paras_inherent
@eskimor Command |
@eskimor Command |
bot bench $ runtime westend runtime_parachains::paras_inherent |
@eskimor https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/3090231 was started for your command Comment |
@eskimor https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/3090232 was started for your command Comment |
@eskimor Command |
…hains::paras_inherent
@eskimor Command |
bot bench $ runtime rococo runtime_parachains::paras_inherent |
@eskimor https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/3091553 was started for your command Comment |
@eskimor Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean PR, thanks!
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
Co-authored-by: Chris Sosnin <48099298+slumber@users.noreply.github.com>
I've discussed the results with @ordian and @sandreim and understood that my expectations are not correct. Bigger block times and finality lag is expected during disputes and the values above are acceptable. I ran another test today. What I did:
Some timestamps (times are in UTC on Jul 17th):
There are some outliers in terms of block import times but the node count is not too much - 2 to 6 nodes most of the time, one slot with around 50 nodes. I think it's safe to merge. |
bot merge |
* Take into account size as well in weight limiting. * Fix logging. * More logs. * Remove randomized selection in provisioner No longer supported by runtime. * Fix and simplify weight calculation. Random filtering of remote disputes got dropped. * Make existing tests pass. * Tests for size limiting. * Fix provisioner. * Remove rand dependency. * Better default block length for tests. * ".git/.scripts/commands/bench/bench.sh" runtime kusama runtime_parachains::paras_inherent * ".git/.scripts/commands/bench/bench.sh" runtime polkadot runtime_parachains::paras_inherent * ".git/.scripts/commands/bench/bench.sh" runtime westend runtime_parachains::paras_inherent * Update runtime/parachains/src/paras_inherent/mod.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> * Update runtime/parachains/src/paras_inherent/mod.rs Co-authored-by: Chris Sosnin <48099298+slumber@users.noreply.github.com> * Add back missing line. * Fix test. * fmt fix. * Add missing test annotation --------- Co-authored-by: eskimor <eskimor@no-such-url.com> Co-authored-by: command-bot <> Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> Co-authored-by: Chris Sosnin <48099298+slumber@users.noreply.github.com>
To avoid oversized blocks as well. We already have weight limiting in place, by using the
proof_size
component of weight to track block usage we can use all the existing logic to limit the size of the block equally as time weights.Also get rid of randomized selection in provisioner as all production chains already support prioritized selection. This simplifies the runtime code a bit and is no longer properly supported as of the code unification (enter/create_inherent) PR.