MATLAB processing speed using windows 7 vs windows server
이전 댓글 표시
I have a function that I run on two computers. Each using MATLAB 2014b, one runs windows 7 and has intel cpu with 12 cores, the other runs windows server 2008 and has amd cpu with 12 cores. Using the MATLAB profiler, the function runs in 1.6 seconds on the windows 7 machine and takes 3.6 seconds on the windows server machine. I have no idea why there would be such a difference, the only variables I see are the OS and the cpus but the cpus have comprable benchmark performance specs and shouldn't be the issue. I'm remotely loging in to the windows server and the MATLAB GUI is slower to use but that shouldn't effect the performance of the function. From searching around, I couldn't find any solutions to this type of problem, does anyone have any suggestions?
답변 (1개)
Jan
2015년 10월 4일
0 개 추천
Use the profiler to find out, which parts of the code are responsible for the different speed. It could be a virus scanner on one machine, accesss to the hard disk or a network drive, perhaps some cores of the server are occupied by other tasks or the problem matchs into the 1st level caches of the Intel, but not on the AMD cpu. Updating the command window can take a remarkable amount of time, so try to suppress it by using evalc to start your code.
댓글 수: 2
Kevin C
2015년 10월 5일
Steven Lord
2015년 10월 5일
Did you profile the code as Jan suggested? If so, post the bottleneck line or lines along with a couple lines before and after for context.
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!