[openstack-dev] [swift] swift memory usage in centos7 devstack jobs
iwienand at redhat.com
Wed Apr 1 02:50:47 UTC 2015
On 03/27/2015 08:47 PM, Alan Pevec wrote:
> But how come that same recent pyOpenSSL doesn't consume more memory on Ubuntu?
Just to loop back on the final status of this ...
pyOpenSSL 0.14 does seem to use about an order of magnitude more
memory than 0.13 (2mb -> 20mb). For details see .
This is due to the way it now goes through "cryptography" (the
package, not the concept :) which binds to openssl using cffi. This
ends up parsing a bunch of C to build up the ABI representation, and
it seems pycparser's model of this consumes most of the memory .
If that is a bug or not remains to be seen.
Ubuntu doesn't notice this in our CI environment because it comes with
python-openssl 0.13 pre-installed in the image. Centos started
hitting this when I merged my change to start using as many libraries
from pip as possible.
I have a devstack workaround for centos out (preinstall the package)
 and I think a global solution of avoiding it in requirements 
I'm also thinking about how we can better monitor memory usage for
jobs. Being able to see exactly what change pushed up memory usage by
a large % would have made finding this easier. We keep some overall
details for devstack runs in a log file, but there is room to do
More information about the OpenStack-dev