Upgrade Knip back to 6 once oxc allocator supports constrained environments #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Summary
Knip was downgraded from 6 to 5 (commit
968cc72) because Knip 6 depends on oxc-parser, which reserves ~6GB of virtual address space for its raw transfer buffer. This allocation is rejected by the CI runner (3.7GB RAM, no swap) under heuristic overcommit. The oxc project plans to support constrained environments via an allocator revamp (oxc-project/oxc#20513). Alternatively, enablingvm.overcommit_memory=1on the VPS or upgrading RAM would resolve it. Once any of these unblock it, Knip can be upgraded back to 6 for its 2-4x speed improvements.Acceptance Criteria
vm.overcommit_memory=1is enabled on the VPS, OR VPS RAM is upgradedpnpm checkpasses locally and in CI on the Gitea runner