From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEKEQ-0008JE-83 for qemu-devel@nongnu.org; Fri, 14 Feb 2014 09:59:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEKEK-0005AX-8i for qemu-devel@nongnu.org; Fri, 14 Feb 2014 09:59:10 -0500 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:48932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEKEK-0005AK-1w for qemu-devel@nongnu.org; Fri, 14 Feb 2014 09:59:04 -0500 Received: by mail-wg0-f46.google.com with SMTP id x13so463006wgg.1 for ; Fri, 14 Feb 2014 06:59:03 -0800 (PST) Date: Fri, 14 Feb 2014 15:59:00 +0100 From: Stefan Hajnoczi Message-ID: <20140214145900.GK17391@stefanha-thinkpad.redhat.com> References: <52FA399F.6070802@profihost.ag> <182FA0E4-ADDC-4112-842B-83957D7DD863@kamp.de> <52FA6CCE.2020703@profihost.ag> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52FA6CCE.2020703@profihost.ag> Subject: Re: [Qemu-devel] memory allocation of migration changed? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Priebe Cc: Orit Wasserman , Peter Lieven , qemu-devel , Dave Gilbert , Juan Quintela On Tue, Feb 11, 2014 at 07:32:46PM +0100, Stefan Priebe wrote: > Am 11.02.2014 17:22, schrieb Peter Lieven: > > > > > >>Am 11.02.2014 um 16:44 schrieb Stefan Hajnoczi : > >> > >>On Tue, Feb 11, 2014 at 3:54 PM, Stefan Priebe - Profihost AG > >> wrote: > >>>in the past (Qemu 1.5) a migration failed if there was not enogh memory > >>>on the target host available directly at the beginning. > >>> > >>>Now with Qemu 1.7 i've seen succeeded migrations but the kernel OOM > >>>memory killer killing qemu processes. So the migration seems to takes > >>>place without having anough memory on the target machine? > >> > >>How much memory is the guest configured with? How much memory does > >>the host have? > >> > >>I wonder if there are zero pages that can be migrated almost "for > >>free" and the destination host doesn't touch. When they are touched > >>for the first time after migration handover, they need to be allocated > >>on the destination host. This can lead to OOM if you overcommitted > >>memory. > >> > >>Can you reproduce the OOM reliably? It should be possible to debug it > >>and figure out whether it's just bad luck or a true regression. > >> > >>Stefan > > > >Kernel Version would also be interesting as well as thp and ksm settings. > > Kernel Host: 3.10.26 > > What's thp / ksm? how to get those settings? Transparent Huge Pages # cat /sys/kernel/mm/transparent_hugepage/enabled Kernel Samepage Merging # cat /sys/kernel/mm/ksm/run Stefan