- memory (RAM).
- time.
Memory pig?? Problem with kron function
조회 수: 3 (최근 30일)
이전 댓글 표시
W = kron(inv_covariance,I);
??? Out of memory. Type HELP MEMORY for your options.
Error in ==> kron at 34
K = A(ia,ja).*B(ib,jb);
inv_covariance = 11*11 double, I = ones(598,598)
I ran this code on Tuesday, totally worked. But since yesterday, failed to run.
>> memory
Maximum possible array: 200 MB (2.095e+008 bytes) *
Memory available for all arrays: 587 MB (6.157e+008 bytes) **
Memory used by MATLAB: 331 MB (3.468e+008 bytes)
Physical Memory (RAM): 3774 MB (3.957e+009 bytes)
- Limited by contiguous virtual address space available. Limited by virtual address space available.
I think there is enough space (Java heap space 943 MB) and tech support helped me to run this code on other computers that have the same operation system as mine and the code worked.
Does this occur to anyone before? Any suggestions? Thanks in advance!
댓글 수: 0
채택된 답변
Oleg Komarov
2011년 8월 4일
Your W will be around 300 MB and yes it is a common problem.
Any solution is not infinitely scalable in practice due to constraints:
댓글 수: 4
Oleg Komarov
2011년 8월 4일
It depends what you need it for...I use a rule of thumb (sorry not literate here). If I were to get too often java errors in the cmd window I would increase the heap space.
추가 답변 (3개)
Daniel Shub
2011년 8월 4일
Have you tried rebooting? You have 4 GB of RAM, MATLAB is using 331 MB, but can only find 587 MB free.
댓글 수: 2
Oleg Komarov
2011년 8월 4일
Reduce the Java heap space, I have the standard 128 MB. Also, what system are you running, how many applications do you have at startup?
Sean de Wolski
2011년 8월 4일
Can't you just open the task manager and look at what's using what? Close the program using the most memory... 300Mb of RAM is small for most of today's computers. You could also look at using Matt J's KronProd class which skips the full expansion.
댓글 수: 3
Sean de Wolski
2011년 8월 4일
Looking into using KronProd, if you have many of these computations to do, is still probably worth your time.
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!