This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Figure out why Phragmen is taking so long for staking #4313
Labels
I4-annoyance
The client behaves within expectations, however this “expected behaviour” itself is at issue.
I8-footprint
An enhancement to provide a smaller (system load, memory, network or disk) footprint.
U1-asap
No need to stop dead in your tracks, however issue should be addressed as soon as possible.
Milestone
At the end of every era, the chain stalls for some substantial period of time. This is likely due to Phragmen taking too long to execute, coupled with a timeout during block authoring that discards blocks if they take too long to evaluate when executed using wasmi (the slow interpreter).
We need to profile the wasmi execution of this using real data from the chain to confirm that it is taking longer than a few seconds to execute and see what of the algorithm is most problematic (trie i/o, general CPU, memory allocations, crypto), and whether there's a hidden O(N**2) complexity that we didn't see before.
The text was updated successfully, but these errors were encountered: