I’m having issues with
Unix.fork (). It fails reliably with
Uncaught exception: (Unix.Unix_error "Cannot allocate memory" fork "")
even though OCaml is using less than 1 GB of memory when fork is called and there is plenty of RAM and swap space available. The same program runs just fine on MacOS on my laptop.
I’m running OCaml 4.05.0 on the Ubuntu machine and OCaml 4.06.0 on the laptop.