I keep platform-specific I/O edge cases here, including macOS terminal writes and an io_uring investigation. These are practical observations and investigation notes, not claims that either issue has been resolved.
I found that macOS's tty implementation in the kernel has a 1024 byte internal buffer limit for cooked mode.
After that buffer limit, writes succeed but the data is silently dropped.
iTerm2 works around this by sleeping ~16ms between writes.
In my io_uring investigation, I'm still trying to isolate a minimal reproduction and make it easily runnable.
I've so far isolated the io_uring issue to timerfd waiting on a read.
eventfd also works in the io_uring investigation.
Related: terminal i o architecture, terminal performance evidence, operating system internals