chainbuilder: Accelerate #3998
Labels
chainbuilder
tools
item is related to tooling
WS: Maintenance 🔧
includes bugs, refactors, flakes, and tech debt etc
Context
For the node to test 8mb blocks I had to generate the chain using
chainbuilder
. It took ~2 weeks to generate 400k of blocks. A few days beforechainbuilder
finished, I looked athtop
and saw the process was running for12dxxx
(I didn't save a screenshot unfortunately and its impossible to know how much the process took after it finishes)Problem
This is sorta manageable for 8mb blocks, but for further sizes its gonna grow and it feels like tendency is quadratic.
Observing the
htop
I could see It only saturates like 20% of CPU for a second or two, then silence for sometime and back to 20%. This cycle repeats over and over. Fundamentally, there shouldn't be any issues with saturating all the CPU to progress chain generation, and this may suggest that some operations are sequential, while could be paralellized.Ideas
chainbuilder
produced artifacts consumable by a BN.The text was updated successfully, but these errors were encountered: