-
Notifications
You must be signed in to change notification settings - Fork 267
Description
Several people have reported a memory leak where ASPECT would quickly use several GB of RAM and a restart of ASPECT would reset the memory usage.
I had a simplified setup (thank you @naliboff !) and ran it with heaptrack and obtained the following:
You can see from this that for a tiny simulation 1.4GB (70% of the memory) are allocated in dealii::MappingInfo used inside dealii::FEPointEvaluation. It is used from
aspect::MaterialModel::Rheology::StrainDependent<2>::fill_reaction_outputs. This is after 5 or so timesteps.
This is not technically a leak, because all memory is accounted for. We just have 3 gigantic std::vectors of integers. The fix is here: dealii/dealii#19328
It seems to affect all versions of deal.II (I think).
I will need to figure out how to work around this in ASPECT.