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

Add option to estimate memory needed for solve #27088

Open
naabwxt opened this issue Mar 14, 2024 · 0 comments
Open

Add option to estimate memory needed for solve #27088

naabwxt opened this issue Mar 14, 2024 · 0 comments
Labels
C: Framework T: task An enhancement to the software.

Comments

@naabwxt
Copy link

naabwxt commented Mar 14, 2024

Motivation

Since MOOSE based apps require the entire simulation to fit into memory, it would be good to have an estimate of what the memory requirements are for a given situation so that proper resources can be allocated. In some cases, when a simulation crashes with an exit code 9 (OOM), it requires a significant effort to determine if it's a resource issue or a memory issue in either MOOSE/MPI/Custom code. An estimate from MOOSE at the beginning of the solve, similar to ANSYS, of how much memory is required to fit the solve entirely in memory would help set resource allocations and help with debugging.

Design

The feature would at the beginning when printing the versions of the libraries, number of CPUs, number of DOFs, include a line about estimated memory needed.

If possible, it could even request the memory alloted to the solve and quit instead of going ahead knowing it will run out of memory.

Impact

Will help users set proper resource allocation and help with debugging out of memory errors (exit code 9).

@naabwxt naabwxt added the T: task An enhancement to the software. label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Framework T: task An enhancement to the software.
Projects
Status: Todo
Development

No branches or pull requests

2 participants