From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG6bV-0003EY-4h for qemu-devel@nongnu.org; Thu, 23 Jun 2016 11:31:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bG6bR-0000sd-TL for qemu-devel@nongnu.org; Thu, 23 Jun 2016 11:31:41 -0400 Received: from mx-v6.kamp.de ([2a02:248:0:51::16]:43810 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG6bR-0000r8-Jv for qemu-devel@nongnu.org; Thu, 23 Jun 2016 11:31:37 -0400 References: <5768F923.7040502@kamp.de> <20160621131815.GB2264@work-vm> <576BF910.70304@kamp.de> <178ee05d-cb23-e1ba-5a7f-87a5caef1e91@redhat.com> From: Peter Lieven Message-ID: <576C00D1.9020202@kamp.de> Date: Thu, 23 Jun 2016 17:31:29 +0200 MIME-Version: 1.0 In-Reply-To: <178ee05d-cb23-e1ba-5a7f-87a5caef1e91@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Qemu and heavily increased RSS usage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , "Dr. David Alan Gilbert" Cc: "qemu-devel@nongnu.org" , Fam Zheng , Peter Maydell Am 23.06.2016 um 17:21 schrieb Paolo Bonzini: > > On 23/06/2016 16:58, Peter Lieven wrote: >> commit ba3f4f64b0e941b9e03568b826746941bef071f9 >> Author: Paolo Bonzini >> Date: Wed Jan 21 12:09:14 2015 +0100 >> >> exec: RCUify AddressSpaceDispatch >> >> Note that even after this patch, most callers of address_space_* >> functions must still be under the big QEMU lock, otherwise the memory >> region returned by address_space_translate can disappear as soon as >> address_space_translate returns. This will be fixed in the next part >> of this series. >> >> Reviewed-by: Fam Zheng >> Signed-off-by: Paolo Bonzini >> >> @Paolo, @Fam, any idea? > When you use RCU, freeing stuff is delayed a bit. define a bit? I face the issue that it seems (some) stuff is actually never freed... Consider the following simple vServer: ./x86_64-softmmu/qemu-system-x86_64 -enable-kvm -M pc-i440fx-2.1 -nodefaults -serial null -parallel null -m 4096 -smp 4,sockets=1,cores=4,threads=1 -monitor tcp:0:4004,server,nowait,nodelay -mem-path /hugepages -mem-prealloc -cpu Westmere,enforce -rtc base=utc -no-hpet -vga vmware -pidfile /tmp/qemu.pid head at 9d82b5a VmHWM: 22660 kB VmRSS: 22656 kB head at 79e2b9a VmHWM: 32948 kB VmRSS: 32948 kB even after several minutes. Thanks, Peter