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

Iñaki Ucar |uc@r @end|ng |rom |edor@project@org
Fri Apr 12 11:32:24 CEST 2019


On Thu, 11 Apr 2019 at 22:07, Henrik Bengtsson
<henrik.bengtsson using gmail.com> wrote:
>
> ISSUE:
> Using *forks* for parallel processing in R is not always safe.
> [...]
> Comments?

Using fork() is never safe. The reference provided by Kevin [1] is
pretty compelling (I kindly encourage anyone who ever forked a process
to read it). Therefore, I'd go beyond Henrik's suggestion, and I'd
advocate for deprecating fork clusters and eventually removing them
from parallel.

[1] https://www.microsoft.com/en-us/research/uploads/prod/2019/04/fork-hotos19.pdf

-- 
Iñaki Úcar



More information about the R-devel mailing list