Why does parpool take so long to start up for the first time in a MATLAB session?

조회 수: 84 (최근 30일)
Edward
Edward 2014년 2월 17일
편집: Vlad 2018년 2월 8일
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
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
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

Vlad
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.

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by