Possible computer hang from rigorous matlab calculation?
이전 댓글 표시
Forgive the ignorant question, I'm still somewhat new to Matlab, but help would be greatly appreciated:
I am doing spectral analysis on datasets of 500,000-1.5 million data points using the Chronux toolbox. I'm running 64-bit matlab 2011b with 8 GB ram and an I7 processor. I have recently run a few rather rigorous analysis where my computer hangs for several hours (hard-drive LED stays lit and sounds like it is running, mouse experiences choppy movement, no other programs including task manager respond, ctrl c does not stop the script). My question is: 1) is it possible for matlab to hijack all the memory causing these types of problems? 2)if so, how to limit the amount of memory available to matlab so it cannot cause this type of crash? I am not so concerned with whether the data runs or not (if it is simply too much data), I just want to establish a safeguard so this type of memory take-over could not happen and lock up my computer, especially if I were need to hard-reset while the HD is working. Thanks for any response.
답변 (3개)
Jan
2011년 10월 12일
The is no secure protection against a stuffed memory. And it is very easy to exhaust the memory by forgetting a pre-allocation or a small typo:
x = [];
for x = 1:1e7
x(i) = rand; % Brrrrrrrrrrr
end
y = rand(1e7); % Brrrrrrrrrrr, this is rand(1e7, 1e7)
So I'd kill the Matlab session and start to debug.
Walter Roberson
2011년 10월 12일
0 개 추천
awinde05
2011년 10월 12일
0 개 추천
댓글 수: 2
Walter Roberson
2011년 10월 12일
Actually my answer didn't suggest killing MATLAB: I suggested setting process limits, and gave the Linux & Mac-OS X methods of doing that.
I have been looking around a bit, and so far the answers I have seen are that there is no way to set per-process memory limits in Vista :(
Walter Roberson
2011년 10월 12일
Note to myself: http://blogs.technet.com/b/markrussinovich/archive/2009/07/08/3261309.aspx
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!