Matlab memory monitoring

I was looking for a way to control memory consumption for Matlab, but could not do it. I'm interested in peak memory for built-in functions and which cannot be measured using the Matlab profiler, since these functions are already compiled.

Peak memory problems are rarely documented in Matlab, which means that to find out what the problem is, I will need to independently control the memory usage. I already tried to use the resource manager in windows, but I had problems finding something. I could say that there are no problems, but it can also mean that the sampling rate is low. I am using windows 7.

This question may not be related only to matlab, but since I have problems in Matlab, I will mark it.

+5
source share
1 answer

Matlab File Exchange has a nice script that tracks Matlab memory usage over time. It basically updates the shape with a given time interval in the background. (Since it relies on the Matlab memory function, it unfortunately only works on Windows systems.)

I don't know if this suits your needs, but since memory measures the total memory used by the Matlab process, this should also include built-in functions.

However, when Matlab is under heavy load, other functions may fulfill performance preferences, and this figure may not be updated as desired. In this case, you should consider monitoring memory outside Matlab using tools such as perfmon or Process Explorer , see this question for a more detailed treatise.

+4
source

Source: https://habr.com/ru/post/1205258/


All Articles