필터 지우기
필터 지우기

Out of memory: Have to restart matlab

조회 수: 2 (최근 30일)
susan
susan 2012년 6월 22일
Hello,
Is there something besides 'pack ' and 'clear' to avoid having to restart matlab when working with large files (~500 MB) on a 4GB memory (Macbook Air) laptop?
Thanks, S
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 6월 22일
Note: If you use large arrays in MS Windows, then memory fragmentation will eventually require you to restart to get an array of maximum size.
I do not know the situation for OS-X.
I have never encountered this kind of situation on MATLAB for 64 bit Linux.
Ryan G
Ryan G 2012년 6월 22일
In windows there is the memory shield option
http://www.mathworks.com/help/techdoc/ref/matlabwindows.html
(search shieldoption)
Unfortunately I was not able to find a mac equivalent but this might help you find something.

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

답변 (2개)

Ken Atwell
Ken Atwell 2012년 6월 25일
Are you using a new-ish version of (64-bit) MATLAB on your Mac, or and older 32-bit version? I ask because 64-bit addressing should go a very long way to avoiding out-of-memory errors due to fragmentation.
Can you tell us what version of MATLAB you are using, and be more specific about the problems you are encountering that force you to restart MATLAB?
  댓글 수: 3
Ken Atwell
Ken Atwell 2012년 6월 25일
Thanks for the clarification. R2007b was a 32-bit release, and fragmentation over time is inevitable. If you have the means to migrate to newer 64-bit version (10b and later are only available in 64-bit form), I believe you will have a much better experience.
If you must remain on 32-bit MATLAB, Ryan's suggestions are probably the best you can do.
Walter Roberson
Walter Roberson 2012년 6월 25일
The MacBook Air with 4Gb was not released until 2011. The supported operating systems for that generation of MacBook Air are Lion and Mountain Lion. R2007b is, however, not supported on either of those: the earliest version supported on Lion is R2009a.
The hardware and software combination being used is thus not supported.
http://en.wikipedia.org/wiki/MacBook_Air#Specifications
http://support.apple.com/kb/HT1159

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


Ryan G
Ryan G 2012년 6월 22일
You can try utilizing
clear all; clear mex; clear functions;
to dig a little deeper while clearing but my guess is this would still eventually lead you OOM with no out.

카테고리

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