John,<div><br></div><div>What did you use for your memory profiling? </div><div><br></div><div>Utkarsh<br><br><div class="gmail_quote">On Tue, Jan 10, 2012 at 9:51 AM, Biddiscombe, John A. <span dir="ltr"><<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p>Takuya<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Running a test of coprocessing on a very small simulation using just 2 cores on the desktop, I am seeing what looks like a very small leak. Over about 30 iterations, it’s of the order of 30MB, so might not be real (need to test on a
bigger domain to see if it grows faster), but the trend looks credible. I’ll see if I can pinpoint where the loss is occurring.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>JB<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><span><img width="1726" height="155" src="cid:image001.png@01CCCFAF.985F7180"></span><u></u><u></u></p><div><div class="h5">
<p><u></u> <u></u></p>
<p><span lang="EN-US">-----Original Message-----<br>
From: <a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a> [mailto:<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a>] On Behalf Of Takuya OSHIMA<br>
Sent: 10 January 2012 15:11<br>
To: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
Subject: Re: [Paraview] Unreclaimed memory in coprocessing? (PV 3.12.0 and git-master)</span></p>
<p><u></u> <u></u></p>
<p>Attached in the previous mail is a sample Python coprocessing script that exhibits the problem (written by the coprocessing script generator of git-master as of today).<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Takuya<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Takuya OSHIMA, Ph.D.<u></u><u></u></p>
<p>Faculty of Engineering, Niigata University<u></u><u></u></p>
<p>8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>From: Takuya OSHIMA <<a href="mailto:oshima@eng.niigata-u.ac.jp" target="_blank"><span style="color:windowtext;text-decoration:none">oshima@eng.niigata-u.ac.jp</span></a>><u></u><u></u></p>
<p>Subject: Unreclaimed memory in coprocessing? (PV 3.12.0 and git-master)<u></u><u></u></p>
<p>Date: Tue, 10 Jan 2012 23:08:21 +0900 (JST)<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>> Hi,<u></u><u></u></p>
<p>> <u></u><u></u></p>
<p>> I am having a problem where the memory usage of my simulation program
<u></u><u></u></p>
<p>> which links with the PV coprocessing library grows until it gets
<u></u><u></u></p>
<p>> killed by the operating system.<u></u><u></u></p>
<p>> <u></u><u></u></p>
<p>> I have the following piece of code for triggering coprocessing and if
<u></u><u></u></p>
<p>> I watch the memory usage with the ps/top commands it grows only at the
<u></u><u></u></p>
<p>> timestep where this->Processor->CoProcess() is called. My simulation
<u></u><u></u></p>
<p>> program uses vtkImageData as underlying data structure so no data
<u></u><u></u></p>
<p>> format adaptation (that may involve allocating extra memory for data<u></u><u></u></p>
<p>> copy) is performed.<u></u><u></u></p>
<p>> <u></u><u></u></p>
<p>> this->DataDescription->SetTimeData(this->TimeInfo->GetTimeValue(),<u></u><u></u></p>
<p>> this->TimeInfo->GetTIter());<u></u><u></u></p>
<p>> if (this->Processor->RequestDataDescription(this->DataDescription))<u></u><u></u></p>
<p>> {<u></u><u></u></p>
<p>> vtkCPInputDataDescription *idd<u></u><u></u></p>
<p>> = this->DataDescription->GetInputDescriptionByName("input");<u></u><u></u></p>
<p>> // obtain vtkImageData to coprocess from my simulation program<u></u><u></u></p>
<p>> vtkImageData *grid = this->TimeInfo->GetGrid();<u></u><u></u></p>
<p>> idd->SetWholeExtent(grid->GetWholeExtent());<u></u><u></u></p>
<p>> idd->SetGrid(grid);<u></u><u></u></p>
<p>> // now call the coprocessing library<u></u><u></u></p>
<p>> this->Processor->CoProcess(this->DataDescription);<u></u><u></u></p>
<p>> }<u></u><u></u></p>
<p>> <u></u><u></u></p>
<p>> Besides, the Apple's "leaks" tool shows no meaningful leaks which
<u></u><u></u></p>
<p>> makes me wonder if e.g. there are un-unregistered proxies than simply
<u></u><u></u></p>
<p>> unmatched New()/Delete() or new/delete pairs.<u></u><u></u></p>
<p>> <u></u><u></u></p>
<p>> The problem is same for PV 3.12.0 and the git master as of today.<u></u><u></u></p>
<p>> Is anybody else having the problem? Any ideas?<u></u><u></u></p>
<p>> <u></u><u></u></p>
<p>> Thanks,<u></u><u></u></p>
<p>> Takuya<u></u><u></u></p>
<p>> <u></u><u></u></p>
<p>> Takuya OSHIMA, Ph.D.<u></u><u></u></p>
<p>> Faculty of Engineering, Niigata University<u></u><u></u></p>
<p>> 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<u></u><u></u></p>
<p>_______________________________________________<u></u><u></u></p>
<p>Powered by <a href="http://www.kitware.com" target="_blank"><span style="color:windowtext;text-decoration:none">www.kitware.com</span></a><u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
<span style="color:windowtext;text-decoration:none">http://www.kitware.com/opensource/opensource.html</span></a><u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Please keep messages on-topic and check the ParaView Wiki at:
<a href="http://paraview.org/Wiki/ParaView" target="_blank"><span style="color:windowtext;text-decoration:none">http://paraview.org/Wiki/ParaView</span></a><u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Follow this link to subscribe/unsubscribe:<u></u><u></u></p>
<p><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank"><span style="color:windowtext;text-decoration:none">http://www.paraview.org/mailman/listinfo/paraview</span></a><u></u><u></u></p>
</div></div></div>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>