<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 10:27 AM, Matt Riedemann <span dir="ltr"><<a href="mailto:mriedem@linux.vnet.ibm.com" target="_blank">mriedem@linux.vnet.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="gmail-">On 1/18/2017 4:53 AM, Jens Rosenboom wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
To me it looks like the times of 2G are long gone, Nova is using<br>
almost 2G all by itself. And 8G may be getting tight if additional<br>
stuff like Ceph is being added.<br>
<br>
</blockquote>
<br></span>
I'm not really surprised at all about Nova being a memory hog with the versioned object stuff we have which does it's own nesting of objects.<br>
<br>
What tools to people use to be able to profile the memory usage by the types of objects in memory while this is running?</blockquote><div><br></div><div>objgraph and guppy/heapy</div><div><br></div><div><a href="http://smira.ru/wp-content/uploads/2011/08/heapy.html">http://smira.ru/wp-content/uploads/2011/08/heapy.html</a><br></div><div> </div><div><a href="https://www.huyng.com/posts/python-performance-analysis">https://www.huyng.com/posts/python-performance-analysis</a><br></div><div><br></div><div>You can also use gc.get_objects() (<a href="https://docs.python.org/2/library/gc.html#gc.get_objects">https://docs.python.org/2/library/gc.html#gc.get_objects</a>) to get a list of all objects in memory and go from there.</div><div><br></div><div>Slots (<a href="https://docs.python.org/2/reference/datamodel.html#slots">https://docs.python.org/2/reference/datamodel.html#slots</a>) are useful for reducing the memory usage of objects.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="gmail-HOEnZb"><font color="#888888"><br>
<br>
-- <br>
<br>
Thanks,<br>
<br>
Matt Riedemann</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</div></div></blockquote></div><br></div></div>