fix: lower release opt-level to 2 for amd64 build memory budget #57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/amd64-build-opt-level-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #53.
Background
#56 added
CARGO_BUILD_JOBS=1+CODEGEN_UNITS=256and the amd64 build went from 1m11s to 2m7s before OOMing again. Same SIGKILL signature, same unrecoverable Forgejo logs.Fix
Drop release
opt-levelfrom 3 to 2. portal-relay is an I/O-bound network relay; the runtime difference between -O2 and -O3 is in the noise for the workload, and the rustc memory difference is measurable. -O2 is what most distros ship for serverside Rust binaries.Validation
cargo fmt --checkcleancargo test --locked86 passed, 3 ignoredcargo clippy --locked --all-targets -- -D warningscleanWill validate the actual amd64 image build with another
v0.0.0-debug-amd64-2tag after merge.