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

@@ -696,6 +696,7 @@ fn load_bank_forks(
archive_format: ArchiveFormat::TarBzip2,
snapshot_version: SnapshotVersion::default(),
maximum_snapshots_to_retain: DEFAULT_MAX_SNAPSHOTS_TO_RETAIN,
packager_thread_niceness_adj: 0,
})
};
let account_paths = if let Some(account_paths) = arg_matches.value_of("account_paths") {