You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In general, it appears we are bottle-necked by disk. From my analysis it seems like up to 85% of time is spent waiting for disk on my machine (M2 macbook pro). Wins would probably be found in:
Batching DB operations where possible
Avoiding DB operations where possible (lots of stuff should be storeable in-memory, especially during initial sync)
Tuning DB commit behavior
Tuning LMDB sync behavior. Summary of these shown below.
Preliminary findings are that the network latency isn't actually that big of a deal.
Serial fetch (debug build): 8.8k blocks per minute
Batched fetch (debug build): 10.5k blocks per minute
Initial version of this is implemented in validator: fetch blocks with batched JSON-RPC during initial sync, reduce DB commits #236
Network calls does NOT seem to be a limiting factor here. Not sure this would yield anything.
Not related to speeding up directly, but should also do:
Notes
In general, it appears we are bottle-necked by disk. From my analysis it seems like up to 85% of time is spent waiting for disk on my machine (M2 macbook pro). Wins would probably be found in: