r2021b uses a LOT more memory on start than r2016b -- both are bare

5 次查看(过去 30 天)
On r2016b:
>> memory
Maximum possible array: 23268 MB (2.440e+10 bytes) *
Memory available for all arrays: 23268 MB (2.440e+10 bytes) *
Memory used by MATLAB: 1105 MB (1.158e+09 bytes)
Physical Memory (RAM): 32474 MB (3.405e+10 bytes)
On r2021b:
>> memory
Maximum possible array: 21861 MB (2.292e+10 bytes) *
Memory available for all arrays: 21861 MB (2.292e+10 bytes) *
Memory used by MATLAB: 2693 MB (2.824e+09 bytes)
Physical Memory (RAM): 32474 MB (3.405e+10 bytes)
1.01 GB vs 2.69 GB just after starting Matlab
Is this normal? I just installed r2021b and I wasn't expecting this. I can see plots also use a lot more memory (and are much slower when they have sufficiently many data points, e.g. an 8000 point plot, trying to use the data inspector takes several seconds to get or more the crosshairs by one datapoint, whereas in r2016b the same plot is snappy, real-time, milliseconds).

回答(1 个)

Dinesh
Dinesh 2023-9-22
Hi Alex,
I understand your concern regarding the high memory consumption for MATLAB R2021b. Please note that this is normal and is specified in the requirements section for these specific releases. For MATLAB R2021b, a minimum of 4GB RAM is required, while for MATLAB R2016b, the minimum requirement is 2GB. The increased amount of RAM is necessary due to the additional functionalities and tools that MATLAB offers in the new releases.
For more detailed information, I recommend referring to the following MATLAB system requirements document.
  1. https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/system-requirements-release-2021b-windows.pdf
  2. https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2016b_Windows.pdf
The following MATLAB Answers threads can be useful in addressing high memory consumption and slow performance of certain functions in new MATLAB releases.
  1. https://www.mathworks.com/matlabcentral/answers/1621420-every-program-in-newer-versions-of-matlab-runs-slower-why
  2. https://www.mathworks.com/matlabcentral/answers/1766710-matlab-is-holding-on-to-a-lot-of-memory-is-this-expected
If you are still experiencing concerns regarding the plotting speed in MATLAB, I recommend contacting the MathWorks Support System for further assistance.
Hope this helps.
Best Regards,
Dinesh Reddy Gatla.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by