<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Arial'; font-size:12pt; font-weight:400; font-style:normal;">I forgot to mention:<br>
Some of the memory allocated in the code is from non-petsc structures. Not sure if that is important.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Another question:<br>
The number reported by -memory_info, is it in bytes?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>thanks<br>
matt<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>On Thursday 17 September 2009, you wrote:<br>
> Hi,<br>
><br>
> I am wondering whether the -memory_info option and the<br>
> PetscMemoryGetMaximumUsage() call report different things.<br>
><br>
> The reason i am asking is because i call the PetscMemoryGetCurrentUsage fcn<br>
> in my code and it shows:<br>
> 5.25558e+08.<br>
><br>
> At the end of the run the -memory_info option reports:<br>
> max process malloc()'ed: 4.00524e+08<br>
> max petsc malloc()'ed: 1.15254e+08.<br>
><br>
> So i am a little confused by those numbers unless the fcn call is the more<br>
> complete picture (as said on the manual page)<br>
><br>
> I guess then my question is whether the -memory_info corresponds to the<br>
> PetscMalloc* fcns?<br>
><br>
> thanks<br>
> matt<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>