Windows 64bit OS上で一つの変数が使用できるメモリ容量を確認する方法はありますか?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 25 Okt. 2013
Beantwortet: MathWorks Support Team
am 25 Okt. 2013
Windows 64bit OS上で、一つの変数が使用できるメモリ容量を確認する方法について教えてください。
Akzeptierte Antwort
MathWorks Support Team
am 25 Okt. 2013
MATLAB コマンドウィンドウ上で FEATURE MEMSTATS と実行していただくと、マシンのメモリ情報を確認することができます
feature memstats
Physical Memory (RAM):
In Use: 3084 MB ( c0c6d000)
Free: 9194 MB ( 23eadf000)
Total: 12279 MB ( 2ff74c000)
Page File (Swap space):
In Use: 5631 MB ( 15ff7b000)
Free: 22570 MB ( 582aa2000)
Total: 28202 MB ( 6e2a1d000)
Virtual Memory (Address Space):
In Use: 1263 MB ( 4ef40000)
Free: 8387344 MB (7ffb10a0000)
Total: 8388607 MB (7fffffe0000)
Largest Contiguous Free Blocks:
1. [at 180406000] 8378158 MB (7fd72e3a000)
2. [at 7feff9b1000] 4100 MB ( 1004af000)
3. [at 7fff3000] 3072 MB ( c000d000)
4. [at 140032000] 1023 MB ( 3ffce000)
5. [at 4ccb0000] 580 MB ( 244e0000)
6. [at 77857000] 119 MB ( 7789000)
7. [at 73a29000] 58 MB ( 3a47000)
8. [at 7fef74aa000] 25 MB ( 19c6000)
9. [at 71333000] 21 MB ( 153d000)
10. [at 7fef8eff000] 18 MB ( 1201000)
======= ==========
8387178 MB (7ffa6a78000)
各 Largest Contiguous Free Blocks は、一つの変数が使用できる最大メモリを示しています。ただ、Page File (Swap space):Freeの容量が、Largest Contiguous Free Blocksの最大容量(この例の場合は 8378158 MB)よりも小さい為、Page File (Swap space):Free の容量を超えるサイズの変数を定義するとメモリエラーが発生します。
Windows 64bit OS上で一つの変数を定義する場合、Page File (Swap space):Freeの容量を考慮した変数のサイズを設定する必要があります。
なお、Page File (Swap space):Freeの容量は、演算の処理に使用されますので、Page File (Swap space):Freeの容量と同じサイズの変数を定義するとメモリエラーになりますので、注意が必要です。
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu パフォーマンスとメモリ finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!