Hello, I am trying to profile Petsc memory usage with massif, but have been getting absurdly low values.
I have valgrind-devel installed, and compiled PETSc with both valgrind and debugging options set to 1. I then compiled my executable which has PETSc as a dependent library. I ran valgrind with the following command: valgrind --trace-children=yes --tool=massif --massif-out-file=<outfile> <executable> However, the output from valgrind in terms of total memory usage is absurdly low (612 kb) and remains the same whether I compiled PetSc with or without valgrind. KB 612.0^ : | #############:::::::::::::::::::::::::: | # : : :: | # : : :: | # : : :: | # : : :: | # : : :: | # : : :: | # : : :: | # : : :: | # : : :: | # : : :: | # : : :: | # : : :: | # : : :: | # : : ::: | # : : ::: | @# : : ::: | @@# : : ::: | @@:::@:@::@@@@# : : ::: 0 +----------------------------------------------------------------------->Mi 0 1.474 I suspect that valgrind is not actually able to get PETSc's memory usage. Any ideas on how to get valgrind to give me the actual memory consumed by PETSc would be helpful. Thanks. Vikram Garg vikramvgarg.github.io/ _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users