Why does parpool take so long to start up for the first time in a MATLAB session?
78 次查看(过去 30 天)
显示 更早的评论
Hi all,
I've recently set up MATLAB's Distributed Computing Server for my cluster of 30 workers across three machines. When I run the parpool command for the first time in a MATLAB session, it takes over 30 minutes to connect to the 30 workers. Thereafter, it takes less than 3 minutes. Anyone know why this might be, and how to decrease the wait time?
I have two dual six-core machines (24) and one dual quad-core (8). I'm reserving one core for the client MATLAB session and another for the MATLAB Job Scheduler (at the recommendation of MathWorks). I'm running MATLAB R2013b on Windows 7 Pro 64-bit.
Thanks!
1 个评论
Thomas Ibbotson
2014-2-19
This is an unusually long time for a parallel pool to be created. Is MATLAB installed on a local disk on each of the machines?
If you contact technical support they should be able help you collect logs from the client and workers to find out what is causing the delay.
回答(2 个)
UNK
2016-6-28
编辑:UNK
2016-6-28
You can refer the answer for a similar question asked in stack exchange. matlabpool_very_slow_to_open_workers
0 个评论
Vlad
2018-2-8
编辑:Vlad
2018-2-8
I have a suggestion. When you start the session, write
parpool(1); delete(gcp);
Then continue your work. I can't explain entirely the phenomenon, but it seems that it needs a boost to preallocate some memory for the parpool command. That's why I guess it's good to start with fastest thing possible. I have remarked the same pattern of running slow for the first time when I plot and save as pdf. If I have twenty of such plotting functions, the first will take much more time than the rest. I know it's not a solution, but at least I can let you know that I totally get your problem over here.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!