Overhead in parallel computing toolbox
8 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Walter Roberson
on 2 Jun 2016
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.
0 Comments
See Also
Categories
Find more on Multicore Processor Targets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!