Increasing swap memory has not increased MATLAB available memory

7 ビュー (過去 30 日間)
Griffon Thomas
Griffon Thomas 2018 年 4 月 24 日
編集済み: Griffon Thomas 2018 年 4 月 24 日
I have a program that is running into Out of Memory errors, so I diligently followed the steps on the Resolve "Out of Memory" Errors page, increasing Swap Space to 128GB, which I thought would be more than enough. (I don't really know how much memory is appropriate, so I wildly overshot.) I then restarted the computer as I was instructed by Windows to do. However, when I run the >> memory command in the console, it still comes back as saying that the SystemMemory is only 1279MB, a far cry from my desired 128GB. What can I do?

回答 (1 件)

Steven Lord
Steven Lord 2018 年 4 月 24 日
What release of MATLAB are you using?
Are you using a 32-bit or 64-bit version of MATLAB? The computer function can say which one you're using. That makes a huge difference. From the documentation for release R2015b (which is the last release supported on 32-bit systems):
The platforms and operating systems that MATLAB supports have different memory characteristics and limitations. In particular, the process limit is the maximum amount of virtual memory a single process (or application) can address. On 32-bit systems, this is the most important factor limiting data set size. The process limit must be large enough for MATLAB to store all of the data it is to process, any MATLAB program files, the MATLAB executable itself, and additional state information.
Where possible, choose an operating system that maximizes this number, that is, a 64-bit operating system. The following is a list of MATLAB supported operating systems and their process limits.
Operating System Process Limit
32-bit Windows® 7 and higher 2 GB
32-bit Windows 7 and higher with increaseuserva set (see later) 3 GB
64-bit Windows or Linux&reg; running 32-bit MATLAB <= 4 GB
64-bit Windows, Apple Mac, or Linux running 64-bit MATLAB 8 TB
  1 件のコメント
Griffon Thomas
Griffon Thomas 2018 年 4 月 24 日
編集済み: Griffon Thomas 2018 年 4 月 24 日
I have both a 64-bit computer, and the computer function spits out 'PCWIN64'. Does this mean I'm running 64-bit matlab?

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

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by