Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7405956rwl; Thu, 23 Mar 2023 04:02:31 -0700 (PDT) X-Google-Smtp-Source: AK7set9KwatyY1KCYwTIJHgFDIXcmU87iWikz1ATkjSTIhzEJyHraFSdMdvzB53FLG/VbNgYiYdS X-Received: by 2002:a17:906:c04c:b0:92b:5c67:c660 with SMTP id bm12-20020a170906c04c00b0092b5c67c660mr10196692ejb.69.1679569351323; Thu, 23 Mar 2023 04:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679569351; cv=none; d=google.com; s=arc-20160816; b=sEbQg6BrAujys7Le0uEHUFDwbN5jAaIWIRTwuaoZ72AbC8/WUp322XxGceCzKqUWc0 W9lW8BkbCUXX0kJ5VAEHR2Y2+REYTD/85gvMxBzuj7sveM7vaxebKgp6ZaU8RWcz++Fy YCAy7GFR+maW6IwLGVUEn3dvZ7Rcp/4wKl9TU0bMkDjzk7aNpitlJZ3lrr0XyoW/y3+X RTE2+e2PHG68+fiQy65j5llFNW/gqLvyIeogJsI7R/OGh8HLCr9oMKUVsfWVhOa8YWk1 z/ce5EzM5fPDxVW0jl8zm2HrKmRbqUPqI5s2hCnbU0NSZTO/jc+VO8+NV1VeGnU6uwsa sWJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QCFZImWUgF4SzYpd3fS2NuSwTjqijFfXwFN0T87LhhE=; b=oW2D8rS02SDx7HR5y6S88oCpgnH0v1/PkELweVQKWz1uWW6YT+Qzn4jDudk6LmvhGZ OIt+O9aHyRcKD2872AnJbarPJANBGI3S7Sd2RIitLZjvbTmYUYhNbUXHdX/4Pv72JesW OKWmQIZb/0WspFhOt948swXw9wZshW1SChxUo/hBTwFU0N1l3XmI2+A/Yf/ZoPu0x1g+ aw99o2oQhv7ZnXUeekFfkn7X92no4Ot93yBhtm5TToXE3NP9o/bVbgHBf0TdSqgNhShE K27HWcU4i5VGNrP6vOhp3oRJLuSZ1YCKMnApuFMR90mpuhQOJ1164eVAzvcm6Nh9+ax0 +wYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o14-20020aa7c50e000000b004faec05e5c5si10634634edq.138.2023.03.23.04.02.07; Thu, 23 Mar 2023 04:02:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231720AbjCWKyS (ORCPT + 99 others); Thu, 23 Mar 2023 06:54:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbjCWKxl (ORCPT ); Thu, 23 Mar 2023 06:53:41 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 900F249F9; Thu, 23 Mar 2023 03:53:08 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2C368AD7; Thu, 23 Mar 2023 03:53:52 -0700 (PDT) Received: from a077209.blr.arm.com (a077209.arm.com [10.162.40.145]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9C3873F766; Thu, 23 Mar 2023 03:53:05 -0700 (PDT) From: Chaitanya S Prakash To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Chaitanya S Prakash , Andrew Morton , "Aneesh Kumar K . V" , "Kirill A . Shutemov" , Shuah Khan , linux-kselftest@vger.kernel.org Subject: [PATCH 4/5] selftests/mm: Configure nr_hugepages for arm64 Date: Thu, 23 Mar 2023 16:22:42 +0530 Message-Id: <20230323105243.2807166-5-chaitanyas.prakash@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230323105243.2807166-1-chaitanyas.prakash@arm.com> References: <20230323105243.2807166-1-chaitanyas.prakash@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arm64 has a default hugepage size of 512MB when CONFIG_ARM64_64K_PAGES=y is enabled. While testing on arm64 platforms having up to 4PB of virtual address space, a minimum of 6 hugepages were required for all test cases to pass. Support for this requirement has been added. Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Kirill A. Shutemov Cc: Shuah Khan Cc: linux-mm@kvack.org Cc: linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Chaitanya S Prakash --- tools/testing/selftests/mm/run_vmtests.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh index eb9823a6959a..7616b3e4a0f0 100644 --- a/tools/testing/selftests/mm/run_vmtests.sh +++ b/tools/testing/selftests/mm/run_vmtests.sh @@ -222,8 +222,16 @@ CATEGORY="hugetlb" run_test ./thuge-gen if [ $VADDR64 -ne 0 ]; then CATEGORY="hugevm" run_test ./virtual_address_range - # virtual address 128TB switch test + # va high address boundary switch test + ARCH_ARM64="arm64" + prev_nr_hugepages=$(cat /proc/sys/vm/nr_hugepages) + if [ "$ARCH" == "$ARCH_ARM64" ]; then + echo 6 > /proc/sys/vm/nr_hugepages + fi CATEGORY="hugevm" run_test ./va_high_addr_switch.sh + if [ "$ARCH" == "$ARCH_ARM64" ]; then + echo $prev_nr_hugepages > /proc/sys/vm/nr_hugepages + fi fi # VADDR64 # vmalloc stability smoke test -- 2.30.2