From e23941c59ba7b7f14cd318ce5b946f31d307106a Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Thu, 14 Sep 2023 22:35:43 +0200 Subject: [PATCH] chore(releasing): Use large pages for better OS compatibility (#18481) * chore(releasing): Try large pages for better OS compatibility Signed-off-by: Jesse Szwedko * Turns out the `env` block in Cargo.toml is unstable Signed-off-by: Jesse Szwedko * Move env config to .cargo/config.toml Signed-off-by: Jesse Szwedko --------- Signed-off-by: Jesse Szwedko --- .cargo/config.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 277730177c9eb..2d2f4cbf67086 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,6 +1,11 @@ [alias] vdev = "run --quiet --package vdev --" +[env] +# Build with large pages so that Vector runs on systems with 64k pages or less (e.g. 4k) to support +# CentOS 7, 8, and a few other Linux distributions. +JEMALLOC_SYS_WITH_LG_PAGE = "16" + [target.'cfg(all())'] rustflags = [ "-Dclippy::print_stdout",