Monitor memory usage of the program

33 views
Skip to first unread message

yy.wayne

unread,
Feb 7, 2023, 2:11:38 AM2/7/23
to deal.II User Group
Hello everyone,
I am trying to monitor the memory consumption of my program.
Most classes provide a memory_consumption() function to realize this demand.
However, such function is missing for 2 process:
    1) Memory of a LU factorized matrix (a UMFPACK factorization like SparseDirectUMFPACK, or klu solver like TrilinosWrappers::SolverDirect);
    2) Memory consumption of iterative solver (CG or GMRES).

Is there a recommended way to track memomry usage during these 2 processes?

Bruno Turcksin

unread,
Feb 7, 2023, 1:23:35 PM2/7/23
to deal.II User Group
Hello,

Personally, I prefer to use profilers when monitoring the memory usage. This is because what really matters is how much memory the operating system is allocating for you code. For multiple reasons this can be different than what your code require.

Best,

Bruno

yy.wayne

unread,
Feb 12, 2023, 9:26:05 PM2/12/23
to deal.II User Group
Thank you Bruno!
Reply all
Reply to author
Forward
0 new messages