From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGa2S-0002RL-Bi for qemu-devel@nongnu.org; Fri, 24 Jun 2016 18:57:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGa2O-0008I1-DP for qemu-devel@nongnu.org; Fri, 24 Jun 2016 18:57:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGa2O-0008Hs-7g for qemu-devel@nongnu.org; Fri, 24 Jun 2016 18:57:24 -0400 Date: Sat, 25 Jun 2016 01:57:17 +0300 From: "Michael S. Tsirkin" Message-ID: <20160624225717.GA9575@redhat.com> References: <5768F923.7040502@kamp.de> <20160621131815.GB2264@work-vm> <576BB299.80105@kamp.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <576BB299.80105@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" , "qemu-devel@nongnu.org" On Thu, Jun 23, 2016 at 11:57:45AM +0200, Peter Lieven wrote: > Am 21.06.2016 um 15:18 schrieb Dr. David Alan Gilbert: > > * Peter Lieven (pl@kamp.de) wrote: > > > Hi, > > > > > > while upgrading from Qemu 2.2.0 to Qemu 2.5.1.1 I noticed that the RSS memory usage has heavily increased. > > > We use hugepages so the RSS memory does not include VM memory. In Qemu 2.2.0 it used to be ~30MB per vServer > > > and increased to up to 300 - 400MB for Qemu 2.5.1.1 (same with master). The memory increases over time, but seems > > > not to grow indefinetly. I tried to bisect, but had no result so far that made sense. I also tried valgrind / massif, but > > > valgrind does not see the allocation (at least at exit) and massif fails to rund due to - so it pretends - heap corruption. > > > > > > Any help or ideas how to debug further would be appreciated. > > I think I'd try stripping devices off; can you get a similar difference > > to happen with a guest with no USB, no hugepages, no VGA and a simple > > locally stored IDE disk? > > From what I have debugged so far, it seems to be related to virtio-net. With that knowledge I will try to bisect again. > > Peter > Interesting. You can try attaching vhost to tap so virtio net does not process packets in qemu, for comparison. -- MST