From 1a83a75445fe1e47303e4cd1af4e6c3b4df5050a Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Wed, 13 Nov 2024 11:55:43 -0600 Subject: [PATCH] Re-enable the MiMalloc allocator now that things are looking much more stable. --- src/rust/lqosd/src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rust/lqosd/src/main.rs b/src/rust/lqosd/src/main.rs index 1a954ca7..07a75b8a 100644 --- a/src/rust/lqosd/src/main.rs +++ b/src/rust/lqosd/src/main.rs @@ -43,8 +43,8 @@ use throughput_tracker::flow_data::get_rtt_events_per_second; use crate::ip_mapping::clear_hot_cache; // Use MiMalloc only on supported platforms -//#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] -//use mimalloc::MiMalloc; +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] +use mimalloc::MiMalloc; use tracing::level_filters::LevelFilter; #[cfg(feature = "flamegraphs")] @@ -54,9 +54,9 @@ use crate::throughput_tracker::flow_data::{ALL_FLOWS, RECENT_FLOWS}; #[cfg(feature = "flamegraphs")] use crate::throughput_tracker::THROUGHPUT_TRACKER; // Use JemAllocator only on supported platforms -//#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] -//#[global_allocator] -//static GLOBAL: MiMalloc = MiMalloc; +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] +#[global_allocator] +static GLOBAL: MiMalloc = MiMalloc; /// Configure a highly detailed logging system. pub fn set_console_logging() -> anyhow::Result<()> {