Thicket thicket
ocaml
REPOS 9

Multicore covers libraries for effects, domains and concurrent programming.

W24.2026 · 8–14 Jun

Multicore repository summaries

2 active · 7 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Incremental directory reading (merged): New Eio.Path.with_dir_entries and read_dir_entries APIs stream directory entries without materialising the full list. Benchmarks show ~13× speedup on eio_linux (1.46 s → 110 ms) for a 300k-entry tree. #821

  • Path.open_dir renamed to open_subtree (merged): The function that confines a Path.t to a subtree (via RESOLVE_BENEATH on Linux) now carries a name that signals the security restriction. Old name retained as a non-deprecated alias. #853

  • Pseudoterminal support (open): Eio_unix.Pty creates ptys via posix_openpt; a login_tty fork action starts a new session and dups the tty onto the child's stdio. Exposed as ?login_tty on Eio_unix.Process.spawn_unix. #531

  • Process-spawn errno propagation (open): Failed fork actions now report the child's errno to the parent, which raises Unix.Unix_error instead of a generic Failure. Adds Eio.Process.Argument_list_too_long (E2BIG) and maps ENOENT/EACCES/ENOEXEC to dedicated errors. #854

Fixes

  • eio_linux ENOMEM on ring init (merged): io_uring_queue_init failure due to insufficient memory now falls back to eio_posix instead of raising an unhandled Unix_error. #852

  • eio_linux scheduler simplification (merged): Fixed-buffer read/write retry logic removed from the scheduler; the scheduler now returns bytes transferred and the fiber re-issues if needed. Eliminates special-case job types and the file_offset distinction. #849

  • Windows backend: 100 % CPU on idle bidirectional copy (open, under investigation): A two-way Eio.Flow.copy proxy holds a full core on Windows while the same workload is idle on Linux. Minimal reproducer provided. #837

Compatibility and Releases

  • Fixed buffers and ZFS kernel bug (open proposal): On old ZFS versions, fixed-buffer I/O triggers a kernel bug requiring reboot. Proposal to disable fixed buffers by default in eio_linux or gate the uring backend on kernel ≥ 6.17. #845

ocaml-multicore/ocaml-uring

Permalink

Features

  • Merged: Uring.Socket creation now accepts an optional ~flags argument (default CLOEXEC), letting callers set socket flags at creation time without a separate fcntl call. (#151)
  • Open: per-operation RWF flags (e.g. RWF_DSYNC, RWF_NOWAIT) exposed on read/write submissions, enabling Eio_linux to skip redundant fsync and avoid buffer-cache pollution on large copies. Requires Linux 6.x for some flags. (#154)
  • Open: bindings for vectored readv/writev on fixed buffers; the prior C stubs were misnamed and did not issue vectored syscalls. (#155)

Compatibility and Releases

  • Open: buffer backing type switches from Bigarray/Cstruct to Bytes. Benchmarks show no I/O throughput regression, lower large-buffer allocation cost, and a small penalty for sub-2 KB buffers (clamped to 2 KB to stay immovable). (#153)
  • Closed (not merged): the earlier Cstruct-to-Bstruct slab-allocator experiment is superseded by the simpler Bytes approach in #153. (#101)
  • Closed (not merged): a Linux-specific Errno module was deemed redundant because Eio already handles retry via Unix_error; the author will revisit if specific codes prove necessary. (#152)
7 repositories · no changes