How to 100% overlay my entire MATLAB session running in parallel?

I have 9 Matlab jobs that I want to run with Matlab from my Mac terminal (MAC OS X 10.8.5 2 * 2.4GHz with 6-core Intel Xeon processor).

So, I open 9 tabs in the Terminal and in each of them I open a Matlab session using the command:

//Applications/MATLAB_R2014b.app/bin/matlab -nodesktop

Then, in each of these Matlab sessions, I run my program (which does not and cannot use parfor). The task is in progress.

But when I make the top of the terminal window, I find that in Matlab sessions only 1% to 45% of the CPU is used (and I suppose I have 12 cores!).

Any idea on what might be the problem? Can I charge a certain percentage of CPU usage?

I tried to put priority using

sudo renice -19 -p <PID number>

, , ( -19 0 +19).

;)

+4
1

@Olivier, 100% - , . / , IO.

, ,

>> for i = 1:1000000000000; i=i+1;end

15627 user       20   0 7161m 618m 110m S 102.0  0.4   2:44.14 MATLAB 

, 100% . , , , Matlab , . , .

+4

All Articles