From b543aee24e45d2fa5fbed8866ebdb4050d42f086 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 31 Mar 2020 22:53:36 -0700 Subject: [PATCH] Tune udp buffers and vmmap immediately (#9194) --- sys-tuner/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys-tuner/src/main.rs b/sys-tuner/src/main.rs index ffe05c175..eed88aa6f 100644 --- a/sys-tuner/src/main.rs +++ b/sys-tuner/src/main.rs @@ -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); } } }