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: 208673 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp915571dyb; Thu, 29 Feb 2024 23:33:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX0hHmH7BMt4OGGuMU+ROOvIQlMS8HfKd+O9tkU0P58n9Gjk3lm6rvreYDy9G14HsiJcvo4algEoJ03WWqosfdRQh+QTQ== X-Google-Smtp-Source: AGHT+IE1lnP0tVffW/SYJHIUGaYY/FXau2IOCJkahHdxAPmZQ+AmTLyJ8YgvTKHDcxP7tRh+VRnW X-Received: by 2002:a0c:f7c5:0:b0:690:4568:3329 with SMTP id f5-20020a0cf7c5000000b0069045683329mr1013001qvo.5.1709278408659; Thu, 29 Feb 2024 23:33:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709278408; cv=pass; d=google.com; s=arc-20160816; b=id51UZusGKtWtoGw5ANWbGAP9hyhoJQXy1dLUKboQb3Xsn2OaOHgDEUQoVsQGhhca0 x5b7Z8EFBTN8A8ibLJ50eaQXZxCKaHVJkXYbSW/PvPKxbtMZdhCmGtnsQhXEE2rYgOyi ALYMjoq5TGoe8LocE6kB4hWEAp+2m5GIpTVejSuOmkHy4pO9po6SaQAtVD1mUkxUq/P1 RHSwoUgbQsO5T71wFVhrssqPkhA1Bl+DAKEucgxP3GX8dr7fVayp5aOBaFKgq2XPeBKH LuTuZ3zryrxJ+IPW6B2mIUSV+cK8Dy/dGDPngLZZ3mgdQXaSYsfIZJTJn047UnvuUwLJ qUKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=jpPZGV9V3hnUBn8i3CL2d4Yea6dbDC8URH30r2BRw8I=; fh=ZNleiOxSADfqnhfebnCO77XmdKBn/j2L7uNVsMrWQ+M=; b=mE8MmnaLpIOrHf5WX5YHyTGF/cnr0EpgGYVfXYms7D+AkDuqICMFgY0zsJCD+u418D EkuuwQHlfAQCVeGDunaBemh8wDXmT5XY2eNBaHbQ7bWWKLgL/SAO6Ka2M/DE4CXR7gVF r1KOFNvBMvlKxH1pEDkTcjvndyj9E7XfJqDfT5zpKd5d+5i1VZYYzbFtMXLkMYc0xFKO a2g8ZxD3rRKhhL63yWqpatPkqd/ADn3wI/osbKDzsOs+7SaOeSzwOCKqz9th5MRTWl9F 2X1mJL0kGnj8+xmwYtO9sLtabQsV5DoMm//JiT8fIjCY2cgWvvGOoTaajjF/qDSdIu/A A6bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L96g6phn; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-88012-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88012-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t13-20020ad45bcd000000b0068ffde40312si2985795qvt.232.2024.02.29.23.33.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 23:33:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88012-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L96g6phn; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-88012-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88012-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7263F1C20B00 for ; Fri, 1 Mar 2024 07:33:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 496036996D; Fri, 1 Mar 2024 07:33:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="L96g6phn" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36F242031D for ; Fri, 1 Mar 2024 07:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709278397; cv=none; b=M59b9fD2q1YczQXx7Tn+ZL5vGpDJZPamDej4sM7Idy3FvUf5dFaFX6OpTA0DH4SyMRt8SD/i5q30+kb2GtLc+Hxf57VGfDX693HeT4VsvhYbHlDsDi15phkuVYkP7w4KASogS3EMTN/MBtq2W6WlPEf8nn+xAXJaV9mnlsTzBHI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709278397; c=relaxed/simple; bh=TGr/BP1Gn8/hf8q8u7ex7+naL4H/IsFy7tgVN/sDdjQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MqORgmm7urZskNs4cebW4+UobFBpsFp8AbHxT1X6ZpRfJq7t0uA1IORg1fss94wBgESGF1LCHCHoUEYoLT7p2xPzragBl7T9DzH0O15Vfp9BAiQJfJsa0SXxQAa6Ko5uTMuS+sk0G0tmGk28pdFQin0KLYT/29cT2zq2jyrMiFk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=L96g6phn; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709278395; 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=L96g6phneKAPkgQIYWimhtDs0pQuJOq7fZXvS0XmDDKR8FR9RZOYQ4TWk49fDhCDcm/ccJ ngpcMW52uWuCGnim/Xzp6fsEQ8H9DUJA7vIMVAjGx4QAxAWM+D71gFaNtFJsJ7SVIm1d2Y wnZ8Rl+tXxgkAO79Q9q9cgG4L6C4qSY= 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792308316480288476 X-GMAIL-MSGID: 1792308316480288476 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?"