-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
Investigate long epoch transition during Pyrmont sync #2046
Comments
IMO we have likely milked as much performance out of things as reasonable and should just attempt to mitigate the slowness. For instance, there's not much that can be done regarding re-hashing the balances. It's just computationally intensive work that has to be done. If we yield back to the event loop in between our longer-running subtasks, it likely won't even matter that the epoch transition takes time. |
@wemeetagain I had a chat with Paul from Lighthouse and their epoch transitions take 20-30 ms, 100 times faster than ours. That's an insane difference that should be at least investigated. |
It looks like we might not be iterating thru our cached validators/balances where we can? |
not sure if we want to do a POC for it at this time. |
I think it's worth it! Using assembly script won't introduce new complexities such as multi-treading |
so I tried assemblyscript, one issue I had was OOM issue although I configured different |
current epoch transition for Pyrmont at around slot 363972 is 890ms. @ChainSafe/eth2-0 I think the last thing to do for this issue is to add |
Oh man, we have milked so much more performance out of this 🎉 Closing, add new issues for specific improvement strategies |
I was able to catch a 4.84s epoch transition in my local environment using Chrome profiler
An overview:
event loop lag somehow was at 1.5s only, I'm attaching the snapshot as well.
CPU-20210215T150254-4s-epoch-transition.cpuprofile.zip
The text was updated successfully, but these errors were encountered: