|
I have a problem with Matlab's memory usage. I'm executing a script that runs this process 294272 times: read some .mat files (between 0.5 and 2 Mb each), works with 251x251 double matrices and computes variables. The problem is that the program takes about 30 hours to finish. When I check my system monitor while the script is been executed, it says that Matlab uses less than 1 Gb of my ram (there are 3 Gbs free). The 2 processors oscillate between 40% and 60% of capacity, and my swap is not used at all.
How can I make Matlab use all my computer resources? Is there a way to make Matlab use all the RAM available?
How can I make Matlab use both processors at full capacity?
Computer characteristics
Processor: Intel Core 2 Duo T5750 - 2.0 GHz
Memory: 4 Gb RAM (5 Gb swap)
OS: Ubunutu Hardy Heron 8.04 (kernel 2.6.24-24) 64-bit version
Hard Drive: 250 GB, SATA 1.5 Gb/s, 8 MB Cache, 5400 RPM
Matlab 7.7.0 (R2008b) 64-bit version
|