Skip to content

chore: increase the F3 GMessage buffer size to 1024#13126

Merged
masih merged 4 commits intomasterfrom
masih/increase-gmessage-buffer-size
May 14, 2025
Merged

chore: increase the F3 GMessage buffer size to 1024#13126
masih merged 4 commits intomasterfrom
masih/increase-gmessage-buffer-size

Conversation

@masih
Copy link
Member

@masih masih commented May 12, 2025

The GMessage buffer size is a non-consensus breaking parameter. It's a headroom beyond which pubsub will start dropping messages before they are seen by the F3 message processing logic.

During passive testing of F3 on mainnet we increased this buffer from its default value of 128 twice. We still observe reports by SPs that indicate the increased value may still not be enough for all cases. Increasing the buffer size is a low-risk parameter to adjust since the increase in memory consumption is negligible.

The root cause of the need for larger buffer size is slow state read in Lotus which consequently slows the serialised flow of message processing in F3. Work is under way to improve the efficiency of Lotus state fetch call that should reduce the reliance on larger buffers. But considering the small cost of having slightly larger buffers, it's worthwhile to do both.

Fixes #13103

The GMessage buffer size is a non-consensus breaking parameter. It's a
headroom beyond which pubsub will start dropping messages before they
are seen by the F3 message processing logic.

During passive testing of F3 on mainnet we increased this buffer from
its default value of 128 twice. We still observe reports by SPs that
indicate the increased value may still not be enough for all cases.
Increasing the buffer size is a low-risk parameter to adjust since the
increase in memory consumption is negligible.

The root cause of the need for larger buffer size is slow state read in
Lotus which consequently slows the serialised flow of message processing
in F3. Work is under way to improve the efficiency of Lotus state fetch
call that should reduce the reliance on larger buffers. But considering
the small cost of having slightly larger buffers, it's worthwhile to do
both.

Fixes #13103
@github-project-automation github-project-automation bot moved this to 📌 Triage in FilOz May 12, 2025
@github-project-automation github-project-automation bot moved this to Todo in F3 May 12, 2025
@masih masih requested a review from Kubuxu May 12, 2025 19:46
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-project-automation github-project-automation bot moved this from Todo to In progress in F3 May 12, 2025
@github-project-automation github-project-automation bot moved this from 📌 Triage to ⌨️ In Progress in FilOz May 12, 2025
@masih masih changed the title Increase the F3 GMessage buffer size to 1024 chore: increase the F3 GMessage buffer size to 1024 May 12, 2025
@github-actions github-actions bot dismissed their stale review May 12, 2025 19:54

PR title now matches the required format.

@github-project-automation github-project-automation bot moved this from In progress to In review in F3 May 13, 2025
@github-project-automation github-project-automation bot moved this from ⌨️ In Progress to ✔️ Approved by reviewer in FilOz May 13, 2025
@masih masih enabled auto-merge (squash) May 14, 2025 02:12
@masih masih merged commit 51ffd2c into master May 14, 2025
94 of 95 checks passed
@masih masih deleted the masih/increase-gmessage-buffer-size branch May 14, 2025 13:20
@github-project-automation github-project-automation bot moved this from In review to Done in F3 May 14, 2025
@github-project-automation github-project-automation bot moved this from ✔️ Approved by reviewer to 🎉 Done in FilOz May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done
Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

Further increase the F3 GMessage buffer size

3 participants