Skip to content

Commit 0b107b5

Browse files
perf(autobahn): raise the lane capacity to 60 blocks (#4632)
**Problem** - `avail.BlocksPerLane` (30) bounds each lane's unexecuted blocks, freed only by local execution and the local AppQC. - At full load producers stall on lane capacity, lane blocks arrive in bursts, and roadblocks become few and large, so execution has little queued to overlap. **Change** - Raise `BlocksPerLane` from 30 to 60 (6 × `MaxLaneRangeInProposal`). - A committee-sized bound was considered; per review it needs more thought for dynamic committees, so this keeps a constant. **Impact** (CLOB benchmark, 8 validators, same build, only the lane bound changed) - About +50% chain throughput against 30; 100 and 1000 measured the same as 60. - No lane-capacity waits, no mempool-full refusals, about 6x more roadblocks per second, and about 4x lower p99 execute latency. **Risk** - Memory and disk: up to 60 unpruned blocks per lane, held for every lane: about 120 MB per lane worst case at the 2 MB block limit. - Rollback: a node holding more than 30 unpruned blocks on a lane fails `restoreBlocks` on an older binary until its WAL drains. **Tests** - `avail`, `producer` and `p2p/giga` pass with `-race`. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3cb50e7 commit 0b107b5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • sei-tendermint/internal/autobahn/avail

‎sei-tendermint/internal/autobahn/avail/state.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import (
2222
// SubscribeLaneProposals.Recv after that lane's maps are dropped.
2323
var ErrLaneClosed = errors.New("lane closed")
2424

25-
const BlocksPerLane = 3 * types.MaxLaneRangeInProposal
25+
// BlocksPerLane is the number of unpruned blocks every node holds per lane, in memory and in the
26+
// block WAL. It also bounds the sealed blocks a producer's mempool holds until they execute locally.
27+
const BlocksPerLane = 6 * types.MaxLaneRangeInProposal
2628

2729
var (
2830
meters = metrics.Get()

0 commit comments

Comments
 (0)