Effacer les filtres
Effacer les filtres

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

5 vues (au cours des 30 derniers jours)
D.
D. le 12 Fév 2013
Réponse apportée : Matt J le 12 Oct 2017
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 commentaire
Jan
Jan le 12 Fév 2013
Without seeing the relevant part of the code, guessing the reasons for this behaviour is impossible.

Connectez-vous pour commenter.

Réponses (1)

Matt J
Matt J le 12 Oct 2017
You should check whether the re-used variables are changing size.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by