Tune udp buffers and vmmap immediately (#9194) (#9217)

automerge
This commit is contained in:
mergify[bot]
2020-04-01 01:19:19 -07:00
committed by GitHub
parent 89e1d7300d
commit 1f794fb1da

View File

@ -114,6 +114,9 @@ fn main() {
let user = value_t_or_exit!(matches, "user", String); let user = value_t_or_exit!(matches, "user", String);
#[cfg(target_os = "linux")]
tune_kernel_udp_buffers_and_vmmap();
info!("Tune will service requests only from user {}", user); info!("Tune will service requests only from user {}", user);
unsafe { libc::umask(0o077) }; unsafe { libc::umask(0o077) };
@ -148,7 +151,7 @@ fn main() {
info!("Tuning the system now"); info!("Tuning the system now");
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
{ {
tune_kernel_udp_buffers_and_vmmap(); // tune_poh_service_priority(peer_uid);
} }
} }
} }