Large file ( 256 MB or more) gets replaced by 128 Bytes / Matlab Workspace Memory Overflow or Limit?
4 次查看(过去 30 天)
显示 更早的评论
Hi, I am running a simulation that takes days. Consequently, I am logging the simulation data in a data structure at every iterations and then to a file. I am observing a peculiar behavior with my simulation /data logging. I observer that the logged mat file gets replaced by 128 Byte file once it crosses 256 MB or so. I am not exactly sure of the size but I have observed the file size to be near 256 or bellow before being replaced by 128 byte file. I am wondering if anyone has similar problem and what is the work around? Is there a Matlab workspace memory limitations of up to 256MB or so? Is there a way to change that limit?
I am using Matlab 2011b release and I run several instance (up to 12 cores in my server) of my script to Matlab workers using the parallel computing toolbox. They simulations in each workers are independent running on Linux and the observation is across all the workers. Thus I assume its a setting or configuration of the Matlab.
0 个评论
回答(1 个)
Walter Roberson
2012-12-27
There is no limitation near 256 Mb. There is a limitation near 2 Gb, and that limitation can be overcome by saving with the -v7.3 flag.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Performance and Memory 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!