Comment 17 for bug 1472338

Revision history for this message
Mike Pontillo (mpontillo) wrote : Re: Failed to refresh power state and unhandled errors - exceptions.OSError: [Errno 12] Cannot allocate memory

I think I have narrowed this problem down to a bug in [the interaction with?] python-tx-tftp.

In the memory dump, there are over 20,000 occurrences of the string:

    "/var/lib/maas/boot-resources/current/pxelinux.0"

It's always present in a dictionary with an "awaysCreate" parameter. The alwaysCreate parameter is only present in our stack in the twisted FilePath object, which is used (in conjunction with pxelinux.0) in python-tx-tftp:

https://github.com/shylent/python-tx-tftp/blob/a4d1790a9a46231411fc25cde69f9057999cd115/tftp/backend.py

Looking at the object dump, there are 43,296 instances of a FilesystemReader object.

Here's a list of all the object types in the memory dump and their counts.

http://paste.ubuntu.com/13765380/