Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to disable the check of memory consumption #181

Open
Algiane opened this issue Dec 1, 2022 · 0 comments
Open

Allow to disable the check of memory consumption #181

Algiane opened this issue Dec 1, 2022 · 0 comments
Labels
kind: enhancement enhancement to an existing feature priority: high linked to blocking behaviour or to a close deadline

Comments

@Algiane
Copy link
Member

Algiane commented Dec 1, 2022

Maximal available memory is evaluated and stored in memMax field of the mesh. Then, at each allocation/unallocation, Mmg computes the used memory and check that it doesn't overflow the maximal authorized one.

It is useful to keep local computer running smoothly or to ensure that Mmg will save a mesh if it fails due to lack of memory.

But it can also be annoying:

  • the system optimizes memory allocation, thus, Mmg checks may detect a lack of memory when in fact it is possible to end the remeshing process
  • inside ParMmg it has no interests:
    • it is almost never possible to save the mesh (because groups merging step needs available memory)
    • it forces to compute and distribute remaining memory between the each Mmg process and ParMmg which is tricky, source of errors (erroneous detection of lack of memory) and quite wordy

Allowing disabling of memory checks in Mmg can be useful.

@Algiane Algiane added kind: enhancement enhancement to an existing feature priority: high linked to blocking behaviour or to a close deadline labels Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement enhancement to an existing feature priority: high linked to blocking behaviour or to a close deadline
Development

No branches or pull requests

1 participant