Skip to content

asset-hub-kusama: use inmemorydb weights#918

Merged
alexggh merged 10 commits into
polkadot-fellows:mainfrom
alexggh:update_assethub_read_write_weights
Dec 1, 2025
Merged

asset-hub-kusama: use inmemorydb weights#918
alexggh merged 10 commits into
polkadot-fellows:mainfrom
alexggh:update_assethub_read_write_weights

Conversation

@alexggh

@alexggh alexggh commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Modify asset-hub-kusama to use the read/write costs computed in validate block on validator reference hardware, since these are weights that guarantee the blocks will pass validation and make it on the relay chain.

This were obtained with the benchmark created here: paritytech/polkadot-sdk#8069.

Part of: #800

Modify asset-hub-kusama to use the read/write costs in validate block on
validator reference hardware, since these are weights that guarantee the
blocks will pass validation and make it on the relay chain.

This were obtained with the benchmark created here: paritytech/polkadot-sdk#8069.

Part of: paritytech/polkadot-sdk#6131
Fixes: polkadot-fellows#800

Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
@ggwpez

ggwpez commented Sep 22, 2025

Copy link
Copy Markdown
Member

How big of a change is this? I would like to avoid including big changes with the AHM runtime upgrade since we will do AHM Kusama very soon.

@alexggh

alexggh commented Sep 22, 2025

Copy link
Copy Markdown
Contributor Author

How big of a change is this? I would like to avoid including big changes with the AHM runtime upgrade since we will do AHM Kusama very soon.

@ggwpez, The whole point of this change is improving throughput for the SCC launch, which is after AHM migration, so I would say it can be merged after AHM Kusama happens.

@AndreiEres AndreiEres left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@muharem

muharem commented Sep 23, 2025

Copy link
Copy Markdown
Contributor

if not urgent, let merge this after the AHM release. if this merged we need to adjust some weights on RC side (control flow mechanics accounting for AH weights) and test it.

@alexggh

alexggh commented Sep 23, 2025

Copy link
Copy Markdown
Contributor Author

if not urgent, let merge this after the AHM release. if this merged we need to adjust some weights on RC side (control flow mechanics accounting for AH weights) and test it.

ACK, marked it as DNM so that it merges after AHM release.

@alexggh alexggh changed the title asset-hub-kusama: use inmemorydb weights [DNM] asset-hub-kusama: use inmemorydb weights Sep 23, 2025
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
@alexggh

alexggh commented Oct 24, 2025

Copy link
Copy Markdown
Contributor Author

@ggwpez @muharem, now that kusama migration has happened, can I move forward with this PR ?

@alexggh alexggh changed the title [DNM] asset-hub-kusama: use inmemorydb weights asset-hub-kusama: use inmemorydb weights Nov 13, 2025
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
@github-actions

Copy link
Copy Markdown

Review required! Latest push from author must always be reviewed

@alexggh alexggh merged commit 43ec4a2 into polkadot-fellows:main Dec 1, 2025
102 of 107 checks passed
@@ -0,0 +1,108 @@
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
//! DATE: 2025-09-10 (Y/M/D)
//! HOSTNAME: `versi-developer-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexggh we should probably also adjust cmd bench bot and re-trigger with other benchmarks/weights when doing releases, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These read/write weights, does not affect the results of the computed per-extrinsics weights, so no need to re-run them.

Yes, bench bot should be updated to also re-run these benchmarks every now and then and there is an issue for that #992.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants