Does RAM memory afect the maximum number of simulation with parsim?

조회 수: 3 (최근 30일)
Antonio Carlo Bertolino
Antonio Carlo Bertolino 2018년 2월 19일
답변: Rahul Kumar 2018년 8월 29일
I'm performing a large number of parallelized simulations using the parsim command.
Since I have 16Gb of RAM memory installed on my computer, could I launch, for example, 5000 simulations within the same parsim session? Considering that each simulation is about of 1 minute (simulated time) with a fixed-step of 1e-6[s], and that I need to save with the log 13 signals (undersampled with a fixed-step of 1e-4 [s]). The total amount of memory needed to store all the data will be for sure greater than the amount available on the RAM.
This is to know: how parsim manage the memory consumption? Does it take all the simulations' results in the RAM until the end of all simulations? Or it saves them in the HD?
Another question that came to me is: if each of these simulation was very long (let's say 1 hour of simulated time), could I launch it or MATLAB would crash due to the exceed of the RAM memory limit (even for one simulation)? There exist a way to simulate a long simulation overcoming the ram limit?
Thank a lot in avance.

답변 (1개)

Rahul Kumar
Rahul Kumar 2018년 8월 29일
parsim uses the settings in the model specified for logging. Unless LoggingToFile is enabled the logged data will be stored in the memory. If the logged data is not going to fit into memory, please use LoggingToFile. parsim should automatically append a run id to the specified file name so that one simulation does not overwrite the file from a previous simulation.

카테고리

Help CenterFile Exchange에서 Run Multiple Simulations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by