Skip to content

Reduce SIGVERIFY_SHRED_BATCH_SIZE from 1024 to 128 - #15994

Merged
KirillLykov merged 1 commit into
anza-xyz:masterfrom
KirillLykov:klykov/reduce-sigver-batch-size
Oct 15, 2026
Merged

KirillLykov merged 1 commit into
anza-xyz:masterfrom
KirillLykov:klykov/reduce-sigver-batch-size

Conversation

@KirillLykov

@KirillLykov KirillLykov commented Oct 12, 2026 •

Copy link
Copy Markdown

Problem

#15494

SIGVERIFY_SHRED_BATCH_SIZE=1024 is too large: up to 1024*64 shreds per batch. Even under load up to 2M shreds/s we found that 128 is enough (left code before PR and right after), the metric is sum over 2s window:

Screenshot 2026-10-15 at 10 06 44

The time elapsed per shred is the same in both cases as well.

The constant 128 is very conservative choice, under normal load we rarely fetch more than 2 consecutive batches.

Summary of Changes

  • Reduce sigverify batch size to 128.

Testing

Load-testing on live cluster (private cluster of 10 nodes, testnet, mainnet node).

@codecov-commenter

codecov-commenter commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.9%. Comparing base (929e9fb) to head (4bbf1f2).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #15994   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         939      939           
  Lines      371091   371091           
=======================================
+ Hits       304211   304260   +49     
+ Misses      66880    66831   -49     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KirillLykov KirillLykov changed the title Reduce SIGVERIFY_SHRED_BATCH_SIZE from 1024 to 64 Reduce SIGVERIFY_SHRED_BATCH_SIZE from 1024 to 128 Oct 15, 2026
`SIGVERIFY_SHRED_BATCH_SIZE=1024` is too large: up to `1024*64` shreds per batch.
Even under load up to 2M shreds/s we found that 128 is enough.
@KirillLykov
KirillLykov force-pushed the klykov/reduce-sigver-batch-size branch from 50f9b52 to 4bbf1f2 Compare October 15, 2026 08:36
@KirillLykov
KirillLykov marked this pull request as ready for review October 15, 2026 08:36
@KirillLykov
KirillLykov requested a review from a team as a code owner October 15, 2026 08:36
@KirillLykov
KirillLykov added this pull request to the merge queue Oct 15, 2026
Merged via the queue into anza-xyz:master with commit 7704748 Oct 15, 2026
48 checks passed
@KirillLykov
KirillLykov deleted the klykov/reduce-sigver-batch-size branch October 15, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants