[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH for-4.5 v2] libxc: don't leak buffer containing the uncompressed PV kernel



On 11/24/2014 05:37 AM, Ian Campbell wrote:
Unfortunately this is down to the behaviour of the libc and not
something which appears to be under application control.

The following program demonstrates the same behaviour and is certainly
not leaking anything. Notice that at "Freed block at XXXXX. Everything
is now freed, end of day" there is still an anon mapping of that
address. Notice also that the "in use" figures are zero.

If this concerns you then you should probably take a look at mallopt(3)
and/or be talking to the libc folks about it. It's not an xl issue
AFAICT.
Firstly, thank you very much for explaining this in such clear detail, above all this has been quite educational for me :-) After reading the man page, it looks like glibc's behavior here is indeed by design. I'm unable to form, much less advocate an opinion about how libc should behave, any discussion about libc must be very broad. Stepping away from the technical details, I still think that any future enhancement to make xl go out of its way to free this memory would definitely be nice. Right now we have memory that is allocated for a single, momentary use and it can stay allocated for the lifetime of a domu unnecessarily, taking the size of the xl process to another order of magnitude. Even if no longer technically a bug / memory leak, and the implied priority, this could still merit someone's attention.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.