Compiling codex uses too much memory
Resolved 💬 2 comments Opened Mar 27, 2026 by ryandesign Closed Mar 27, 2026
What issue are you seeing?
While compiling codex 0.117.0 in a virtual machine configured with 5.5 GB RAM running macOS 14 on a Mac mini with an M1 processor and 16 GB RAM running macOS 15, I observed a single rustc process consuming 25 GB of memory.
This is an unreasonably high amount of memory to consume. It is over four times the amount of installed RAM. It causes high swap usage, which slows compilation greatly and wears out my SSD unnecessarily.
What steps can reproduce the bug?
While compiling codex, use a system monitoring tool to observe memory usage.
What is the expected behavior?
Compilation should not use drastically more memory than is installed in the computer.
Additional information
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗