Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Out of memory in matlab32 in ubuntu32

1 visualizzazione (ultimi 30 giorni)
yan
yan il 8 Apr 2012
Chiuso: MATLAB Answer Bot il 20 Ago 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

Risposte (1)

Walter Roberson
Walter Roberson il 8 Apr 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 Commento
Daniel Shub
Daniel Shub il 8 Apr 2012
I think the memory needs to be continuous also.

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by