From patchwork Wed May 8 09:52:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Capper X-Patchwork-Id: 16789 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f198.google.com (mail-ye0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 42894238FB for ; Wed, 8 May 2013 09:53:46 +0000 (UTC) Received: by mail-ye0-f198.google.com with SMTP id m13sf1772537yen.1 for ; Wed, 08 May 2013 02:53:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=j/gu9HOj0P6wNm41HlQ+aYhKf2+FVa9XVtaeLkGS/Ow=; b=SSwiUEZx3yQsIWkWUnrX6SOfXmpcG17AaYP9GtT4+clr9ujmutJjoz8KhG8AFT+bgI wcu1dfC6gXGD9WxZ19ZhGMh4k3p7CF7e80PUv8R5jSK9l0PYyHJY0z+vVeP6t76CtLW1 cqW44kLW8Pvr22tcEgxuxqS5Vfh2MS+b352uxqGyk3B/1Z7UELQ1E60M9HLECbR5aVx7 5+1FVXaC0bmQaOMFAW2AgH3fd2jP6Az0Uj/jDDfL4nzZ85uXGN53giUFx8+nIHideLQo BE1/g3+pnaT6OljjSReq7yOiK3b5ggefiVptCpySKZZE4+1ya+0Y81rv1iMILrR5qbnq jveQ== X-Received: by 10.224.36.66 with SMTP id s2mr7114443qad.6.1368006805383; Wed, 08 May 2013 02:53:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.47.48 with SMTP id a16ls830983qen.25.gmail; Wed, 08 May 2013 02:53:25 -0700 (PDT) X-Received: by 10.220.194.5 with SMTP id dw5mr3891787vcb.47.1368006805184; Wed, 08 May 2013 02:53:25 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id l10si11416034vet.19.2013.05.08.02.53.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 May 2013 02:53:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id hf12so1450326vcb.19 for ; Wed, 08 May 2013 02:53:25 -0700 (PDT) X-Received: by 10.52.175.200 with SMTP id cc8mr3338948vdc.94.1368006805110; Wed, 08 May 2013 02:53:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp146850veb; Wed, 8 May 2013 02:53:24 -0700 (PDT) X-Received: by 10.194.5.196 with SMTP id u4mr9251251wju.54.1368006804048; Wed, 08 May 2013 02:53:24 -0700 (PDT) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [2a00:1450:400c:c00::22c]) by mx.google.com with ESMTPS id v3si4695114wjr.246.2013.05.08.02.53.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 May 2013 02:53:24 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::22c is neither permitted nor denied by best guess record for domain of steve.capper@linaro.org) client-ip=2a00:1450:400c:c00::22c; Received: by mail-wg0-f44.google.com with SMTP id z12so1673257wgg.35 for ; Wed, 08 May 2013 02:53:23 -0700 (PDT) X-Received: by 10.180.205.200 with SMTP id li8mr9057781wic.15.1368006803608; Wed, 08 May 2013 02:53:23 -0700 (PDT) Received: from localhost.localdomain (marmot.wormnet.eu. [188.246.204.87]) by mx.google.com with ESMTPSA id m14sm8068040wij.9.2013.05.08.02.53.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 08 May 2013 02:53:23 -0700 (PDT) From: Steve Capper To: linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Michal Hocko , Ken Chen , Mel Gorman , Catalin Marinas , Will Deacon , patches@linaro.org, Steve Capper Subject: [RFC PATCH v2 10/11] ARM64: mm: Raise MAX_ORDER for 64KB pages and THP. Date: Wed, 8 May 2013 10:52:42 +0100 Message-Id: <1368006763-30774-11-git-send-email-steve.capper@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1368006763-30774-1-git-send-email-steve.capper@linaro.org> References: <1368006763-30774-1-git-send-email-steve.capper@linaro.org> X-Gm-Message-State: ALoCoQnbnZU+VHqtgc9YBkCZkXCiCYlXfsHMI96aZOUrbRylcr7LKMS6ubT+LSRemaCuR3GPzp7a X-Original-Sender: steve.capper@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The buddy allocator has a default MAX_ORDER of 11, which is too low to allocate enough memory for 512MB Transparent HugePages if our base page size is 64KB. This patch introduces MAX_ZONE_ORDER and sets it to 14 when 64KB pages are used in conjuction with THP, otherwise the default value of 11 is used. Signed-off-by: Steve Capper Acked-by: Catalin Marinas --- arch/arm64/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 053533b..a5f76cf 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -196,6 +196,11 @@ config ARCH_WANT_HUGE_PMD_SHARE source "mm/Kconfig" +config FORCE_MAX_ZONEORDER + int + default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE) + default "11" + endmenu menu "Boot options"