Excessive RAM Usage while using parsim
古いコメントを表示
When I try to run my model using parsim on Matlab 2021b Update 8, the RAM usage of client (where parsim is executed) increases up to ~50 GB while the model is running but the RAM usage of the workers remains normal. When the simulations are done, the usage decreases. Here are main things to state:
1) Model is running in rapid accelerator mode and built in a distinct folder before parsim is evaluated.
Each worker is configured in setupfcn to use the pre-built model in the folder.
2) Copy workspace option of parsim is turned off but I save and load needed variables in each worker using setupfcn. However, large variables such as simulation input variable are not saved to minimize RAM use.
3) My simulation input object is about 700 MB.
4) My PC has 10 cores and 64 GB of RAM.
I use 8-10 workers but the problem continues even if I use fewer workers.
5) InspectLogging configuration is turned off.
ShowSimulationManager is turned off.
Simulink.sdi.setArchiveRunLimit(0); Simulink.sdi.setAutoArchiveMode(false); are included in startup script.
6) I have logsout object and I use it in postSimFcn but I return out = Simulink.SimulationOutput(); at the end of the postSimFcn. In addition, I am sure that the returned output objects of parsim are just empty.
What could be the reason for this problem? I think the problem is related to SDI as the RAM usage increases while running but I couldn't find any other way to solve it.
回答 (0 件)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!