필터 지우기
필터 지우기

Only half of available cores being used in parfor

조회 수: 2 (최근 30일)
David Regan
David Regan 2014년 6월 18일
편집: Vishal_R 2014년 6월 30일
I have two computers running the same code in which there is a parfor loop. Both computers are running Windows 7 but have different numbers of cores and different versions of Matlab: Machine 1: 8 cores, Matlab 2013A Machine 2: 4 cores, Matlab 2014A On machine 1 I start a worker pool with the command matlabpool open 8. On machine 2 I start a worker pool with the command parpool 4 as this has superseded the matlabpool open command. On Machine 2, all 4 cores are in use at 100% during the simulation. On machine 1, 8 cores are in use for a minute or so at the beginning of the simulation and then 4 drop off to almost 0% and the other 4 continue at close to 100%. Why is machine 1 only using half of the available cores even though a pool of 8 workers has been established?
  댓글 수: 1
Matt J
Matt J 2014년 6월 18일
편집: Matt J 2014년 6월 18일
Maybe the other 4 cores had less work to do and finished their tasks early. It depends what tasks and how much data they were given. How similar in work & data size are the different iterations of the loop?

댓글을 달려면 로그인하십시오.

답변 (1개)

Vishal_R
Vishal_R 2014년 6월 30일
편집: Vishal_R 2014년 6월 30일
Looking at your problem statement, it is probable that other workers (in 8 workers scenario) have completed their task which was assigned to them and you cannot see those cores being used. I would suggest you to repeat this experiment with a huge input set and try to visualize your cores. Also, you can attach "matlab.exe" in process monitor to check what is happening in each worker process because Windows OS might be running other application processes on those four cores.
You can refer Process Monitor for your reference.

카테고리

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