Why is Matlab only using 9% of my CPU power?
Mostra commenti meno recenti
Hi there!
I am running Matlab R2016b on a 3.5GHz Xeon processor and Win7 Enterprise 64 bit.
When it is "busy" with a calculation I only see a very small CPU usage. (It was 9%).
I want that to be more like 100%.
Thanks, Alex
11 Commenti
OCDER
il 26 Lug 2018
Why? With 100% CPU usage, you'll have to restart your computer as your OS freezes up. Is the code slow? Then you'll have to optimize the code, use parallel processing, etc. Use the profiler to figure out code bottleneck. https://www.mathworks.com/help/matlab/ref/profile.html
Alexander MacFarlane IV
il 26 Lug 2018
OCDER
il 26 Lug 2018
Are you in power saving mode by any chance? The OS can restrict CPU and slow things down.
Also, the fact it's 9% and not 95% could mean the bottleneck is in memory access and not CPU computation.
Alexander MacFarlane IV
il 26 Lug 2018
OCDER
il 26 Lug 2018
Interesting... I guess we'll wait to see what the profile result is.
Alexander MacFarlane IV
il 26 Lug 2018
Modificato: Image Analyst
il 26 Lug 2018
dpb
il 26 Lug 2018
All the profiler tells you is the relative amount of time which function(s) in your code are taking; it doesn't have any bearing on the overall CPU usage fraction.
How many cores does your machine take; ML isn't set up to take advantage of multiple cores by default I don't think so if it were 8 cores and the usage is on a total 9% would be something like 75-80% of one. That's mostly speculation, I'm not doing anything that takes long enough to worry about such any longer...
David Goodmanson
il 27 Lug 2018
Hi Alexander,
what happens when you run 'bench' ?
Alexander MacFarlane IV
il 27 Lug 2018
Stephen23
il 27 Lug 2018
Hello David.
I am leaving for home, but will run Bench tomorrow and report back here.
Thanks, Alex
Walter Roberson
il 27 Lug 2018
1 core out of 12 pegged would show up as just over 8% used.
Risposte (1)
Alexander MacFarlane IV
il 27 Lug 2018
0 voti
Categorie
Scopri di più su Graphics Performance in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
