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

조회 수: 3 (최근 30일)
Francisco Garrido
Francisco Garrido 2019년 9월 12일
댓글: Fangjun Jiang 2019년 9월 12일
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
Francisco Garrido
Francisco Garrido 2019년 9월 12일
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 2019년 9월 12일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Code Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by