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

1 次查看(过去 30 天)
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