<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 23, 2014 at 3:15 AM, Emptystack <span dir="ltr"><<a href="mailto:wulihouxiaoshuai@163.com" target="_blank">wulihouxiaoshuai@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have used the gnome-system-monitor and top commands to test the memory of<br>my applications. The result is almost same. So I used gdb to test the memory<br>increasing point, which happened at the following lines of the<br>vtkOpenGLGPUVolumeRayCastMapper.cxx:<br>
<br>                  if(1) // !this->SupportsPixelBufferObjects)<br>                    {<br>                    vtkgl::TexImage3D(vtkgl::TEXTURE_3D, 0, internalFormat,<br>
<br>textureSize[0],textureSize[1],textureSize[2],<br>                                      0,format,type,dataPtr);<br>                    }<br>
<br></blockquote><div>That would make sense since at this point you will expect the data to be transferred to the GPU.    </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">the increasing memory is almost the size of the input image data. But on<br>windows system,the occupied memory didn't increase on this point. Maybe just<br>as you said, the RES memory of the top command  may also include the video<br>memory used by the application,but I cannot find the evidence  to prove this<br>comment. I will spend the following several days to solve this interesting<br>problem.<br></blockquote><div><br></div><div>You can look at the more detailed log in <b>/proc. </b>there might be better tools out there that can give you detain information on memory consumption used by the app. Let us know if you find something. I will look as well. </div><div><br></div><div>You can also write a code which would consume just enough memory to skip disk swap but which will need part of the memory reported by the htop or top. </div><div><br></div><div>Thanks, </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>Many thanks!<br>
<br>
<br>
<br>--<br>View this message in context: <a href="http://vtk.1045678.n5.nabble.com/GPURenderDemo-Difference-between-linux-OS-and-Windows-OS-tp5728759p5728838.html" target="_blank">http://vtk.1045678.n5.nabble.com/GPURenderDemo-Difference-between-linux-OS-and-Windows-OS-tp5728759p5728838.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div>
</div></div>