Received: from eggs.gnu.org ([2001:4830:134:3::10]:56401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFfqC-0004cQ-C7 for qemu-devel@nongnu.org; Wed, 22 Jun 2016 06:57:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFfq8-00071y-8Q for qemu-devel@nongnu.org; Wed, 22 Jun 2016 06:57:03 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:36516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFfq8-00071t-0c for qemu-devel@nongnu.org; Wed, 22 Jun 2016 06:57:00 -0400 Received: by mail-wm0-x22e.google.com with SMTP id f126so82530687wma.1 for ; Wed, 22 Jun 2016 03:56:59 -0700 (PDT) Date: Wed, 22 Jun 2016 11:56:56 +0100 From: Stefan Hajnoczi Message-ID: <20160622105656.GC11330@stefanha-x1.localdomain> References: <5768F923.7040502@kamp.de> <20160621131815.GB2264@work-vm> <57695979.2020102@kamp.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Bu8it7iiRSEf40bY" Content-Disposition: inline In-Reply-To: <57695979.2020102@kamp.de> Subject: Re: [Qemu-devel] Qemu and heavily increased RSS usage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: "Dr. David Alan Gilbert" , Paolo Bonzini , "qemu-devel@nongnu.org" --Bu8it7iiRSEf40bY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jun 21, 2016 at 05:12:57PM +0200, Peter Lieven wrote: > - We changed the coroutine pool to a per thread model. I disabled the pool. This seems > to cut the max used RSS to about 150MB which is still a lot more than qemu-2.2.0 The per-thread coroutine pools only grow when a thread creates/destroys coroutines. The QEMU main loop, iothread, and maybe vcpus should use coroutines. The numerous thread-pool worker threads should not use coroutines IIRC. Creating coroutines is expensive and the pools improve performance a lot. Maybe you can make observations about how to manage pool size more efficiently for your VM? Stefan --Bu8it7iiRSEf40bY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJXam74AAoJEJykq7OBq3PI2NQIAMhKm/cK8ZEbI+pnt+yM0hOb vnmVckCG7RYGkICP9Ks/I1r1HZoIX18mHRHiA2IpKYf2wGFDMSfrz33FUguZ6FrO Vmq5paGFZkX2E1D3twa5BFgR/Yhir+Twzl1aLhbZQkKGk5kZXsijmfU88THDHlW2 A2GBhFpUAoxaZAcmnFOnOP74AiXYrC6j+YcJf/S42xaC/jT+1xZbkCo9Jm42MtOV Uax+AXft3dqgcOCLoQv9DI0OQHweAKpUhlxlZIFm00A6OwFu4xLPO3amlxUD0Yyz DQlFdKkrsQf0R6NM3MNqTly2yavNyx2QmBRBMjglAbFZ1Si/sfto4Usa6KA0aHo= =M5LQ -----END PGP SIGNATURE----- --Bu8it7iiRSEf40bY--