Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmarked weight too low: Benchmarked storage weight smaller than consumed storage weight. #214

Open
skunert opened this issue Aug 16, 2024 · 1 comment
Assignees

Comments

@skunert
Copy link

skunert commented Aug 16, 2024

In the logs I am seeing a lot of Benchmarked storage weight smaller than consumed storage weight..

This indicates that the benchmarking is not correct and transactions are using more weight than they should.

In some cases its not so severe:

2024-08-16 13:17:00 [Parachain] Benchmarked storage weight smaller than consumed storage weight. benchmarked: 11220 consumed: 11227 unspent: 0    

On others the difference is quite high:

2024-08-16 13:17:06 [Parachain] Benchmarked storage weight smaller than consumed storage weight. benchmarked: 18360 consumed: 24368 unspent: 0    
@skunert skunert changed the title Benchmarked storage weight smaller than consumed storage weight. Benchmarked weight too low: Benchmarked storage weight smaller than consumed storage weight. Aug 16, 2024
@valentinfernandez1
Copy link
Collaborator

valentinfernandez1 commented Aug 16, 2024

Upon looking at the block produced at 2024-08-16 13:17:06 I noticed that the marketplace was interacting with the Escrow pallet, which lead me to look back at PR #69 that updated pallet-marketplace to include an escrow-agent. Although the benchmarks were updated they don't properly reflect the worst path which is were the escrow agent is set to Some(accountId).

This leads to an underestimation of weight:
image

This is likely one of the root causes, however I will continue to review other pallet benchmarks to ensure that this is not the only problematic benchmark.

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

No branches or pull requests

2 participants