【matlab】内存不足问题

您所在的位置:网站首页 Python读取数据集内存不够用了怎么办 【matlab】内存不足问题

【matlab】内存不足问题

2023-12-15 11:07| 来源: 网络整理| 查看: 265

文章目录 1、输入memory,查看内存2、system_dependent memstats

1、输入memory,查看内存 可能的最大数组: 11127 MB (1.167e+10 bytes) * 可用于所有数组的内存: 11127 MB (1.167e+10 bytes) * MATLAB 使用的内存: 2353 MB (2.467e+09 bytes) 物理内存(RAM): 16261 MB (1.705e+10 bytes) * 受可用的系统内存(物理内存 + 交换文件)限制。 2、system_dependent memstats Physical Memory (RAM): In Use: 5419 MB ( 152b04000) Free: 10841 MB ( 2a59b6000) Total: 16260 MB ( 3f84ba000) Page File (Swap space): In Use: 7503 MB ( 1d4ffa000) Free: 10804 MB ( 2a34c0000) Total: 18308 MB ( 4784ba000) Virtual Memory (Address Space): In Use: 35636 MB ( 8b344c000) Free: 134182091 MB (7ff74cb94000) Total: 134217727 MB (7ffffffe0000) Largest Contiguous Free Blocks: 1. [at e5aaa7000] 134117972 MB (7fe7a5419000) 2. [at 7ff5ffff3000] 28424 MB ( 6f087d000) 3. [at 4281d2000] 11548 MB ( 2d1c2e000) 4. [at 7ffd2e7c0000] 11544 MB ( 2d1820000) 5. [at 1ec320000] 6592 MB ( 19c000000) 6. [at 38c320000] 1728 MB ( 6c000000) 7. [at 148030000] 895 MB ( 37fd0000) 8. [at 180320000] 832 MB ( 34000000) 9. [at 1b8320000] 384 MB ( 18000000) 10. [at 1d4320000] 320 MB ( 14000000) ======= ========== 134180240 MB (7ff6d90b4000)

定义一个较大的矩阵之后,看改变(Swap space明显占用变多):

system_dependent memstats Physical Memory (RAM): In Use: 6061 MB ( 17ad80000) Free: 10199 MB ( 27d73a000) Total: 16260 MB ( 3f84ba000) Page File (Swap space): In Use: 21125 MB ( 528550000) Free: 2118 MB ( 84633000) Total: 23243 MB ( 5acb83000) Virtual Memory (Address Space): In Use: 224251 MB ( 36bfbe5000) Free: 133993475 MB (7fc9403fb000) Total: 134217727 MB (7ffffffe0000) Largest Contiguous Free Blocks: 1. [at 3c6c053000] 133929278 MB (7fb993e6d000) 2. [at 7ff5ffff3000] 28424 MB ( 6f087d000) 3. [at 421110000] 11660 MB ( 2d8cf0000) 4. [at 7ffd2e7c0000] 11544 MB ( 2d1820000) 5. [at 1ec320000] 6592 MB ( 19c000000) 6. [at 144030000] 959 MB ( 3bfd0000) 7. [at 180320000] 832 MB ( 34000000) 8. [at 3c72f8000] 784 MB ( 31028000) 9. [at 38c320000] 768 MB ( 30000000) 10. [at 1b8320000] 384 MB ( 18000000) ======= ========== 133991227 MB (7fc8b3bf2000)

如何增加虚拟内存:

计算机 → \to →右键 → \to →属性 → \to →高级系统设置

这里写图片描述

→ \to →高级 → \to →性能 → \to →设置

这里写图片描述

→ \to →高级 → \to →虚拟内存 → \to →更改 这里写图片描述 这里写图片描述

改完之后再看内存:

Physical Memory (RAM): In Use: 4592 MB ( 11f035000) Free: 11668 MB ( 2d9485000) Total: 16260 MB ( 3f84ba000) Page File (Swap space): In Use: 31404 MB ( 7aacfc000) Free: 1139 MB ( 4734e000) Total: 32544 MB ( 7f204a000) Virtual Memory (Address Space): In Use: 34819 MB ( 88038f000) Free: 134182908 MB (7ff77fc51000) Total: 134217727 MB (7ffffffe0000) Largest Contiguous Free Blocks: 1. [at e5aaad000] 134117972 MB (7fe7a5413000) 2. [at 7ff5ffff3000] 26303 MB ( 66bf5d000) 3. [at 7ffca5dc0000] 13730 MB ( 35a220000) 4. [at 3fe13a000] 12220 MB ( 2fbcc6000) 5. [at 1a8320000] 8512 MB ( 214000000) 6. [at 140029000] 1023 MB ( 3ffd7000) 7. [at 3c0320000] 768 MB ( 30000000) 8. [at 180320000] 576 MB ( 24000000) 9. [at 7ffc6c1b3000] 141 MB ( 8d1d000) 10. [at 7ffc8aeeb000] 130 MB ( 8265000) ======= ========== 134181377 MB (7ff7201af000)

swap file 有增加



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3