Measurement of memory consumption #29370
Replies: 3 comments 31 replies
-
I've wanted to get back to making one of my very first projects with MOOSE, work again with Python 3.x This DOES NOT WORK, but the following script:
is designed to do what it is you are asking. It needs SERIOUS TLC. Being one of my first Python projects :( Embarrassing to look at. |
Beta Was this translation helpful? Give feedback.
-
iirc you can just use "time" on linux to measure memory. the one from /usr/bin/time |
Beta Was this translation helpful? Give feedback.
-
Ok, this is very unorthodox, supplying a patch during a Discussion. But I feel this will at least "get you going for now", while I polish it up. You'll have to do precisely the following: Download the patch file (attached), and save it to the root of your MOOSE repository. Apply the patch like so: cd ~/projects/moose
patch -p1 < memory_logger.patch Next, run the memory_logger as so, on a test file, just to see if it works (replace YOU with your actual user name): cd ~/projects/moose/test/tests/kernels/simple_diffusion
~/projects/moose/scripts/memory_logger.py --run 'mpiexec -n 5 /home/YOU/projects/moose/test/moose_test-opt -i /home/YOU/projects/moose/test/tests/kernels/simple_diffusion/simple_diffusion.i -r 5' Then do what the program explains to do when it finishes. If this works, we can then concentrate on how to run this on your actual problem. It should ask you to do something like the following: ~/projects/moose/scripts/memory_logger.py --read /home/YOU/projects/moose/test/tests/kernels/simple_diffusion/memory.log Note: pay carful attention to the command line arguments after |
Beta Was this translation helpful? Give feedback.
-
Check these boxes if you have followed the posting rules.
Question
Dear Moose Community,
I hope this question has a simple answer, but I'm stuck anyways: I'd like to know the total memory consumption (RAM) of my MooseApp run. It does not have to be exact.
I work on a WSL / Ubuntu.
I've read PerfGraphOutput.
So I set
perf_graph=true
and started a simple Moose model withmpiexec -n 1
:Now the same for
mpiexec -n 5
The run with 1 CPU took longer than with 5 CPUs. And the factor in wall-time is reasonable considering I only have 32980 DOF in my non-linear system and 5 CPUs is probably a bit much. So far so good.
But the numbers on memory-consumption is not clear to me:
More in detail:
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions