mex - Cannot map zero-fill pages: Cannot allocate memory.

3 visualizaciones (últimos 30 días)
Francisco Garrido
Francisco Garrido el 12 de Sept. de 2019
Comentada: Fangjun Jiang el 12 de Sept. de 2019
I am calling N mex functions from matlab multiple times. Each mex function load, the firs time it's called a large csv file (half a gig), and generates two other similarly arrays. When doing this, matlab complains that "cannot map zero-fill pages: Cannot allocate memory."
Clearly this is a memory issue, but I don't know how to get around it.
Any suggestions are welcome.
  5 comentarios
Francisco Garrido
Francisco Garrido el 12 de Sept. de 2019
The functions have been compiled, and are working as expected when I load small datasets. When I load a large ones they crash giving the aforementioned error:
"cannot map zero-fill pages: Cannot allocate memory."
Fangjun Jiang
Fangjun Jiang el 12 de Sept. de 2019
It could be a ligit "out of memory" error if it only happens on larget data set. You could try to run it on source code (not the compiled mex-file) to pinpoint the problem and locate the source.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB Code Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by