<html>#2194: Memory increase during regridding
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Wolfgang Kastaun</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>wontfix</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td>ET_2020_04</td></tr>
<tr><td style='text-align:right'>  Version:</td><td>development version</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>Other</td></tr>
</table>

<p>Comment (by Roland Haas):</p>
<p>This never made it into the ticket apparently: I tried the first test case ML_QC0.par (<a data-is-external-link="true" href="https://bitbucket.org/einsteintoolkit/tickets/issues/attachments/2194/einsteintoolkit/tickets/1549060822.72/2194/ML_QC0.par" rel="nofollow">https://bitbucket.org/einsteintoolkit/tickets/issues/attachments/2194/einsteintoolkit/tickets/1549060822.72/2194/ML_QC0.par</a>) with tcmalloc and compared to tot plot in <a data-is-external-link="true" href="https://bitbucket.org/einsteintoolkit/tickets/issues/2194/memory-increase-during-regridding?detectloginloop#comment-52821439" rel="nofollow">https://bitbucket.org/einsteintoolkit/tickets/issues/2194/memory-increase-during-regridding?detectloginloop#comment-52821439</a> it actually made things worse. </p>
<p>So at least for the workstation sized qc0 example using tcmalloc did not help (made things worse instead). jemalloc may improve things but improvement seems to be hit-or-miss and not anything that we can actually fix.</p>
<p>The memory held by Carpet itself could in fact be defragmented at runtime as Carpet already has a <code>mem</code> class that can keep track of all allocated buffers and provides the required level of indirection. Whether it would actually help the issue is not clear though since there is memory allocation outside of Carpet that does not use the <code>mem</code> objects.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2194/memory-increase-during-regridding'>https://bitbucket.org/einsteintoolkit/tickets/issues/2194/memory-increase-during-regridding</a></p>
</html>