Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Performance regression in block import after upgrading to polkadot 0.9.24 #12320

@DylanVerstraete

Description

@DylanVerstraete

We noticed a huge drop in performance when trying to sync an archive node on our existing networks with a node that has polkadot-0.9.24 depedencies. With around 5-8 peers the speed comes down to 25-35 blocks per second.

On substrate V3 the block import speed was around 100-200 blocks per second.

V3 node output:

2022-09-21 15:01:51  ⚙️  Syncing 138.6 bps, target=#2418956 (6 peers), best: #5110 (0x5df0…b1a8), finalized #4608 (0x9d01…9736), ⬇ 109.2kiB/s ⬆ 2.6kiB/s    
2022-09-21 15:01:56  ⚙️  Syncing 135.8 bps, target=#2418957 (6 peers), best: #5789 (0x5a8b…fcfe), finalized #5632 (0xc521…f20f), ⬇ 0.9kiB/s ⬆ 0.3kiB/s    
2022-09-21 15:02:01  ⚙️  Syncing 130.2 bps, target=#2418958 (6 peers), best: #6440 (0xced8…f40e), finalized #6144 (0x77b4…0c34), ⬇ 5.0kiB/s ⬆ 4.4kiB/s    
2022-09-21 15:02:06  ⚙️  Syncing 126.6 bps, target=#2418959 (6 peers), best: #7073 (0xfcb6…5719), finalized #6656 (0xa670…97ed), ⬇ 65.0kiB/s ⬆ 2.9kiB/s    
2022-09-21 15:02:11  ⚙️  Syncing 121.4 bps, target=#2418959 (6 peers), best: #7680 (0x667e…52e0), finalized #7680 (0x667e…52e0), ⬇ 0.4kiB/s ⬆ 0.7kiB/s    
2022-09-21 15:02:16  ⚙️  Syncing 114.6 bps, target=#2418960 (6 peers), best: #8253 (0x6418…49ab), finalized #8192 (0x9c83…c5fd), ⬇ 0.6kiB/s ⬆ 0.2kiB/s    
2022-09-21 15:02:21  ⚙️  Syncing 111.8 bps, target=#2418961 (6 peers), best: #8812 (0x076b…da76), finalized #8704 (0x1676…2515), ⬇ 524.2kiB/s ⬆ 17.8kiB/s    
2022-09-21 15:02:26  ⚙️  Syncing 108.2 bps, target=#2418962 (6 peers), best: #9353 (0x40ac…82e4), finalized #9216 (0xac74…eec9), ⬇ 3.0kiB/s ⬆ 1.4kiB/s    
2022-09-21 15:02:31  ⚙️  Syncing 105.4 bps, target=#2418963 (6 peers), best: #9880 (0xfd60…a549), finalized #9728 (0xc71f…ec9b), ⬇ 4.5kiB/s ⬆ 3.7kiB/s  

Polkadot 0.9.24 output:

2022-09-21 15:21:57 ⚙️  Syncing 23.6 bps, target=#2419157 (6 peers), best: #4913 (0x3ccd…2eb0), finalized #4608 (0x9d01…9736), ⬇ 2.8kiB/s ⬆ 4.0kiB/s    
2022-09-21 15:22:02 ⚙️  Syncing 20.0 bps, target=#2419158 (6 peers), best: #5013 (0xece6…de66), finalized #4608 (0x9d01…9736), ⬇ 2.4kiB/s ⬆ 2.3kiB/s    
2022-09-21 15:22:07 ⚙️  Syncing 26.0 bps, target=#2419159 (6 peers), best: #5143 (0x1dc8…8b3a), finalized #5120 (0x766f…661f), ⬇ 1.5kiB/s ⬆ 1.8kiB/s    
2022-09-21 15:22:12 ⚙️  Syncing 27.6 bps, target=#2419160 (6 peers), best: #5281 (0x457a…d010), finalized #5120 (0x766f…661f), ⬇ 3.4kiB/s ⬆ 4.9kiB/s    
2022-09-21 15:22:17 ⚙️  Syncing 31.2 bps, target=#2419160 (6 peers), best: #5437 (0xa503…c895), finalized #5120 (0x766f…661f), ⬇ 33.1kiB/s ⬆ 3.4kiB/s    
2022-09-21 15:22:22 ⚙️  Syncing 29.2 bps, target=#2419161 (6 peers), best: #5583 (0x444d…f831), finalized #5120 (0x766f…661f), ⬇ 2.7kiB/s ⬆ 1.9kiB/s    
2022-09-21 15:22:27 ⚙️  Syncing 27.4 bps, target=#2419162 (6 peers), best: #5720 (0xaa40…1234), finalized #5632 (0xc521…f20f), ⬇ 2.7kiB/s ⬆ 2.6kiB/s    
2022-09-21 15:22:32 ⚙️  Syncing 27.6 bps, target=#2419163 (6 peers), best: #5858 (0xc038…9b78), finalized #5632 (0xc521…f20f), ⬇ 2.4kiB/s ⬆ 2.0kiB/s    
2022-09-21 15:22:37 ⚙️  Syncing 26.6 bps, target=#2419164 (6 peers), best: #5991 (0xf9ff…f28d), finalized #5632 (0xc521…f20f), ⬇ 41.1kiB/s ⬆ 4.0kiB/s    

Metadata

Metadata

Assignees

Labels

J2-unconfirmedIssue might be valid, but it’s not yet known.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions