Prev: matlab code
Next: add watch to a variable or property
From: Richard on 11 Aug 2010 05:41 I've been developing a simulation which I thought was working and set to run for 50 iterations(it takes around 40mins per iteration.) When I returned to my PC Matlab had shut down. I suspect that it had had some sort of memory issues(as I cant think of anything else). It definitely ran a few iterations without error. How can I check the memory usage of all variables between iterations?i.e. if something is growing too large??
From: Jan Simon on 11 Aug 2010 07:26 Dear Richard, > I've been developing a simulation which I thought was working and set to run for 50 iterations(it takes around 40mins per iteration.) When I returned to my PC Matlab had shut down. I suspect that it had had some sort of memory issues(as I cant think of anything else). It definitely ran a few iterations without error. How can I check the memory usage of all variables between iterations?i.e. if something is growing too large?? If something is growing so large, that your computer shuts down, it is impossible to observe this by a program. It is the nature of computer crashs, that they crash the computer. But you can write a log file, which tells you afterwards, which steps have been solved successfully. Close the file after each writing to flush the buffer. It is unlikely, that the computer shuts down after memory problems. Usually Matlab quits, sometimes even without a message. It is more likely that the computer quits for severe temperature problems, but usually the processor is throttled is such cases. I had a similar problem on friday 8 pm +- 10 min, when the cleaning woman touched a not well connecting powerline. The debugging was trivial: after three weeks filled with very strange ideas (moon phase, solar flares, automatic Windows updates or Microsoft in general, malware robots calling their home server, a hidden Matlab timer object, power spikes caused by the air conditioner or the railway, evil colleagues from the neighboring lab, Cern, ...) I decided to spend an evening in the lab. Very important: I took great care not to disturb or influence the situation! A simple question to the cleaning woman can destroy the reproducibility. But I hope, you will solve the problem faster. Good luck, Jan
|
Pages: 1 Prev: matlab code Next: add watch to a variable or property |