I am using Matlab R2010b as a driver for a bunch of external tools. Basically Matlab does some data transformations, writes stuff to disk, calls external scripts using system
and so on and so forth.
I have never had any problems with batch computations taking several days in Matlab but apparently I am doing something wrong now. Every now and then, at irregular intervals, the pipeline completely jams. Nothing happens, no external scripts are being called, love's labour's lost. Pressing ctrl+c
in Matlab gets things moving again. Because of this I assume the problem is Matlab.
There are no pauses in the pipeline nor am I using any variant of sleep sort. The holdups occur at completely random places in the code and seem to start occurring after at least one hour of working perfectly. Since the Matlab code is basically a giant loop, it's a complete mystery to me (logic posits that if the body of a loop works once it should keep working).
It doesn't seem to have anything to do with power management (and like I said, I've done numerous long-time computations successfully in the past). This is why I assume it has something to do with the combination of Matlab + scripts.
Has anyone experienced something remotely similar (and, hopefully, been able to solve it)?