<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 3/31/2013 11:02 AM, Matthew Knepley
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMYG4GkWMtyuKr0O6HfkcPQB57EXvWi3NxCSFQ5mRQPSH9m7kw@mail.gmail.com"
      type="cite">
      <div dir="ltr">On Mon, Apr 1, 2013 at 2:00 AM, Michael Povolotskyi
        <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:mpovolot@purdue.edu" target="_blank">mpovolot@purdue.edu</a>></span>
        wrote:<br>
        <div class="gmail_extra">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <div>On 3/31/2013 10:19 AM, Jed Brown wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Sun, Mar 31, 2013 at
                        9:15 AM, Michael Povolotskyi <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:mpovolot@purdue.edu"
                            target="_blank">mpovolot@purdue.edu</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote"
                          style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF">In our
                            code we have our own linear system solver,
                            optimized for a distributed 3 block diagonal
                            matrix.<br>
                            We are testing its performance against MUMPS
                            and SUPERLU_dist.<br>
                            We interfaced this solver with PETSc matrix
                            and vector for the left and right hand sides
                            of a linear system.<br>
                            My question: what can I do to make the
                            memory allocated inside the solver to be
                            reported by  PetscMemoryGetCurrentUsage?</div>
                        </blockquote>
                      </div>
                      <br>
                      This function just uses the process resident size
                      (like getrusage(3)) so that external memory is
                      automatically included. If those packages had
                      their own memory profiling support, we could use
                      it, but they do not so we can't give finer grained
                      information about the memory they are using.</div>
                  </div>
                </blockquote>
                Hi,<br>
                I'm a bit confused:<br>
                The web page about PetscMemoryGetCurrentUsage says: gets
                the current amount of memory used that was
                PetscMalloc()ed <br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div style="">I don't think it does:</div>
            <div style=""><br>
            </div>
            <div style="">  <a moz-do-not-send="true"
href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscMemoryGetCurrentUsage.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscMemoryGetCurrentUsage.html</a></div>
            <div style=""><br>
            </div>
            <div style="">    Matt</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF"> So, how then it can
                include the external memory if it is not allocated by
                PetscMalloc() ?<br>
                Thank you.<br>
              </div>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          What most experimenters take for granted before they begin
          their experiments is infinitely more interesting than any
          results to which their experiments lead.<br>
          -- Norbert Wiener
        </div>
      </div>
    </blockquote>
    Sorry, I confused with PetscMallocGetCurrentUsage.<br>
    Now it is clear.<br>
    Michael.<br>
    Mic<br>
  </body>
</html>