Skip to content

Commit

Permalink
no mo jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
tobz committed Sep 16, 2024
1 parent 539f1c9 commit d2701a0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 26 deletions.
21 changes: 0 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion bin/agent-data-plane/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ repository = { workspace = true }
[dependencies]
async-trait = { workspace = true }
bytesize = { workspace = true }
tikv-jemallocator = { version = "0.5", features = ["unprefixed_malloc_on_supported_platforms", "background_threads", "background_threads_runtime_support"] }
memory-accounting = { workspace = true }
saluki-app = { workspace = true }
saluki-components = { workspace = true }
Expand Down
5 changes: 2 additions & 3 deletions bin/agent-data-plane/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#![deny(warnings)]
#![deny(missing_docs)]
use std::{future::pending, time::Instant};
use std::{alloc::System, future::pending, time::Instant};

use memory_accounting::{allocator::TrackingAllocator, ComponentRegistry};
use saluki_app::{api::APIBuilder, prelude::*};
Expand All @@ -21,7 +21,6 @@ use saluki_core::topology::TopologyBlueprint;
use saluki_error::{ErrorContext as _, GenericError};
use saluki_health::HealthRegistry;
use saluki_io::net::ListenAddress;
use tikv_jemallocator::Jemalloc;
use tracing::{error, info};

mod components;
Expand All @@ -31,7 +30,7 @@ mod env_provider;
use self::env_provider::ADPEnvironmentProvider;

#[global_allocator]
static ALLOC: TrackingAllocator<Jemalloc> = TrackingAllocator::new(Jemalloc);
static ALLOC: TrackingAllocator<System> = TrackingAllocator::new(System);

const ADP_VERSION: &str = env!("ADP_VERSION");
const ADP_BUILD_DESC: &str = env!("ADP_BUILD_DESC");
Expand Down
1 change: 0 additions & 1 deletion docker/Dockerfile.agent-data-plane
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ FROM ${BUILD_IMAGE} AS builder

ARG TARGETARCH
ARG BUILD_PROFILE=release
ARG JEMALLOC_SYS_WITH_MALLOC_CONF=abort_conf:true,background_thread:true,narenas:2,tcache_max:512,oversize_threshold:1048576,dirty_decay_ms:2500,muzzy_decay_ms:2500

# Install basic utilities and an updated compiler/binutils toolchain, which is necessary for compiling.
#
Expand Down

0 comments on commit d2701a0

Please sign in to comment.