Can I control how much shared memory Matlab can access?

I'm running Matlab 2013 on Windows 7. In Task Manager I can see that I have 1.7 GB of free memory and 2.6 GB of cached/shared/standby memory. Seems like I can only use the free memory - if Matlab tries to use more it gives me an out of memory error. Why can't it access the cached memory? Is there a setting I can change to allow Matlab to access it?

2 件のコメント

Walter Roberson
Walter Roberson 2017 年 7 月 27 日
Are you using 32 bit or 64 bit MATLAB and Windows?
Courtney
Courtney 2017 年 7 月 27 日
64 bit.

サインインしてコメントする。

回答 (2 件)

Walter Roberson
Walter Roberson 2017 年 7 月 27 日

1 投票

3 件のコメント

Courtney
Courtney 2017 年 7 月 27 日
Thanks, that makes sense. Is there a way to downgrade the priority of the files in the cache?
Walter Roberson
Walter Roberson 2017 年 7 月 27 日
Possibly you have a different process eating memory when combined with a page file that is too small. See https://superuser.com/questions/173838/how-do-i-make-windows-7-less-aggressive-in-caching-memory
Courtney
Courtney 2017 年 7 月 27 日
I don't see any program eating memory in the Resource Monitor...

サインインしてコメントする。

Jan
Jan 2017 年 7 月 27 日

0 投票

You do not need only 1.7GB of RAM to allocate an array using 1.7GB, but this memory must be available as a contiguous block in addition. So perhaps Matlab uses the memory called "cached/shared/standby" (I'm not sure what this exactly means), but neither the free nor this memory includes a free block which is large enough.
Can you post the code, which causes the problem and the output of
feature memstats
You know the standard answer for out of memory problems? I've tried a lot of tricks and strategies. I've started programming on a ZX81 with 1kB and expanded it to 16kB RAM soon. Later I've struggeled with a 192MB Windows 2000 and 512MB Win2K machines. And after all these years of experiences with squeezing my data into the memory, I promise that this is the only reliable solution:
Install more RAM.

1 件のコメント

Courtney
Courtney 2017 年 7 月 27 日
Unfortunately, I've already maxed out the RAM on this computer.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

質問済み:

2017 年 7 月 27 日

コメント済み:

2017 年 7 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by