Why would Matlab's `rand(1,1e9)` make 64-bit Windows 7 unresponsive? -


when start new matlab session, rand(1,1e9); command causes 64-bit windows 7 become unresponsive. means once every few minutes, might respond mouse click or such few minutes back, otherwise, can't flip between apps, can't invoke task manager, , if task manager running before rand(1,1e9); command, can't scroll matlab on processes tab. don't out-of-memory message. clicking on matlab's "x" icon close app doesn't anything. ctrl-c doesn't anything, , neither break in unison 1-, 2-, , 3-key combination of shift, ctrl, , alt.

it might informative know rand(1,1e8); (10x fewer doubles) doesn't cause these problems , finishes in (relatively) no time @ all.

the memory info memory command is:

>> memory maximum possible array:     12782 mb (1.340e+10 bytes) * memory available arrays:     12782 mb (1.340e+10 bytes) * memory used matlab:       674 mb (7.068e+08 bytes) physical memory (ram):      8070 mb (8.462e+09 bytes)  *  limited system memory (physical + swap file) available. 

on few occasions in can kill matlab, os remains hardly responsive described above, when task manager shows memory usage go 7.9gb zero.

how can matlab's rand(1,1e9); cause persistent os irresponsiveness? assuming problem memory related, how can ensure matlab plays nicely os (and/or vice-versa) when these limits being bumped against?

please note not question how avoid bumping against memory limits, know can code around them. it's how avoid loss of control when limits bumped against can decide whether want interrupt or kill operation and/or app. example, matlab's memory allocation page shows 1e9 doubles takes 8e9 bytes, other memory requirements, i'm bumping against real , swap memory shown above. no matter if error, or command takes much, longer, still want matlab respond keyboard requests break. want rest of os responsive, including use of task manager kill matlab in event doesn't respond break request.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -