필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Andi
Andi 2014년 2월 18일
댓글: José-Luis 2014년 2월 18일
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
José-Luis
José-Luis 2014년 2월 18일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by