From b751e4a450e6585edfcfacc71e47608436683b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 3 Dec 2025 01:06:31 +0100 Subject: [PATCH] set max_rss=1 everywhere to see what we actually get on all machines --- .forgejo/workflows/ci.yaml | 1 + build.zig | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index e0b39b6e27..c3daaa6a11 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -5,6 +5,7 @@ on: push: branches: - master + - max-rss-tuning workflow_dispatch: concurrency: diff --git a/build.zig b/build.zig index 51c4af91db..95ddc8336a 100644 --- a/build.zig +++ b/build.zig @@ -459,8 +459,7 @@ pub fn build(b: *std.Build) !void { .skip_linux = skip_linux, .skip_llvm = skip_llvm, .skip_libc = skip_libc, - // 3888779264 was observed on an x86_64-linux-gnu host. - .max_rss = 4000000000, + .max_rss = 1, })); test_modules_step.dependOn(tests.addModuleTests(b, .{ @@ -483,6 +482,7 @@ pub fn build(b: *std.Build) !void { .skip_llvm = skip_llvm, .skip_libc = true, .no_builtin = true, + .max_rss = 1, })); test_modules_step.dependOn(tests.addModuleTests(b, .{ @@ -505,6 +505,7 @@ pub fn build(b: *std.Build) !void { .skip_llvm = skip_llvm, .skip_libc = true, .no_builtin = true, + .max_rss = 1, })); test_modules_step.dependOn(tests.addModuleTests(b, .{ @@ -526,8 +527,7 @@ pub fn build(b: *std.Build) !void { .skip_linux = skip_linux, .skip_llvm = skip_llvm, .skip_libc = skip_libc, - // I observed a value of 5605064704 on the M2 CI. - .max_rss = 6165571174, + .max_rss = 1, })); const unit_tests_step = b.step("test-unit", "Run the compiler source unit tests"); @@ -721,7 +721,7 @@ fn addCompilerMod(b: *std.Build, options: AddCompilerModOptions) *std.Build.Modu fn addCompilerStep(b: *std.Build, options: AddCompilerModOptions) *std.Build.Step.Compile { const exe = b.addExecutable(.{ .name = "zig", - .max_rss = 7_800_000_000, + .max_rss = 1, .root_module = addCompilerMod(b, options), }); exe.stack_size = stack_size;