Skip to content

Guidance on setting number of workers in crew_controller_local() #181

Closed Answered by wlandau
jack-davison asked this question in Q&A
Discussion options

You must be logged in to vote

Each local crew worker is an R process on your computer, just as with parallel::mclapply() or future::future() with future::plan(future::multisession). So whatever number for mc.cores or workers you would choose for other packages applies here too.

You will probably see most benefits from setting workers equal to the number of available cores on your machine. Anything more probably won't be much better, even with CPU hyperthreading. And of course, if you are running crew on a shared machine, e.g. the login node of a cluster, others will need cores too.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jack-davison
Comment options

Answer selected by jack-davison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants