From patchwork Wed Mar 6 22:37:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nico Pache X-Patchwork-Id: 13584694 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A22F5C5475B for ; Wed, 6 Mar 2024 22:38:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 32CA86B00A1; Wed, 6 Mar 2024 17:38:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E62E6B00A2; Wed, 6 Mar 2024 17:38:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1CB716B00A3; Wed, 6 Mar 2024 17:38:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 0DF656B00A1 for ; Wed, 6 Mar 2024 17:38:10 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id DA99DC063D for ; Wed, 6 Mar 2024 22:38:09 +0000 (UTC) X-FDA: 81868078698.03.70DFE41 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf01.hostedemail.com (Postfix) with ESMTP id 3955940005 for ; Wed, 6 Mar 2024 22:38:08 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=DIUpxR3V; spf=pass (imf01.hostedemail.com: domain of npache@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=npache@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709764688; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=WhvHTa8E6KIfz47SC53e3jlZc8KPDvEvRYf6GRtCMqU=; b=l5sx5BQEqBsZsz/6QN3QC8yYkb37uBuuPWsSqVoZkyzMY79YI8Q/g+ZQMBpcSlEOwQOeKZ cfCnKSroi0d6cLyteex3I3YMrPHTk82WYGtbnUCbHBimu680H3WC/Bn2kZtTfZs7jx9KvK O6V7EYQA9LHyC+BXsFFPgz96FVrizWM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709764688; a=rsa-sha256; cv=none; b=m6fwaZuV2CegkcvgWQ2QpYFKeqBdYIf8u4n4DcWxoEUDYZRbnBCuEnS4EVTU9iudxy99IO jHGWJvPiDJf+9C9ukWuKdGtFcdZZtdRAbzz2nfZDjpUmJ4edIeLfnj2JFUoQ7Xgj0gwf24 M6gKZQVP4+ZIsHCKCfRqN8lUyZcirwU= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=DIUpxR3V; spf=pass (imf01.hostedemail.com: domain of npache@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=npache@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709764687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WhvHTa8E6KIfz47SC53e3jlZc8KPDvEvRYf6GRtCMqU=; b=DIUpxR3VFiTfKNEbbarPUtDc0HfThXwcU7So/bFDJNIxQDCQilXTg9p/T86YqP2tfEi8VM tHS4JecbYe9bySOD50oY+lKsMlCJwMNu6bkW4ldC1qDsK8sLidYoEEUUws74dJAtEmx+Vn IHAjRp4Qun/64B9zaD8O086NdyRD7qc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-659-QO_v-DYrOPqLzMUdIsx2gA-1; Wed, 06 Mar 2024 17:38:03 -0500 X-MC-Unique: QO_v-DYrOPqLzMUdIsx2gA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A430E857A81; Wed, 6 Mar 2024 22:38:02 +0000 (UTC) Received: from localhost.redhat.com (unknown [10.22.9.120]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E907111D793; Wed, 6 Mar 2024 22:38:02 +0000 (UTC) From: Nico Pache To: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ben@decadent.org.uk, shuah@kernel.org, akpm@linux-foundation.org, usama.anjum@collabora.com Subject: [PATCH v2 1/3] selftests/mm: Dont fail testsuite due to a lack of hugepages Date: Wed, 6 Mar 2024 15:37:12 -0700 Message-ID: <20240306223714.320681-2-npache@redhat.com> In-Reply-To: <20240306223714.320681-1-npache@redhat.com> References: <20240306223714.320681-1-npache@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Stat-Signature: 5sg8u7nzdch676mjp6dqtzwq58q9dobd X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 3955940005 X-Rspam-User: X-HE-Tag: 1709764688-323048 X-HE-Meta: U2FsdGVkX1843KcVSeKWhGvxH6NHqpq+JfXeKfoprc1tNmpDov8puN3RZRvqHwtSa1sTlt5HVYr8Y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8BOY= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On systems that have large core counts and large page sizes, but limited memory, the userfaultfd test hugepage requirement is too large. Exiting early due to missing one test's requirements is a rather aggressive strategy, and prevents a lot of other tests from running. Remove the early exit to prevent this. Fixes: ee00479d6702 ("selftests: vm: Try harder to allocate huge pages") Signed-off-by: Nico Pache --- tools/testing/selftests/mm/run_vmtests.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh index 246d53a5d7f28..727ea22ba408e 100755 --- a/tools/testing/selftests/mm/run_vmtests.sh +++ b/tools/testing/selftests/mm/run_vmtests.sh @@ -173,7 +173,6 @@ if [ -n "$freepgs" ] && [ -n "$hpgsize_KB" ]; then if [ "$freepgs" -lt "$needpgs" ]; then printf "Not enough huge pages available (%d < %d)\n" \ "$freepgs" "$needpgs" - exit 1 fi else echo "no hugetlbfs support in kernel?"