Thread Subject: matlab on a dual core

Subject: matlab on a dual core

From: Matt

Date: 12 Jan, 2007 18:21:44

Message: 1 of 6

I have a strange phenomenon occurring when using Matlab on a dual
core Dell laptop machine. If I run two Matlab programs with two
Matlab windows open at the same time, each of them runs much faster
(2x or 3x) than if I run a single program with only one Matlab window
open (or, two Matlab windows open but one program being idle). Has
anybody encountered a similar problem?

Subject: matlab on a dual core

From: Harmonic Software

Date: 22 Jan, 2007 10:57:57

Message: 2 of 6

In article <ef4af5a.-1@webcrossing.raydaftYaTP>, iacoviel@bcnospam.edu
says...
> I have a strange phenomenon occurring when using Matlab on a dual
> core Dell laptop machine. If I run two Matlab programs with two
> Matlab windows open at the same time, each of them runs much faster
> (2x or 3x) than if I run a single program with only one Matlab window
> open (or, two Matlab windows open but one program being idle). Has
> anybody encountered a similar problem?
>
You might be encountering some of the threading limitations of matlab.
You might look at O-Matrix, www.omatrix.com/bench.html, which will take
full advantage of both cores in a single instance of the executable.


Subject: matlab on a dual core

From: per isakson

Date: 22 Jan, 2007 13:26:00

Message: 3 of 6

Matt wrote:
>
>
> I have a strange phenomenon occurring when using Matlab on a dual
> core Dell laptop machine. If I run two Matlab programs with two
> Matlab windows open at the same time, each of them runs much faster
> (2x or 3x) than if I run a single program with only one Matlab
> window
> open (or, two Matlab windows open but one program being idle). Has
> anybody encountered a similar problem?
  
I cannot reproduce your result with my two processor (Xeon) Dell
Workstation with WinXP + R2006b. On the contrary each process is
about ten percent slower when the other is running.

I used this code for the test:

function cssm( N )
    val = rand( 1e6, 1 );
    while true
        tic
        for n = 1:N
            s1 = sin(val);
        end
        toc
        drawnow
    end
end

/ per

Subject: matlab on a dual core

From: dave

Date: 22 Jan, 2007 13:32:58

Message: 4 of 6

per isakson wrote:
>
>
> Matt wrote:
>>
>>
>> I have a strange phenomenon occurring when using Matlab on a
dual
>> core Dell laptop machine. If I run two Matlab programs with two
>> Matlab windows open at the same time, each of them runs much
> faster
>> (2x or 3x) than if I run a single program with only one Matlab
>> window
>> open (or, two Matlab windows open but one program being idle).
> Has
>> anybody encountered a similar problem?

i have seen strange results due to laptop power settings. newer
laptops can dynamically change processor speed that can cause odd
runtime speed changes. be sure to lock down the speed control on
max, lock hds on so they don't got to sleep, etc, so you can get
consistent speed results on a laptop.

Subject: matlab on a dual core

From: Matt

Date: 25 Jan, 2007 13:18:47

Message: 5 of 6

Thanks. Do you know how in Windows I can lock down speed control?

dave wrote:
>
>
> per isakson wrote:
>>
>>
>> Matt wrote:
>>>
>>>
>>> I have a strange phenomenon occurring when using Matlab on
a
> dual
>>> core Dell laptop machine. If I run two Matlab programs with
> two
>>> Matlab windows open at the same time, each of them runs
much
>> faster
>>> (2x or 3x) than if I run a single program with only one
> Matlab
>>> window
>>> open (or, two Matlab windows open but one program being
> idle).
>> Has
>>> anybody encountered a similar problem?
>
> i have seen strange results due to laptop power settings. newer
> laptops can dynamically change processor speed that can cause odd
> runtime speed changes. be sure to lock down the speed control on
> max, lock hds on so they don't got to sleep, etc, so you can get
> consistent speed results on a laptop.

Subject: matlab on a dual core

From: PB

Date: 25 Jan, 2007 18:31:38

Message: 6 of 6

On Thu, 25 Jan 2007 13:18:47 -0500, Matt wrote:
<TOP-posting repaired>
> dave wrote:
>>
>>
>> per isakson wrote:
>>>
>>>
>>> Matt wrote:
>>>>
>>>>
>>>> I have a strange phenomenon occurring when using Matlab on
> a
>> dual
>>>> core Dell laptop machine. If I run two Matlab programs with
>> two
>>>> Matlab windows open at the same time, each of them runs
> much
>>> faster
>>>> (2x or 3x) than if I run a single program with only one
>> Matlab
>>>> window
>>>> open (or, two Matlab windows open but one program being
>> idle).
>>> Has
>>>> anybody encountered a similar problem?
>>
>> i have seen strange results due to laptop power settings. newer
>> laptops can dynamically change processor speed that can cause odd
>> runtime speed changes. be sure to lock down the speed control on
>> max, lock hds on so they don't got to sleep, etc, so you can get
>> consistent speed results on a laptop.

> Thanks. Do you know how in Windows I can lock down speed control?
>

I would assume that this is a BIOS-setting.I think it's called
speed-step technology for intel-based processors?

/PB

Tags for this Thread

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.

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