Multicore covers libraries for effects, domains and concurrent programming.
Multicore repository summaries
2 active · 7 unchanged
ocaml-multicore/eio
PermalinkFeatures
-
Incremental directory reading (merged): New
Eio.Path.with_dir_entriesandread_dir_entriesAPIs stream directory entries without materialising the full list. Benchmarks show ~13× speedup oneio_linux(1.46 s → 110 ms) for a 300k-entry tree. #821 -
Path.open_dirrenamed toopen_subtree(merged): The function that confines aPath.tto a subtree (viaRESOLVE_BENEATHon Linux) now carries a name that signals the security restriction. Old name retained as a non-deprecated alias. #853 -
Pseudoterminal support (open):
Eio_unix.Ptycreates ptys viaposix_openpt; alogin_ttyfork action starts a new session and dups the tty onto the child's stdio. Exposed as?login_ttyonEio_unix.Process.spawn_unix. #531 -
Process-spawn errno propagation (open): Failed fork actions now report the child's
errnoto the parent, which raisesUnix.Unix_errorinstead of a genericFailure. AddsEio.Process.Argument_list_too_long(E2BIG) and maps ENOENT/EACCES/ENOEXEC to dedicated errors. #854
Fixes
-
eio_linuxENOMEM on ring init (merged):io_uring_queue_initfailure due to insufficient memory now falls back toeio_posixinstead of raising an unhandledUnix_error. #852 -
eio_linuxscheduler 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 thefile_offsetdistinction. #849 -
Windows backend: 100 % CPU on idle bidirectional copy (open, under investigation): A two-way
Eio.Flow.copyproxy 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_linuxor gate the uring backend on kernel ≥ 6.17. #845
ocaml-multicore/ocaml-uring
PermalinkFeatures
- Merged:
Uring.Socketcreation now accepts an optional~flagsargument (defaultCLOEXEC), letting callers set socket flags at creation time without a separatefcntlcall. (#151) - Open: per-operation
RWFflags (e.g.RWF_DSYNC,RWF_NOWAIT) exposed on read/write submissions, enablingEio_linuxto skip redundantfsyncand avoid buffer-cache pollution on large copies. Requires Linux 6.x for some flags. (#154) - Open: bindings for vectored
readv/writevon 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/CstructtoBytes. 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-Bstructslab-allocator experiment is superseded by the simplerBytesapproach in #153. (#101) - Closed (not merged): a Linux-specific
Errnomodule was deemed redundant becauseEioalready handles retry viaUnix_error; the author will revisit if specific codes prove necessary. (#152)