[Rd] SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()

Simon Urbanek @|mon@urb@nek @end|ng |rom R-project@org
Sat Apr 13 16:16:22 CEST 2019

Sure, but that a completely bogus argument because in that case it would fail even more spectacularly with any other method like PSOCK because you would *have to* allocate n times as much memory so unlike mclapply it is guaranteed to fail. With mclapply it is simply much more efficient as it will share memory as long as possible. It is rather obvious that any new objects you create can no longer be shared as they now exist separately in each process.


> On Apr 13, 2019, at 06:05, Iñaki Ucar <iucar using fedoraproject.org> wrote:
> On Sat, 13 Apr 2019 at 03:51, Kevin Ushey <kevinushey using gmail.com> wrote:
>> I think it's worth saying that mclapply() works as documented
> Mostly, yes. But it says nothing about fork's copy-on-write and memory
> overcommitment, and that this means that it may work nicely or fail
> spectacularly depending on whether, e.g., you operate on a long
> vector.
> -- 
> Iñaki Úcar
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

More information about the R-devel mailing list