Logo
Explore Help
Sign In
gaspersic/solana
1
0
Fork 0
You've already forked solana
Code Issues Pull Requests Projects Releases Wiki Activity
Files
v0.23.3
solana/sys-tuner/src/lib.rs

16 lines
393 B
Rust
Raw Permalink Normal View History

Tool to tune system parameters like PoH service priority (#7155) * New daemon to tune system parameters like PoH service priority * fixes for Linux * integrate with poh_service * fixes * address review comments * remove `dead_code` directive
2019-12-02 16:46:46 -08:00
use log::*;
pub const SOLANA_SYS_TUNER_PATH: &str = "/tmp/solana-sys-tuner";
Fix windows build (#7204)
2019-12-02 19:45:07 -07:00
#[cfg(unix)]
Tool to tune system parameters like PoH service priority (#7155) * New daemon to tune system parameters like PoH service priority * fixes for Linux * integrate with poh_service * fixes * address review comments * remove `dead_code` directive
2019-12-02 16:46:46 -08:00
pub fn request_realtime_poh() {
info!("Sending tuning request");
Fix windows build (#7204)
2019-12-02 19:45:07 -07:00
let status = unix_socket::UnixStream::connect(SOLANA_SYS_TUNER_PATH);
Tool to tune system parameters like PoH service priority (#7155) * New daemon to tune system parameters like PoH service priority * fixes for Linux * integrate with poh_service * fixes * address review comments * remove `dead_code` directive
2019-12-02 16:46:46 -08:00
info!("Tuning request status {:?}", status);
}
Fix windows build (#7204)
2019-12-02 19:45:07 -07:00
#[cfg(not(unix))]
pub fn request_realtime_poh() {
info!("Tuning request ignored on this platform");
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 172ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API