<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class=""> Pascal,</div><div class=""><br class=""></div><div class=""> Do</div><div class=""><br class=""></div>  KSPGetPC(ksp,&pc);<div class="">  PCFactorGetMatrix(pc,fact)</div><div class="">  PetscViewerPushFormat(PETSC_VIEWER_STDOUT_(PetscObjectComm((PetscObject)fact)),PETSC_VIEWER_ASCII_INFO);</div><div class="">  MatView(fact,PETSC_VIEWER_STDOUT_(PetscObjectComm((PetscObject)fact);</div><div class="">  PetscViewerPopFormat(PETSC_VIEWER_STDOUT_(PetscObjectComm((PetscObject)fact));</div><div class=""><br class=""></div><div class="">   after</div><div class=""><br class=""></div><div class="">   SNES/KSPSolve</div><div class=""><br class=""></div><div class="">  this should print the various MUMPS variables related to memory usage.</div><div class=""><br class=""></div><div class="">  This is processed in /src/mat/impls/aij/mpi/mumps/mumps.c </div><div class=""><br class=""></div><div class="">   If you want to process the values directly in the application code you can look at this file and see how it is extracting the memory values from the mumps variables and use the variables directly in your code.</div><div class=""><br class=""></div><div class="">  Barry</div><div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 12, 2020, at 6:52 PM, Kraft, Pascal (IANM) <<a href="mailto:pascal.kraft@kit.edu" class="">pascal.kraft@kit.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Dear PETSc Users,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I use the MUMPS wrapper in PETSc (loaded from dealii). I know that MUMPS computes a factorization based on the mulrifrontal method and since I have a very memory-strapped problem, I would like to run some test on the memory requirements for the factorizations across some sets of parameters in my underlying FEM-problem.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">My question is if there is a native way to check memory (as a measure of fill-in) for the MUMPS factorization in PETSc. I would prefer not to go through the operating system since that feels somewhat inconclusive to me. Does PETSc provide such functionality in any way?</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I would prefer to know the memory consumption for storing the factorization if that is possible, I would also take the total memory consumption of the direct solver if there is no other way, and, if nothing else is possible, I guess I would have to go with the memory requirement of the whole application if all else fails.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Is anyone aware of something I can do?</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Kind regards, </div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Pascal</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div id="Signature" wfd-id="1813" class=""><div name="divtagdefaultwrapper" wfd-id="1814" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;" class=""><div style="margin-top: 0px; margin-bottom: 0px; font-size: 16px;" class="">--------------------------------------------------------------------------<br class=""></div><div wfd-id="1834" style="font-size: 16px;" class="">Karlsruhe Institute of Technology (KIT)</div><div wfd-id="1833" style="font-size: 16px;" class="">Institute for Applied and Numerical Mathematics <br class=""></div><div wfd-id="1832" style="font-size: 16px;" class=""><br class=""></div><div wfd-id="1831" style="font-size: 16px;" class="">Kraft, Pascal<br class=""></div><div wfd-id="1830" style="font-size: 16px;" class="">Research scientist<br class=""></div><div wfd-id="1829" style="font-size: 16px;" class=""><br class=""></div><div wfd-id="1827" style="font-size: 16px;" class=""><span wfd-id="1828" style="background-color: rgb(255, 255, 255);" class="">Englerstraße 2</span></div><div wfd-id="1826" style="font-size: 16px;" class="">Gebäude 20.30<br class=""></div><div wfd-id="1825" style="font-size: 16px;" class="">76130, Germany</div><div wfd-id="1824" style="font-size: 16px;" class=""><br class=""></div><div wfd-id="1823" style="font-size: 16px;" class="">Phone: +49 721 608-42801 <br class=""></div><div wfd-id="1821" style="font-size: 16px;" class=""><span wfd-id="1822" style="font-size: 12pt;" class="">Mobile: +49 163 6927612</span><br class=""></div><div wfd-id="1820" style="font-size: 16px;" class="">E-mail: pascal.kraft∂<a href="http://kit.edu/" class="">kit.edu</a></div><div wfd-id="1818" style="font-size: 16px;" class="">Web: <a href="http://www.math.kit.edu/ianm2/~kraft/de" id="LPNoLP" style="font-size: 12pt;" class="">www.math.kit.edu/ianm2/~kraft/de</a><span wfd-id="1819" style="font-size: 12pt;" class=""></span></div><div wfd-id="1817" style="font-size: 16px;" class="">KIT – The Research University in the Helmholtz Association</div><div wfd-id="1816" style="font-size: 16px;" class=""><br class=""></div><div wfd-id="1815" style="font-size: 16px;" class="">Since 2010, the KIT has been certified as a family-friendly university.</div></div></div></div></div></blockquote></div><br class=""></div></body></html>