Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Out of memory in matlab32 in ubuntu32

1 visualización (últimos 30 días)
yan
yan el 8 de Abr. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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

Respuestas (1)

Walter Roberson
Walter Roberson el 8 de Abr. de 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 comentario
Daniel Shub
Daniel Shub el 8 de Abr. de 2012
I think the memory needs to be continuous also.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by