Tune udp buffers and vmmap immediately (#9194)

This commit is contained in:
Michael Vines 2020-03-31 22:53:36 -07:00 committed by GitHub
parent a74a64084d
commit b543aee24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -114,6 +114,9 @@ fn main() {
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);
unsafe { libc::umask(0o077) };
@ -148,7 +151,7 @@ fn main() {
info!("Tuning the system now");
#[cfg(target_os = "linux")]
{
tune_kernel_udp_buffers_and_vmmap();
// tune_poh_service_priority(peer_uid);
}
}
}