Thicket thicket
ocaml
REPOS 9

Multicore covers libraries for effects, domains and concurrent programming.

W42.2026 · 12–18 Octocaml-multicore/eio

Features

  • Eio_unix.set_signal (merged, #956): Installs signal handlers that wake the scheduler via a pipe, fixing a race where signals arriving just before poll(2) were delayed until the next timer. Closes #732 and #946; supersedes #948.

  • Flow.Pi.simple_copy (merged, #954): Uses Read_source_buffer when the source supports it, avoiding an intermediate buffer allocation. New Eio_mock.Flow.limit_reads and Eio_mock.Flow.trace_reads replace the removed set_copy_method.

Fixes

  • eio_posix wake-up pipe (merged, #957): Sched.clear_event_fd, Sched.wakeup, and Signal_fd.ack now retry on EINTR. Prevents crashes in long-running macOS servers where a concurrent pipe writer and a signal interrupt a read.

  • opam install -t eio_main (merged, #955): Chown tests are skipped when the opam sandbox blocks ownership changes, fixing a build failure.

Compatibility

  • Socket I/O (merged, #951): eio_posix now always uses recvmsg/sendmsg with MSG_DONTWAIT. Eio_unix.Net.import_socket_stream on files or pipes now raises Socket operation on non-socket rather than silently working.

Proposals

  • Executor_pool resilience (open, #959): The pool continues when some worker domains fail to start (e.g. ENOMEM from RLIMIT_MEMLOCK in containers) instead of killing the whole program. A second optional commit drops the per-domain io_uring fixed buffer, cutting memlock cost ~30×.

  • io_uring in containers (open, #958): Documents that Eio.Domain_manager domains have no io_uring fallback; ENOMEM under Docker's 8 MiB RLIMIT_MEMLOCK kills the process. Affects Semgrep CI and similar multi-process workloads.