Thread Subject: Multi-core and distributed computing toolbox?

Subject: Multi-core and distributed computing toolbox?

From: Evan Zamir

Date: 20 Feb, 2008 15:43:21

Message: 1 of 5

I would like to get some advice about multiple core/
processor computers and using the Distributed Computing
Toolbox. For example, I am considering purchasing a Mac Pro
with two quad-core processors. Would the DC engine be able
to utilize all 8 cores (8X speedup), or would it be limited
to using a single core on each processor (2X speedup) - or
perhaps, worst case, just a single core on one of the
processors (no speedup)? It's not clear to me how this
works. Thanks!

BTW, the speedup increases in () are assuming the bulk of
the program can be made "embarassingly parallel".

Subject: Multi-core and distributed computing toolbox?

From: Titus

Date: 20 Feb, 2008 16:20:44

Message: 2 of 5


"Evan Zamir" <zamir.evan.nospam@gmail.com> schrieb im Newsbeitrag
news:fphhqp$fnc$1@fred.mathworks.com...
>I would like to get some advice about multiple core/
> processor computers and using the Distributed Computing
> Toolbox. For example, I am considering purchasing a Mac Pro
> with two quad-core processors. Would the DC engine be able
> to utilize all 8 cores (8X speedup), or would it be limited
> to using a single core on each processor (2X speedup) - or
> perhaps, worst case, just a single core on one of the
> processors (no speedup)? It's not clear to me how this
> works. Thanks!
>
> BTW, the speedup increases in () are assuming the bulk of
> the program can be made "embarassingly parallel".

Hi,
the Distributed Computing Toolbox is able to use multiple
cores in the following sense: it supports up to 4 local workers.
Each worker is MATLAB instance running and they don't
care if they are on physically different machines or using
different cores on the same machine. So the speedup would
be 4 (or of course slightly below).
Using the Distributed Computing Engine the limitation of 4
is dropped, so using the Distributed Computing Toolbox
together with the engine you can use all of your eight cores.

Titus


Subject: Multi-core and distributed computing toolbox?

From: Arjav Chakravarti

Date: 20 Feb, 2008 17:33:45

Message: 3 of 5

Hello,

Also, you can try using a combination of explicit multiprocessing (DCT
workers) and implicit multiprocessing (threads in MATLAB).

For example, you could use 4 MATLAB workers, each of which calls
maxNumCompThreads(2). That might allow you to utilize all 8 cores on your
desktop.

For more information see
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/brdo29n-1.html#brdo29n-2

Arjav


"Titus" <titus.edelhofer@mathworks.de> wrote in message
news:fphk0s$jik$1@fred.mathworks.com...
>
> "Evan Zamir" <zamir.evan.nospam@gmail.com> schrieb im Newsbeitrag
> news:fphhqp$fnc$1@fred.mathworks.com...
>>I would like to get some advice about multiple core/
>> processor computers and using the Distributed Computing
>> Toolbox. For example, I am considering purchasing a Mac Pro
>> with two quad-core processors. Would the DC engine be able
>> to utilize all 8 cores (8X speedup), or would it be limited
>> to using a single core on each processor (2X speedup) - or
>> perhaps, worst case, just a single core on one of the
>> processors (no speedup)? It's not clear to me how this
>> works. Thanks!
>>
>> BTW, the speedup increases in () are assuming the bulk of
>> the program can be made "embarassingly parallel".
>
> Hi,
> the Distributed Computing Toolbox is able to use multiple
> cores in the following sense: it supports up to 4 local workers.
> Each worker is MATLAB instance running and they don't
> care if they are on physically different machines or using
> different cores on the same machine. So the speedup would
> be 4 (or of course slightly below).
> Using the Distributed Computing Engine the limitation of 4
> is dropped, so using the Distributed Computing Toolbox
> together with the engine you can use all of your eight cores.
>
> Titus
>


Subject: Multi-core and distributed computing toolbox?

From: Evan Zamir

Date: 20 Feb, 2008 22:08:02

Message: 4 of 5

Thanks, for your replies. That very much helps.

Subject: Multi-core and distributed computing toolbox?

From: Diego Midence

Date: 18 Apr, 2008 21:46:02

Message: 5 of 5

Hello Everybody,

In principle I have the same intention than Evan Zamir. I am
trying to use a server with 8 processors to carry out
distributed computation. Apparently the programs work well
when I use them in a normal desktop computer.

However, I realize that the total computing time is almost
the same than computing with one processors of the same
server. Moreover, the functions createTask(...),
set(Pop,'FileDependencies',{'Dist.m'}), waitForState(...),
and getAllOutputArgument(...) take 30%, 15%, 11%, and 9% of
the total computing time respectively!!!

Does anybody know any reason for this poor performance with
distributed computation in my case?

I thank you in advance any suggestion or advice.

Regards,

Diego Midence

 

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
multicore Diego Midence 18 Apr, 2008 17:50:08
distributed computing Diego Midence 18 Apr, 2008 17:50:08
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com