필터 지우기
필터 지우기

Memory usage constantly growing: efficient RAM usage in my script?

조회 수: 5 (최근 30일)
D.
D. 2013년 2월 12일
답변: Matt J 2017년 10월 12일
Hello,
I have a very long running MATLAB script working with variables which use 1 GB storage if I save them on harddisk with the save() command. The process goes like this: - calculating values - save values to file (1 GB) - repeat everything in a loop using the old variables
So I reuse my variables every loop iteration, but my RAM usage is constantly growing and at some point exceeds my memory and MATLAB crashes.
So my questions is: Is my process efficient with reusing my variables? I am wondering why my RAM usage is constantly growing.
Any help is welcome!
  댓글 수: 1
Jan
Jan 2013년 2월 12일
Without seeing the relevant part of the code, guessing the reasons for this behaviour is impossible.

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

답변 (1개)

Matt J
Matt J 2017년 10월 12일
You should check whether the re-used variables are changing size.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by