Upgrade Knip back to 6 once oxc allocator supports constrained environments #11

Open
opened 2026-03-24 09:35:45 +01:00 by dostulata · 0 comments
Owner

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, enabling vm.overcommit_memory=1 on 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

  • oxc-project/oxc#20513 (allocator revamp) is merged and released in an oxc-parser version compatible with Knip 6, OR vm.overcommit_memory=1 is enabled on the VPS, OR VPS RAM is upgraded
  • Knip is upgraded back to version 6 (or later)
  • pnpm check passes locally and in CI on the Gitea runner
  • No regression in unused code detection compared to Knip 5
## 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, enabling `vm.overcommit_memory=1` on 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 - [ ] oxc-project/oxc#20513 (allocator revamp) is merged and released in an oxc-parser version compatible with Knip 6, OR `vm.overcommit_memory=1` is enabled on the VPS, OR VPS RAM is upgraded - [ ] Knip is upgraded back to version 6 (or later) - [ ] `pnpm check` passes locally and in CI on the Gitea runner - [ ] No regression in unused code detection compared to Knip 5
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dostulata/initiative#11