From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHqUu-0001tx-HM for qemu-devel@nongnu.org; Tue, 28 Jun 2016 06:44:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHqUq-000251-Bn for qemu-devel@nongnu.org; Tue, 28 Jun 2016 06:44:03 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:36822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHqUq-00024v-4x for qemu-devel@nongnu.org; Tue, 28 Jun 2016 06:44:00 -0400 Received: by mail-wm0-x244.google.com with SMTP id c82so4813543wme.3 for ; Tue, 28 Jun 2016 03:43:59 -0700 (PDT) Sender: Paolo Bonzini References: <1467104499-27517-1-git-send-email-pl@kamp.de> <1467104499-27517-14-git-send-email-pl@kamp.de> From: Paolo Bonzini Message-ID: Date: Tue, 28 Jun 2016 12:43:56 +0200 MIME-Version: 1.0 In-Reply-To: <1467104499-27517-14-git-send-email-pl@kamp.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 13/15] exec: use mmap for PhysPageMap->nodes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven , qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, mst@redhat.com, dgilbert@redhat.com, mreitz@redhat.com, kraxel@redhat.com On 28/06/2016 11:01, Peter Lieven wrote: > this was causing serious framentation in conjunction with the > subpages since RCU was introduced. The node space was allocated > at approx 32kB then reallocted to approx 75kB and this a few hundred > times at startup. And thanks to RCU the freeing was delayed. > > Signed-off-by: Peter Lieven The size of the node from the previous as->dispatch could be used as a hint for the new one perhaps, avoiding the reallocation? Paolo