Thicket thicket
ocaml
REPOS 9

Multicore covers libraries for effects, domains and concurrent programming.

October 2026Multicore

The long-standing race where a signal arriving just before the scheduler's poll call would sit undelivered until the next timer tick has been fixed. Eio now installs signal handlers that write to a pipe the scheduler already polls, so delivery is immediate. This closes issues that had been open since early in the project and affects any long-running server on macOS or BSDs where the old behaviour could delay a child-exit or termination signal by a full timer interval. (Source, Source)

Fixed io_uring buffers are now disabled by default in eio_linux, after it was found that older ZFS versions trigger a kernel bug requiring a reboot when those buffers are active. A new Backend_config option lets you re-enable them or tune queue depth without dropping to the lower-level Eio_linux.run entry point. The change also cuts a worker domain's locked-memory cost roughly thirtyfold, which matters in containers where the default eight-megabyte memory-lock limit is shared across every process of a user. A related proposal to let Executor_pool survive partial worker-domain failures under those same limits is still open for review. (Source, Source)

Windows process spawning has landed in Eio_unix.Process, using CreateProcess with restricted file-descriptor inheritance, a sandboxed working directory, and non-blocking cancellation. This gives Windows users the same process-management surface that POSIX platforms have had. (Source)

W44.2026 · 26 Oct – 1 NovMulticore

eio

Features

  • Eio_unix.Backend_config added; fixed buffers disabled by default (#960, merged 2026-11-01). Eio_main.run accepts ~config to set io_uring queue depth and fixed-buffer size without dropping to Eio_linux.run.
  • Executor_pool.create gains ?on_error (#959, open). A worker domain that fails to create an io_uring ring no longer kills the pool; the handler receives the exception and the pool continues.

Fixes

  • Fixed buffers off by default in eio_linux (#845, closed 2026-11-01). Old ZFS versions trigger a kernel bug with fixed buffers requiring a reboot; the default now avoids this.

Compatibility

  • Disabling the 256 KiB fixed buffer cuts a worker domain's locked-memory cost roughly 30×, relevant in containers where the default 8 MiB RLIMIT_MEMLOCK is shared across all processes of a uid (#958, open).
  • Eio_main.run falls back to eio_posix for the main domain on io_uring ENOMEM, but Domain_manager-started domains still raise failwith "io_uring is not available (ENOMEM)" (#958, open). The ?on_error proposal in #959 addresses this at the pool level.