From patchwork Tue Jan 13 18:17:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 43078 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3CD4426CFB for ; Tue, 13 Jan 2015 18:19:43 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id p9sf2561034lbv.1 for ; Tue, 13 Jan 2015 10:19:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=qlfJNSyUMomm17YNqmcoM3+egfoxscJmIkermBkgvoQ=; b=U3i6uNUyS/6NB9MHtyzHyLVEKpUi5J878nADOVItSibm0kN3ynynSjsNNXJ3AR+D/e FGqhfKzeeJ0OicWMidmIt85Q70ZYkJvQOVn6cBqAAONBkwkK5GPbpEFO6fTDXRDSKaBo QltSM/zZEKCPc0xm4wDhrkA1oVZzJCrAemiZ8VQXHiczGHxgMUrRAYBE2pPaOpPtQCUp YV3gc0cgd96NO73jQI15eNVZdAqHK8k1nrmbKtt6caymnrGAwatIg4Kl82mKx2uVv6S9 As/ZP+TZ7KkZowEUQr1oPeKz/WR8nJ5nuFAtIrP2GJOl1F+iASpe6nRn5tLfSUTrB+UU iwrw== X-Gm-Message-State: ALoCoQkNGtSKIahpTWe3phaJoYJxvZbqn+z/YHp8e/dm+hzNYGO2fXIYoeTUui7XF2K3G0yyrklI X-Received: by 10.112.89.36 with SMTP id bl4mr4658280lbb.1.1421173182000; Tue, 13 Jan 2015 10:19:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.162 with SMTP id kr2ls28520lac.36.gmail; Tue, 13 Jan 2015 10:19:41 -0800 (PST) X-Received: by 10.112.84.225 with SMTP id c1mr43497227lbz.22.1421173181857; Tue, 13 Jan 2015 10:19:41 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id ca7si3615959lad.74.2015.01.13.10.19.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Jan 2015 10:19:41 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id hs14so4097990lab.8 for ; Tue, 13 Jan 2015 10:19:41 -0800 (PST) X-Received: by 10.152.8.11 with SMTP id n11mr41887607laa.38.1421173181693; Tue, 13 Jan 2015 10:19:41 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp1462248lbb; Tue, 13 Jan 2015 10:19:41 -0800 (PST) X-Received: by 10.140.31.36 with SMTP id e33mr58226171qge.36.1421173180438; Tue, 13 Jan 2015 10:19:40 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id d110si27761611qga.93.2015.01.13.10.19.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 13 Jan 2015 10:19:40 -0800 (PST) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YB62U-0007at-Hk; Tue, 13 Jan 2015 18:18:02 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YB62S-0007aS-Ud for xen-devel@lists.xenproject.org; Tue, 13 Jan 2015 18:18:01 +0000 Received: from [85.158.143.35] by server-1.bemta-4.messagelabs.com id B7/A2-09842-85165B45; Tue, 13 Jan 2015 18:18:00 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-5.tower-21.messagelabs.com!1421173079!21190398!1 X-Originating-IP: [74.125.82.50] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.12.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 18938 invoked from network); 13 Jan 2015 18:17:59 -0000 Received: from mail-wg0-f50.google.com (HELO mail-wg0-f50.google.com) (74.125.82.50) by server-5.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 13 Jan 2015 18:17:59 -0000 Received: by mail-wg0-f50.google.com with SMTP id a1so4541697wgh.9 for ; Tue, 13 Jan 2015 10:17:59 -0800 (PST) X-Received: by 10.194.62.76 with SMTP id w12mr42195151wjr.5.1421173076289; Tue, 13 Jan 2015 10:17:56 -0800 (PST) Received: from chilopoda.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id x2sm26707391wjx.9.2015.01.13.10.17.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Jan 2015 10:17:55 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 13 Jan 2015 18:17:21 +0000 Message-Id: <1421173041-29870-3-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1421173041-29870-1-git-send-email-julien.grall@linaro.org> References: <1421173041-29870-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH 2/2] xen/arm: grant-table: Increased the initial number of grant frame to 4 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: When a domain is created on ARM, the grant table code initialized one grant frame. With a basic load (i.e disk usage), Xen is quickly trying to expand the number of frames: (XEN) grant_table.c:1305:d2v0 Expanding dom (2) grant table from (1) to (2) frames. (XEN) grant_table.c:1305:d2v0 Expanding dom (2) grant table from (2) to (3) frames. (XEN) grant_table.c:311:d0v0 Increased maptrack size to 2 frames (XEN) grant_table.c:311:d0v0 Increased maptrack size to 3 frames The x86 code is initialied 4 frames (I didn't find the exact reason). I think we could use the same default value. Signed-off-by: Julien Grall --- xen/include/asm-arm/grant_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-arm/grant_table.h b/xen/include/asm-arm/grant_table.h index 88ee3c6..5e076cc 100644 --- a/xen/include/asm-arm/grant_table.h +++ b/xen/include/asm-arm/grant_table.h @@ -3,7 +3,7 @@ #include -#define INITIAL_NR_GRANT_FRAMES 1 +#define INITIAL_NR_GRANT_FRAMES 4 void gnttab_clear_flag(unsigned long nr, uint16_t *addr); int create_grant_host_mapping(unsigned long gpaddr,