Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to set Matlab priority?

Subject: How to set Matlab priority?

From: Marco Wu

Date: 4 Apr, 2011 04:30:22

Message: 1 of 4

I am using Win7 64 bit and Matlab 2009 64 bit
My computer is a quad core computer. Each core only ran ~25% when a heavy data analysis was running. How I can fix it?
Thanks

Subject: How to set Matlab priority?

From: Rune Allnor

Date: 4 Apr, 2011 05:02:05

Message: 2 of 4

On Apr 4, 6:30 am, "Marco Wu" <alwaysma...@hotmail.com> wrote:
> I am using Win7 64 bit and Matlab 2009 64 bit
> My computer is a quad core computer. Each core only ran ~25% when a heavy data analysis was running.

Nope, that was one core running at 100% and the other three
being idle.

> How I can fix it?

Fix what?

Rune

Subject: How to set Matlab priority?

From: Steven_Lord

Date: 4 Apr, 2011 13:37:41

Message: 3 of 4



"Marco Wu" <alwaysmarco@hotmail.com> wrote in message
news:inbhgu$60$1@fred.mathworks.com...
> I am using Win7 64 bit and Matlab 2009 64 bit
> My computer is a quad core computer. Each core only ran ~25% when a heavy
> data analysis was running. How I can fix it?

There may be nothing TO fix.

If your computation is processor bound, then finding a way to multithread
your problem MAY speed things up. It may not, if the overhead of creating
and managing the threads outweighs the benefit you gain from threading.
If your computation is memory bound or bound by something other than
processor (like disk access or network) then threading the problem will
result in multiple threads all trying to hit the memory at once rather than
one thread.

In my opinion, you're asking the wrong question. The question you should be
asking is "Is my code fast enough?" and if the answer is yes, you're done.
If the answer is no, then investigate where the bottlenecks in your code are
located (use the Profiler) and attempt to remove them. Threading is one way
to speed up bottlenecks, but it's not the only way.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: How to set Matlab priority?

From: Matt J

Date: 4 Apr, 2011 13:50:20

Message: 4 of 4

"Marco Wu" wrote in message <inbhgu$60$1@fred.mathworks.com>...
> I am using Win7 64 bit and Matlab 2009 64 bit
> My computer is a quad core computer. Each core only ran ~25% when a heavy data analysis was running. How I can fix it?
========

As a test, you might try opening several MATLAB sessions and running the same heavy analysis on all of them simultaneously.

I'm no expert, but if the speed in each sessions is the same as when running a single session, then you would know that the single session of MATLAB is being restricted from resources...

Tags for this Thread

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.

Contact us