Add validator options to change priority of snapshot packager and RPC threads (v1.8) (#21020)

* Add function for changing thread's nice value

Linux only.

* Add validator option to change niceness of snapshot packager thread

* Add validator option to change niceness of RPC server threads

Fixes https://github.com/solana-labs/solana/issues/14556

* Run `./scripts/cargo-for-all-lock-files.sh tree`
This commit is contained in:
Ivan Mironov
2021-11-15 22:50:45 +05:00
committed by GitHub
parent a86fdebb3b
commit 8072635967
17 changed files with 304 additions and 6 deletions

View File

@@ -3277,6 +3277,7 @@ fn setup_snapshot_validator_config(
archive_format: ArchiveFormat::TarBzip2,
snapshot_version: snapshot_utils::SnapshotVersion::default(),
maximum_snapshots_to_retain: snapshot_utils::DEFAULT_MAX_SNAPSHOTS_TO_RETAIN,
packager_thread_niceness_adj: 0,
};
// Create the account paths