diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-07-27 20:18:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-07-27 20:18:00 +0000 |
commit | e35a21fdcc0c6aca0543caafde37b2ff74a4e264 (patch) | |
tree | 80807bf2580fe320760157a81bf50cff1f9c49a7 /Carpet/CarpetLib/param.ccl | |
parent | 4b4e7cee5c2580bcf3b47b6af99b0e5bf0e5c9c5 (diff) |
CarpetLib: Output memory statistics, and limit maximum memory usage
Introduce a new parameter print_memstats_every. When non-zero, output
the current and total allocated amount of memory (per process).
Introduce a new parameter max_allowed_memory_MB. When more than that
amount should be allocated on the current processor, abort the run.
Only memory for grid variables counts; memory for administrative
overhead is ignored.
darcs-hash:20050727201851-891bb-c1ff9fc30ff949d576d500fbf70ad7fb5084836a.gz
Diffstat (limited to 'Carpet/CarpetLib/param.ccl')
-rw-r--r-- | Carpet/CarpetLib/param.ccl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/param.ccl b/Carpet/CarpetLib/param.ccl index 6966e1282..75b183e14 100644 --- a/Carpet/CarpetLib/param.ccl +++ b/Carpet/CarpetLib/param.ccl @@ -26,6 +26,22 @@ BOOLEAN save_memory_during_regridding "Save some memory during regridding at the { } "no" + + +INT print_memstats_every "Report periodically how much memory is used per process" STEERABLE=always +{ + 0 :: "don't report" + 1:* :: "report every so many iterations" +} 0 + +INT max_allowed_memory_MB "Maximum allowed amount of memory per process (in Megabytes)" STEERABLE=always +{ + 0 :: "no maximum" + 1:* :: "abort if more memory is used" +} 0 + + + # Options to tune MPI communication INT max_mpi_tags "Maximum number of MPI tags to use" |