From patchwork Fri Mar 1 07:33:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nico Pache X-Patchwork-Id: 13578068 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 993DCC5478C for ; Fri, 1 Mar 2024 07:33:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1E1BE6B008C; Fri, 1 Mar 2024 02:33:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 191276B0093; Fri, 1 Mar 2024 02:33:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 059166B0095; Fri, 1 Mar 2024 02:33:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E99686B008C for ; Fri, 1 Mar 2024 02:33:17 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id C13D11A01F5 for ; Fri, 1 Mar 2024 07:33:17 +0000 (UTC) X-FDA: 81847654434.26.8644183 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf19.hostedemail.com (Postfix) with ESMTP id C50B31A0013 for ; Fri, 1 Mar 2024 07:33:14 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NsMDKYaG; spf=pass (imf19.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=1709278396; 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:references:dkim-signature; bh=jpPZGV9V3hnUBn8i3CL2d4Yea6dbDC8URH30r2BRw8I=; b=UIc/uZJyE9uB9udBM4mfkx7eLen6d0cEMi+Wa44ru0fpI2kFWntc9/zo0f3Qepo9BZALlw 2MKu6gmtzVRX1I8dDh84gvLylEo+z5fySkvcjcGtFpykxoIcrUWShBI3mDkMJ65t9pyNbY ULiK4AFFNNSLmC1CsLweT/WYgc3J+4g= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709278396; a=rsa-sha256; cv=none; b=0r4nLgJhcr01hBni3oMEbRT82EUMwNPaZmM5ynzBiLinVbQ8CRYNbbN4XINvPIkkJwQGMh I4YmnVdVGXVIkM8HXB6AngajjZCgH3OzBYoT+FKac0p6M5ROU8alJGXS8FEF1hSN5GqmZg 1cDnT2MZVWho85vSd3uPv3z8FrAaKuM= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NsMDKYaG; spf=pass (imf19.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=1709278394; 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; bh=jpPZGV9V3hnUBn8i3CL2d4Yea6dbDC8URH30r2BRw8I=; b=NsMDKYaGuVzDcxw+Q5Nie0l/r9jxVm7Ia+PeBd2jRtxPG1dWgFU8F/Lf0BmsRFry7H82IW bDaPk42UyUahdvhl3csnQWwKMnY9mKloloTlf1ISzMHvReiTRKGokyxgqKqA9U5b7eFGAN 0nrRCgFAaeCMn8P8sNYvPJTThlOsqwA= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-633-ZhcNaUkXMtWY5njG5DSoPQ-1; Fri, 01 Mar 2024 02:33:10 -0500 X-MC-Unique: ZhcNaUkXMtWY5njG5DSoPQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 EA6D228116B8; Fri, 1 Mar 2024 07:33:09 +0000 (UTC) Received: from localhost.redhat.com (unknown [10.22.17.153]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6D7B1492BE2; Fri, 1 Mar 2024 07:33:09 +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 Subject: [PATCH] selftests/mm: Dont fail testsuite due to a lack of hugepages Date: Fri, 1 Mar 2024 00:33:00 -0700 Message-ID: <20240301073300.287508-1-npache@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Rspamd-Queue-Id: C50B31A0013 X-Rspam-User: X-Stat-Signature: btwgousfhjoju5bhrbzkkcjqoxtseaqh X-Rspamd-Server: rspam03 X-HE-Tag: 1709278394-530705 X-HE-Meta: U2FsdGVkX1/EhnJ7M4Gb2frwsThsbTpUu3cz9FTgEO8BIivLCZ4Kf0Mwt50V/8cJPiVj4AKHikjQHiXd8Ft3NDWvWofht9//MgyaXWJZnpcSpQxaR4DY1lWa4BfBO4YpjcERQEGJrcw1kWzi5h5bjuVYMQTAVA958Tk8flYTE6/QDCKdnfJ8EcBsNAPQt82zi/a+JCbHdhjpy0LVgLa9j5iXImssPoOjW2hm7LB54RRfGT9cvLq1K2B9/Jzsfim8zU7vOpUjnwypYxv0PCMaFPMIUQlwky6iEO97aqskTz0Ms6qkKPDqO/LsT5XGCxFJ1GyjWKl+7V1akcicjdHmVWmX9nVY70eom+JGB65iDrHq4yXeekjAeFdjmGCc/b4/l+fmUNDEX/YTMFDXb9TP0ehda0tt98njkuCkB3emrkXZIn8ZIcW7DMD4Xwn/EDrs/WmIGNMUjrshlUky3CX64SBbi99Np67E6WF4VhUtJ4SESv40HI9ybVqF/gAzWe6wwbLYP/QCeV7pHYp/URxhE//mxiSrBqLvyFkTJSBA0djLJACpCL8X+BN8vtNiH2LfYOAvCEBRQoB0N6DY+VeNqiHACb7lD1Wx1Nr3Uq4utCDuicIWhqlgvlk2Vt7WgOoZDJeeTsZ+c63CuHOInZtSltflq0tr0KNP71rizZbr2vSktlr+H/2lb1FCk5YF4FgyeGbKjiAMXXwtYcqrAbh/LWM/rnBLzCffAPicXc7pb2MPLrQHWV9TSMSUcQpSK1vw+4b/HnMzSvV3/xry34O8nXN3YCZPSDdB5vAwdR18JdqrYI269Yl2HdhN1mZYQ+ekNetAE78lO4bJN+GE1ySLNcEM+1+59lunP9m93khEDlvQIphwnNrVHPrMsnBfNTBD6Ii2hU0WFCQ= 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?"