problems with processing. }The processing is slow
1 view (last 30 days)
Show older comments
yogan sganzerla
on 17 Jun 2015
Answered: Walter Roberson
on 18 Jun 2015
Helo, I have one problem with my computer.... I have one code that have about 6*10^8 interaction and the time necessay to run is 9 days...but my processing work in 7%. I want to know why the computer don't work in 50% (processing) and run more fast.
*see the picture Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151291/image.png)
0 Comments
Accepted Answer
Walter Roberson
on 18 Jun 2015
You appear to have 16 cores, and the 7% appears to refer to the average load across all of the cores. 16*.07 = 1.08, so on average you are keeping one CPU fully busy, plus a bit more for other things.
Even when you do not have the Parallel Computing Toolbox, MATLAB automatically uses multiple cores for some kinds of computation operations when the amount of data to be processed is "big enough" to make the overhead worth while. Your code either does not use those particular operations, or else your data vectors are not large enough to make it worth starting multiple cores.
Generally speaking, multiple cores will only be used when you write your code in vectorized form, and your arrays are at least 10000 elements (the exact number depends on the kind of operation being done.)
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Support Package for IP Cameras in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!