Matlab code asking for too much virtual memory

조회 수: 12 (최근 30일)
Amir
Amir 2013년 9월 24일
Hello
So i am running my code on a remote computer in my university. Now the code used to run fine till the university did some upgrades to the computer. After the upgrades when i run the same code, the code stops after a couple of minutes as it is asking for a large amount of virtual memory.
I am working on the 2012b version. When the code stops, it reportes the phys. memory and virtual memory used: resources_used.mem=10919344kb resources_used.vmem=288093536kb
so as you can see it was asking for 288GB of VMEM!!! Does anyone know what might be the problem?

답변 (1개)

Walter Roberson
Walter Roberson 2013년 9월 24일
Have you tried running your code through the profiler and examining memory usage? You could insert something to make the code end early if running is expensive and you wanted to get an idea of what is going on.
  댓글 수: 2
Amir
Amir 2013년 9월 24일
Do you know i can check the memory usage through the profiler because i can only see the time used by each in the profiler but no mention about memory usage
Thanks

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

카테고리

Help CenterFile Exchange에서 Performance and Memory에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by