SSH cluster gets only one core running #664
Replies: 4 comments 2 replies
-
(I moved this from the doFuture issue tracker to the future discussion forum) I don't think this has anything to do with doFuture per se, so let's make sure you do indeed get five independent workers. You can do this using: > library(future)
> plan(cluster, workers = rep("user@ip", 5))
> futureSessionInfo() At the end of the output, you should see 'Worker R session details:' listing five workers, and the last line should be:
If you get that, then we know for sure that there are five workers running, and what you observe is due to something else. |
Beta Was this translation helpful? Give feedback.
-
Yes, it does report 5 workers being available
|
Beta Was this translation helpful? Give feedback.
-
Yes, it works. I have also tried adding some of the arguments I use in the
So what else could be a problem in the full call? |
Beta Was this translation helpful? Give feedback.
-
Thanks. I will keep trying to find the reason. If I launch one the the processes I can only see one CPU running, despite receiving back still the 5 PIDs. I am also testing it on two home computers, so permissions is not the issue. Thanks so much for your help |
Beta Was this translation helpful? Give feedback.
-
I used to setup doFuture to run a
foreach::%dopar%
loop over another machine usingand the process would be spawned over 5 cores.
It now appears to run on only one, as reported by htop in that machine.
I have tried directly calling
but the problem persists.
I have tested it on two different servers, with different Linux versions, but got the same result. This was working a couple of months ago.
Anything in the R session I should look for that could be causing it?
Beta Was this translation helpful? Give feedback.
All reactions