Unexpected disk write activity while Codex is running
What happened?
I noticed unexpectedly high disk write activity while Codex was running on macOS.
From the disk monitor screenshot:
- Overall disk write rate: about
58.9 MB/s - Overall disk read rate: about
1.7 MB/s - The process table shows
Codexwriting about127 KB/s - Another process name appears garbled/unreadable in the monitor and is writing about
33.6 MB/s
I am not sure whether the high write rate is caused directly by Codex or by a child/helper process related to Codex, but the activity appeared while using Codex and looked abnormal enough to report.
Expected behavior
Codex should not cause sustained or unexpected high disk writes during normal usage.
Environment
- Codex CLI:
codex-cli 0.142.4 - OS: macOS
26.5.1(25F80) - Architecture:
arm64
Screenshot details
I have a local screenshot of the disk monitor. Since this issue is being created via gh issue create, I am summarizing the visible values here instead of attaching the local image directly.
Additional notes
Please let me know if there are recommended diagnostics to collect, such as logs, process names, file paths being written, or a command to trace disk I/O for Codex/helper processes.
4 Comments
补充截图
<img width="560" height="1266" alt="Image" src="https://github.com/user-attachments/assets/485ecdb5-de1e-4bef-a536-5ebcbb67f86e" />
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
<img width="695" height="273" alt="Image" src="https://github.com/user-attachments/assets/0a130e3b-3a1e-4818-8a71-e27258281c7c" />
关闭codex 客户端后,不再出现此进程
Adding another macOS data point that may be related, with one important nuance: in my case the largest I/O was not only the
codexprocess itself, but a cascade triggered by Codex running heavyweight local verification commands.Environment/context:
xcodebuild testandxcodebuild clean buildwith-derivedDataPath .agent-work/derived-data/...Observed Activity Monitor Disk counters from the same period:
kernel_task: ~5.39 TB written, ~567 GB readmds_stores: ~128.99 GB written, ~523.62 GB readsyspolicyd: ~31.84 GB written, ~290.59 GB readmds: ~1.01 GB written, ~186.24 GB readfileproviderd: ~33.45 GB written, ~138.14 GB readcorespotlightd: ~6.41 GB written, ~72.16 GB readcodex: ~13.40 GB written, ~13.05 GB readInterpretation:
What would help:
xcodebuild, large test/build/archive commands, dependency installs, and similar commands as high-I/O operations and ask before running them..agent-work/derived-datafor compiler output by default..noindexDerivedData/cache location and offer cleanup afterward.This is especially important on MacBooks with soldered SSDs. Even if the direct
codexprocess writes less than the system services, Codex can still indirectly amplify disk I/O by choosing heavyweight verification workflows without warning.