Skip to content

How to have _exactly_ 2 R processes with multicore or multisession #631

Answered by HenrikBengtsson
mmuurr asked this question in Q&A
Discussion options

You must be logged in to vote

Hi.

Regarding counting the main R session toward the number of workers or not, please see Issue #7 (WISH: It should be possible to adjust the number of assigned cores). As you see, this is an old topic, and in the early days, the main R session actually took up one "slot". This was then changed with the argument that it's confusing and that the main R session is most often idle or sleeping, e.g. future_lapply() launches futures or parallel workers and then poll for results once in a while, adding very little CPU load. This might of course not be true in all designs, but it's likely to be the most common one.

Next, when using workers = 1 with 'multisession' or 'multicore' the design is tha…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@HenrikBengtsson
Comment options

@HenrikBengtsson
Comment options

@mmuurr
Comment options

Answer selected by mmuurr
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