Skip to content

Memory Leak in certain ASPECT simulations #6874

@tjhei

Description

@tjhei

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:

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions