This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Tool to tune system parameters like PoH service priority #7155
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #7155 +/- ##
========================================
- Coverage 72.8% 72.6% -0.2%
========================================
Files 234 235 +1
Lines 49719 49787 +68
========================================
- Hits 36196 36193 -3
- Misses 13523 13594 +71 |
mvines
previously approved these changes
Nov 27, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move
Lines 34 to 38 in 5a30ef1
# Reference: https://medium.com/@CameronSparr/increase-os-udp-buffers-to-improve-performance-51d167bb1360 | |
sysctl_write net.core.rmem_max 134217728 | |
sysctl_write net.core.rmem_default 134217728 | |
sysctl_write net.core.wmem_max 134217728 | |
sysctl_write net.core.wmem_default 134217728 |
It would be good to add some documentation about solana-sys-tuner into book/src/book/src/running-validator/validator-start.md
mvines
reviewed
Nov 27, 2019
mvines
reviewed
Nov 27, 2019
carllin
added a commit
to carllin/solana
that referenced
this pull request
Dec 14, 2019
…ana-labs#7155)" This reverts commit 076e384.
carllin
added a commit
to carllin/solana
that referenced
this pull request
Dec 14, 2019
…ana-labs#7155)" This reverts commit 076e384.
carllin
added a commit
to carllin/solana
that referenced
this pull request
Dec 16, 2019
…ana-labs#7155)" This reverts commit 076e384.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The PoH service thread scheduling policy and priority cannot be tuned unless we use a shell script. Using the shell script is not a viable option for external nodes.
Summary of Changes
Added a new daemon
sys_tuner
that runs at a higher privilege. It listens on a local domain socket. When validator boots up, thepoh_service
connects to the socket. It triggers thesys_tuner
to look uppoh_service's
thread ID, and adjust its priority and scheduling policy.Fixes #6482