<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 10 Sep 2013, at 18:34, "Kelly, Bernard J. (GSFC-660.0)[UNIVERSITY OF MARYLAND BALTIMORE COUNTY]" <<a href="mailto:bernard.j.kelly@nasa.gov">bernard.j.kelly@nasa.gov</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi.<br><br>I'm running a vacuum BHB evolution with a larger-than-usual set of inner<br>refinement regions (levels 8, 9, 10 11 have radii of 12M, 8M, 6M, and 4M,<br>respectively) and consequently the memory usage is a bit higher than<br>normal. But I'm finding that it jumps up almost 100% after the first<br>regridding, and stays there.<br><br>My diagnostic for this is the result of top on each of the nodes (via<br>"qtop.pl", a script on the machine I'm using). Sampled before the first<br>regridding, it shows each core using ~ 1.5% of the node's total memory,<br>while after regridding, it's more like 2.9% (these are Sandy Bridge nodes,<br>with 16 available cores).<br><br>However, the periodic output message from Carpet reporting the Grid<br>structure etc. shows regions only marginally larger than before, and ---<br>crucially for me --- has a marginally larger "Total required memory" (164<br>GB -> 167 GB, for instance).<br><br>So (a) what's using the extra memory, and (b) why isn't Carpet reporting<br>it? How seriously should I be taking that "Total required memory" message?<br><br>I see this with executables generated from both the last (ET_2012_11) and<br>current (ET_2013_05) stable releases, BTW. I'm attaching the current<br>parameter file and SCROUT from a run.<br></blockquote><div><br></div><div>I know there was a problem related to drastically increased memory usage, but I thought that this was introduced to the trunk after ET_2013_05, and that Erik had already fixed it. There was another problem in (I believe) ET_2012_11 where Carpet was always collapsing multiple grids on a refinement level into the smallest enclosing box, leading to huge memory usage, but that was also fixed, and I believe backported to ET_2012_11. Have you tried using the SystemStatistics thorn to monitor memory usage? This should be easier than using top on the nodes.</div><div><br></div><div>How is the grid distributed among the nodes? Even if the total required memory is roughly constant, it's possible that the grid is distributed unevenly between nodes. Is every node showing the increased memory usage? Given that you are still using a very small amount of memory, it's possible that Carpet is just "overallocating" on the first regridding as it anticipates that it might need more memory later, and memory allocation might be expensive. The amount of overallocation is presumably small in comparison to the total available memory, but might be of the order of 1%, as you are seeing.</div><div><br></div><div>I wouldn't worry about this small amount of increased memory usage unless you can reproduce the problem on a more heavily-loaded system. From your description, I suspect you are not using OpenMP. Why is that? Using pure MPI leads to an unnecessary memory overhead.</div><div><br></div></div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>-- </div><div>Ian Hinder</div><div><a href="http://numrel.aei.mpg.de/people/hinder">http://numrel.aei.mpg.de/people/hinder</a></div></div></span></div></span></div></span></span>
</div>
<br></body></html>