Overhead in parallel computing toolbox

8 ビュー (過去 30 日間)
Gonzalo Blanco
Gonzalo Blanco 2016 年 6 月 2 日
回答済み: Walter Roberson 2016 年 6 月 2 日
Hi, I have a problem with a parallel process.
I am calling a simulink model with a parfor loop to perform a kind of a montecarlo simulation.
if I run a scaling test, I obtain the following results in terms of speedup:
The hardware I'm using has two processors (Intel® Xeon® Processor E5-2630 v3). it means 8+8 physical cores.
It seems that there is any kind of overhead when using the two processors in the same parallel pool.
am I right? if yes, is there any way to solve or workaround this issue?

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 6 月 2 日
Yes, there can be a fair bit of overhead in parallel workers.
What you would ideally prefer to do is transfer as little data as possible with the workers, and have them do as much work as possible: you do this so that you amortize the overhead.
What you really do not want to do is transfer a lot of data and have the worker do very little: that wastes all of the time on setting up the task.

カテゴリ

Help Center および File ExchangeMulticore Processor Targets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by