You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have makeClusterPSOCK(), or more precisely makeNodePSOCK(), set this option by default on each parallel worker.
There are a few alternatives,
We could make rscript_startup = quote(options(socketOptions = "no-delay")) the new default. The drawback with this is that code that already sets this argument explicitly with other values will override this default and not benefit from this faster setting.
Added Alt 3 in parallelly (>= 1.28.1-9003). The default can be controlled by option parallelly.makeNodePSOCK.socketOptions and env var R_PARALLELLY_MAKENODEPSOCK.SOCKETOPTIONS.
Background
Setting
options(socketOptions = "no-delay")
on parallel "snow" workers during their startup will significantly decrease the communication latency on Linux. This requires R (>= 4.1.0). See?socketConnection
for details.Proposal
Have
makeClusterPSOCK()
, or more preciselymakeNodePSOCK()
, set this option by default on each parallel worker.There are a few alternatives,
rscript_startup = quote(options(socketOptions = "no-delay"))
the new default. The drawback with this is that code that already sets this argument explicitly with other values will override this default and not benefit from this faster setting.rscript_options = list(socketOptions = "no-delay")
, cf. Issue makeClusterPSOCK(): Addrscript_options
#70.socketOptions
that sets this option on the parallel workers. It can default tosocketOptions = "no-delay"
.I'm leaning towards Alt 3.
cc/ @jeffkeller87
The text was updated successfully, but these errors were encountered: