From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuY1P-0007CE-Gr for qemu-devel@nongnu.org; Thu, 05 Nov 2015 22:49:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuY1L-0003Cy-FD for qemu-devel@nongnu.org; Thu, 05 Nov 2015 22:49:03 -0500 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:47933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuY1K-0003CK-Oc for qemu-devel@nongnu.org; Thu, 05 Nov 2015 22:48:59 -0500 Received: from /spool/local by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 6 Nov 2015 09:18:54 +0530 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 6D29D125805A for ; Fri, 6 Nov 2015 09:18:52 +0530 (IST) Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay01.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id tA63molv51445856 for ; Fri, 6 Nov 2015 09:18:50 +0530 Received: from d28av05.in.ibm.com (localhost [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id tA63mn8j008959 for ; Fri, 6 Nov 2015 09:18:50 +0530 Date: Fri, 6 Nov 2015 09:18:47 +0530 From: Bharata B Rao Message-ID: <20151106034846.GC29481@in.ibm.com> References: <1446747083-18205-1-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1446747083-18205-1-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH v9 00/56] Postcopy implementation Reply-To: bharata@linux.vnet.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: aarcange@redhat.com, yamahata@private.email.ne.jp, quintela@redhat.com, liang.z.li@intel.com, qemu-devel@nongnu.org, luis@cs.umu.se, amit.shah@redhat.com, pbonzini@redhat.com, david@gibson.dropbear.id.au On Thu, Nov 05, 2015 at 06:10:27PM +0000, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > This is the 9th cut of my version of postcopy. > > The userfaultfd linux kernel code is now in the upstream kernel > tree, and so 4.3 can be used without modification. > > This qemu series can be found at: > https://github.com/orbitfp7/qemu.git > on the wp3-postcopy-v9 tag > > Testing status: > * Tested heavily on x86 > * Smoke tested on aarch64 (so it does work on different page sizes) Tested minimally on ppc64 with back and forth postcopy migration of unloaded pseries guest within the localhost - works as expected. However I am seeing a failure in one case. I am not sure if this is a user error or a real issue in postcopy migration. If I switch to postcopy migration immediately after starting the migration, I see the migration failing with error: qemu-system-ppc64: qemu_savevm_send_packaged: Unreasonably large packaged state: 25905005 1. (qemu) migrate_set_capability x-postcopy-ram on 2. (qemu) migrate -d tcp:localhost:4444 3. (qemu) info migrate capabilities: xbzrle: off rdma-pin-all: off auto-converge: off zero-blocks: off compress: off events: off x-postcopy-ram: on Migration status: active total time: 4177 milliseconds expected downtime: 300 milliseconds setup: 75 milliseconds transferred ram: 115523 kbytes throughput: 155.69 mbps remaining ram: 30117196 kbytes total ram: 33554688 kbytes duplicate: 835311 pages skipped: 0 pages normal: 24061 pages normal bytes: 96244 kbytes dirty sync count: 1 4. (qemu) migrate_start_postcopy 5. (qemu) info migrate capabilities: xbzrle: off rdma-pin-all: off auto-converge: off zero-blocks: off compress: off events: off x-postcopy-ram: on Migration status: failed total time: 0 milliseconds If I run 'info migrate' in step 3 a few more times before step 4, then the migration succeeds. So is there a way to figure out when to switch over to postcopy migration ? QEMU cmdline: ./ppc64-softmmu/qemu-system-ppc64 --enable-kvm --nographic -vga none -machine pseries -m 32G,slots=32,maxmem=64G -smp 16 -device virtio-blk-pci,drive=rootdisk -drive file=/home/bharata/F20-snap1,if=none,cache=none,id=rootdisk,format=qcow2 -monitor telnet:127.0.0.1:1234,server,nowait Host: 4.3.0-rc7+ Regards, Bharata.