Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Out of memory in matlab32 in ubuntu32

1 vue (au cours des 30 derniers jours)
yan
yan le 8 Avr 2012
Clôturé : MATLAB Answer Bot le 20 Août 2021
I run a code in 32bit matlab in ubuntu 11.10 386, it a 32bit system, but I face the "Out of memory" problem.
When I debug in step,
"free -m" in terminal:
total used free shared buffers cached
2985 1708 1277 0 121 556
I input "A = eye(14898)" in matlab, it is ok, and I input "free -m" again in terminal
total used free shared buffers cached
2985 1768 1217 0 121 556
I delete A in matlab, and input "A = eye(14899)", then error out of memory.
What does it mean? I have 1217m free memory, but I cannot allocat bigger than past just 1? How can I fixed it, I need to run "A = eye(size(superx,1)", the size(superx,1)= 17391

Réponses (1)

Walter Roberson
Walter Roberson le 8 Avr 2012
eye(14898) is about 1.65 gigabytes. Your target, eye(17391) would be just over 2 1/4 gigabytes.
1/2 to 1 Gb of your memory is being used for devices. See http://ubuntuforums.org/showthread.php?t=855511 In particular, memory for your video card reduces the amount available for the rest of your processes.
  1 commentaire
Daniel Shub
Daniel Shub le 8 Avr 2012
I think the memory needs to be continuous also.

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by