From 8a3a4caafb0ac3d6e35d173aac9fb6ab721ce45b Mon Sep 17 00:00:00 2001 From: Alexandre Rulleau Date: Fri, 13 Feb 2026 14:03:23 +0100 Subject: [PATCH] ci(profiling): increase memory limit to prevent OOM during Rust compilation The profiling tests were failing due to OOM kills (signal 9, SIGKILL) when compiling large Rust crates like syn and regex-syntax with full optimization (--profile profiler-release --all-features). The combination of: - Building on ramdisk (/mnt/ramdisk/cargo) - Full optimization level - Parallel compilation of many crates - Large crates like syn (proc-macro library) exceeded the 4GB memory limit. Increased to 6GB to provide sufficient headroom for parallel optimized builds. --- .gitlab/generate-profiler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab/generate-profiler.php b/.gitlab/generate-profiler.php index a58260cb26..742558011a 100644 --- a/.gitlab/generate-profiler.php +++ b/.gitlab/generate-profiler.php @@ -19,8 +19,8 @@ image: registry.ddbuild.io/images/mirror/datadog/dd-trace-ci:${IMAGE_PREFIX}${PHP_MAJOR_MINOR}${IMAGE_SUFFIX} variables: KUBERNETES_CPU_REQUEST: 5 - KUBERNETES_MEMORY_REQUEST: 3Gi - KUBERNETES_MEMORY_LIMIT: 4Gi + KUBERNETES_MEMORY_REQUEST: 4Gi + KUBERNETES_MEMORY_LIMIT: 6Gi CARGO_TARGET_DIR: /mnt/ramdisk/cargo # ramdisk?? libdir: /tmp/datadog-profiling parallel: