From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR1h6-000467-9d for qemu-devel@nongnu.org; Fri, 21 Mar 2014 11:49:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WR1gz-0004E7-Ut for qemu-devel@nongnu.org; Fri, 21 Mar 2014 11:49:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR1gz-0004Ds-NY for qemu-devel@nongnu.org; Fri, 21 Mar 2014 11:49:09 -0400 Message-ID: <532C5F71.60108@redhat.com> Date: Fri, 21 Mar 2014 16:49:05 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1395399490-13295-1-git-send-email-dgilbert@redhat.com> <8761n7itlx.fsf@elfo.mitica> <20140321132224.GA22211@work-vm> <532C57A9.2060002@redhat.com> <20140321154540.GD8476@work-vm> In-Reply-To: <20140321154540.GD8476@work-vm> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/1] Count used RAMBlock pages for migration_dirty_pages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" Cc: Alexey Kardashevskiy , Igor Mammedov , qemu-devel@nongnu.org, Juan Quintela Il 21/03/2014 16:45, Dr. David Alan Gilbert ha scritto: >> > So it looks like your patch could also fix the problem Juan reported >> > at http://article.gmane.org/gmane.comp.emulators.qemu/247462 -- but >> > perhaps only on hosts where !KVM || TARGET_PAGE_SIZE==getpagesize(). > Possibly yes; I think that would cause gaps in the bitmap to have > the same effect as the hot unplug. It would be nice to revive that patch, because without it you risk getting bad performance from migration of hotplugged memory. On-board RAM typically gets low ram_addr_t's that are aligned, but the 128K (32 pages) ROM and the 64K VGA BIOS will ruin the alignment and cause migration to use the slow paths to migrate hotplugged memory above them. Paolo > I'll rework the patch to my less paranoid version from yesterday > that treats bitmap bits as belonging to only one RAMBlock and repost.