From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Haigh Subject: Re: Possible memory leak in qemu-dm (qemu-dm swapping 20GB+, adding 2gb+ per day) Date: Wed, 26 Mar 2014 16:23:56 +1100 Message-ID: <5332646C.4040905@crc.id.au> References: <5330E500.6020906@crc.id.au> <20140325070913.GC3200@reaktio.net> <1395743334.6294.37.camel@kazak.uk.xensource.com> <53315EE5.7050803@crc.id.au> <1395745431.6294.46.camel@kazak.uk.xensource.com> <533165A3.20605@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7302523773364929476==" Return-path: In-Reply-To: <533165A3.20605@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper , Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============7302523773364929476== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NbxFrbNsbXAGAdqDspKNsmkVaDCMTQd3n" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --NbxFrbNsbXAGAdqDspKNsmkVaDCMTQd3n Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 25/03/14 22:16, Andrew Cooper wrote: > On 25/03/14 11:03, Ian Campbell wrote: >> On Tue, 2014-03-25 at 21:48 +1100, Steven Haigh wrote: >>> On 25/03/14 21:28, Ian Campbell wrote: >>>> On Tue, 2014-03-25 at 09:09 +0200, Pasi K=C3=A4rkk=C3=A4inen wrote: >>>>> On Tue, Mar 25, 2014 at 01:08:00PM +1100, Steven Haigh wrote: >>>>>> Continuing from: >>>>>> http://lists.xenproject.org/archives/html/xen-devel/2013-11/msg039= 61.html >>>>>> >>>>>> Hi guys, >>>>>> >>>>>> Continuing on from this thread, has any progress been made on this= ? >>>>>> >>>>>> I have had a report from a user of my packages with the same probl= em: >>>>>> http://xen.crc.id.au/bugs/view.php?id=3D25 >>>>>> >>>>>> He has been able to reproduce this in a reliable manner. >>>>>> >>>>> I thought the fix was committed to all the maintained qemu-traditio= nal branches.. >>>> I think so too. >>>> >>>> But if not then given a reliable repro I think the advice to try it >>>> under valgrind (which AIUI can now traces qemus thanks to Andrew Coo= pers >>>> work) still holds as a useful next step. >>> Is there any guide on how to do this to gather said info? Documentati= on? >>> Implementation? Interpretation? >> http://blog.xen.org/index.php/2013/01/18/using-valgrind-to-debug-xen-t= oolstacks/ has some info on running valgrind on the toolstack, I think th= is should extend to processes launched by the toolstack such as qemu, so = it might be as easy as following that. >> >> Otherwise Andrew might have some more concrete advise but I think the >> approach I would take is to create a wrapper script which does >> "valgrind /path/to/qemu $@" and then use that via the >> device_model_override directive in the domain config. >> >> Ian. >> >> >=20 > I have never used valgrind in combination with xl and qemu before, but > the intercepting it in a Xapi environment is mostly similar. >=20 > Something like: >=20 > #!/bin/sh > valgrind --log-file=3D"/path/to/logs/qemu-%p-valgrind.log" /path/to/qem= u "$@" >=20 > should work fine. >=20 > You will need the latest valgrind, and the patchset of 7 from > 1393858404-15220-1-git-send-email-andrew.cooper3@citrix.com as they are= > still pending acceptance upstream. >=20 > At some point soon I will need to do some more patches for the new > SYSCTL and pending DOMCTL interface bumps new in unstable, but that won= t > affect you if you are on a released version of Xen. >=20 > Finally, I have not yet tried qemu-upstream, so there might still be > some missing hypercalls, but qemu-traditional should work fine. Hi Andrew / Ian, Valgrind log available here: http://xen.crc.id.au/bugs/view.php?id=3D25 Do you have any further suggestions / ideas based on this? -- Steven Haigh Email: netwiz@crc.id.au Web: https://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 Fax: (03) 8338 0299 --NbxFrbNsbXAGAdqDspKNsmkVaDCMTQd3n Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTMmRvAAoJEEGvNdV6fTHcVzgQALl6DH2S70i8zfKEhE0hgRLB ngpErefxNC8CiWnFJAJBASwwHanX5ldDjm1Ik+0UZOqUGEGe8kaW1Voc+xEIPk6M lAjhrR4XDIXcs9jDVL9YxSjzTU5P0a6AMJ1QX0Q95lszHqEx+SdXG/vuL8PTvzm8 FBQ+4fhJ6lG5sOcZnnL4/phhW5sOGDN5MmoDWU4bzkhn2VB//S9UBVJ+2KVI0lFH J+xIbsTgRqm4ExwqXdO+zWiYxpveQ/OJPqRGcZAeYzWaFoa8k4GP94IqWOrOmVDx qqmMMkBl1UWiqsZwdWCWrGh2MA37HCVM5B1A36034KOFqwPJz9ELetnsP9D8xhPC X0GLukwt6cNtlyD7q6DREu5A0XrccDNJE3pIFP5Y307QNhdoccWmvOtdiyM1d+Gb FktlEOn1Nu/M2fIokoqI9fIgCsROJIhkfIjZiG0p0z0wpEYek/tn9vz6gSsmF3TR rxJWRSK1+z2wA3Km9S/7r9aIqORwbPkUs1uwIHf5pGimI31c32eAbT7nOtXqulfI dCnsowEmBfkGSadYhjMeXexp314kMmB7guqjDNZ1BVZzm1pRDnqVUOirNtQGwb0y svHIRqlt495AJeZlsrma/jHIAT2c32o4HAv/GieJB1xqBUfk198Li5PjKtf39Pc5 AY5r/OwKy18UUGwZ4M5q =UuSU -----END PGP SIGNATURE----- --NbxFrbNsbXAGAdqDspKNsmkVaDCMTQd3n-- --===============7302523773364929476== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============7302523773364929476==--