Program running for a long time: Shall I let it run?

2 views (last 30 days)
I am running a code on a Matlab instance from within the Terminal in Mac OSX 10.6 (Matlab R2011a, Macpro, 32 GB, ~900 GB free on startup disk)). After about 12 hours, the 'Startup disk has no more space available for application memory" message popped up. However, there was no discernible slowdown of the system. According to the "top" utility, the Matlab session in question alternates between "running" and "stuck". It is "stuck" (approximately) 4 seconds in a minute. As of now, I have let it run for almost 22 hours, with all other systems running smoothly (no freeze-ups, no crashes etc.). Activity Monitor says that swap used is 59 GB, out of ~344 GB. In the attached "top" output, the PID for the session in question is 13002. (There is a second instance of Matlab -53535- running something else with no problems.)
My questions are, for PID 13002: 2) Since it is "running" for most of the time, does that mean that it is still computing? 1) Shall I let it run? If yes, what should I be looking for?
Thanks in advance!
  1 Comment
José-Luis
José-Luis on 18 Feb 2014
If you're using swap space then I strongly recommend you refactor your program. That means ram sources are depleted and disk space is being used instead. A hard drive, even a solid state one, is order of magnitudes slower than ram. That might explain why your program is running so slow.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!