Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: allow overriding RSS limit for zig binary manually #23254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xtexx
Copy link
Contributor

@xtexx xtexx commented Mar 15, 2025

The max-RSS value had been bumped for several times during the 0.14.0 release cycle, showing that the current value is very close to the average RSS usage, with few redundant space.

This adds a new option to specify the RSS upper bound for compiling Zig executable file.

On AOSC OS, Zig 0.14.0 (& 0.13.0) fails to build on AArch64 and RISC-V 64, even when there are enough memory available on the build server.
I have not found a minimal repro for this, but compilation does failed when all default settings of AOSC OS were applied.

https://buildit.aosc.io/logs/72701-zig-0.14.0-riscv64-Estelle-buildit2-2025-03-15-03:47:45.txt https://buildit.aosc.io/logs/72698-zig-0.14.0-arm64-Zinfandel-2025-03-14-15:27:52.txt

The max-RSS value had been bumped for several times during the 0.14.0
release cycle, showing that the current value is very close to the
average RSS usage, with few redundant space.

This adds a new option to specify the RSS upper bound for compiling Zig
executable file.

On AOSC OS, Zig 0.14.0 (& 0.13.0) fails to build on AArch64 and
RISC-V 64, even when there are enough memory available on the build
server.
I have not found a minimal repro for this, but compilation does failed
when all default settings of AOSC OS were applied.

https://buildit.aosc.io/logs/72701-zig-0.14.0-riscv64-Estelle-buildit2-2025-03-15-03:47:45.txt
https://buildit.aosc.io/logs/72698-zig-0.14.0-arm64-Zinfandel-2025-03-14-15:27:52.txt

Signed-off-by: Bingwu Zhang <xtex@aosc.io>
xtexx added a commit to AOSC-Dev/aosc-os-abbs that referenced this pull request Mar 15, 2025
- Update to 0.14.0
- Relax RSS upper bound for ARM64 and RISC-V 64
  ziglang/zig#23254

Co-authored-by: 白铭骢 (Mingcong Bai) (@MingcongBai) <jeffbai@aosc.io>
xtexx added a commit to AOSC-Dev/aosc-os-abbs that referenced this pull request Mar 15, 2025
- Update to 0.14.0
- Relax RSS upper bound for ARM64 and RISC-V 64
  ziglang/zig#23254

Co-authored-by: 白铭骢 (Mingcong Bai) (@MingcongBai) <jeffbai@aosc.io>
MingcongBai added a commit to AOSC-Dev/aosc-os-abbs that referenced this pull request Mar 17, 2025
- Update to 0.14.0
- Relax RSS upper bound for ARM64 and RISC-V 64
  ziglang/zig#23254

Co-authored-by: 白铭骢 (Mingcong Bai) (@MingcongBai) <jeffbai@aosc.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant