Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp196314lqs; Mon, 4 Mar 2024 21:49:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+QlER28ek0JZ1TfiZQ7ciGBYTgCFVPUnyIrfnKOyKKiCTuroNZujq49RBH+NzuSop8RFe9+PRvNB96DnFuB4/+SPl/FfqjuKrtV0ywA== X-Google-Smtp-Source: AGHT+IEUR2tw20ZME7dv81eoHueo6wzp2EyHfSNzvGtODHBRI89n/qFOIZj7CYmlJMhJ+ZS2jHQu X-Received: by 2002:a0c:f8c1:0:b0:68f:cd2c:ee9e with SMTP id h1-20020a0cf8c1000000b0068fcd2cee9emr940654qvo.11.1709617758504; Mon, 04 Mar 2024 21:49:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709617758; cv=pass; d=google.com; s=arc-20160816; b=HH91zUMaxz71/2aN9wFbGJ9tV5vbe777pJFlDOYRhlaRctt4A1LLq709RU0J8DQf6C qrSuGD+oNBowBByssAjgmgRLQohZoqVBqB9+vcD2HVibsIdtWht5VXTKOJ2o9KcWYcjY PB8nJACJNeT9KCAMuiAGVe/erCdBAcmxx4koaduDYjGQ0HrvudWyxFEDc8jacc/DSOBa Aah3rFKmOXXF/G8cRezwcmebvxhz9Zwrg7kQOs10MHH/rj4YBsMZRqbDKD8hfcMwYrMH n8b7DsHBEXB6cMptsV2DrGhJZyUBqooNcgFfubY2kUJYXu70eWMONpq/Hq1KW4PDdMZB WTDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=i5Icje+UcpNKSOgrhczbeShW7zQ0cZ/zKpq5I1bUWKc=; fh=eqf3AyHbJJEGBlVgzS6VpWqXqELc69Qfw77BGisVcJQ=; b=PRrm0k5jlQTTnwYF/AA8OhnazFWPcxPvzzAfcOAzKeHNEtHvszpoSzItj3S0Tdfi/A XJViir1DePvhtSB9mJTy7U5gapW65pOtqqWohNnUG7kNIVI33kYvtajGdJOaWvpj4Qfx OR7ZqFBA2+aP3tsowftC2OaxulvS1CAoiHcaEDJUgPOQEtHVvQE7s2vXcZl5Nqi2+nk3 HzzdJ3w5nIHYjShfKbdPFakO6z/gl8uwb3gDqPkZ2QFZj3abKKMDB2VM9gTEt6ZJ5mPk 9dfpGOJkx0lcAp/Zn9/3wo+JQtVzDkgvTRFqHQkgJUkrn+NvSB5bAanR9ZeVsV6QbOkd EBFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jJ0V8bya; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-91701-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id hf15-20020a0562140e8f00b0068fef9b4468si11697735qvb.279.2024.03.04.21.49.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 21:49:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91701-linux.lists.archive=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=@collabora.com header.s=mail header.b=jJ0V8bya; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-91701-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 3ED3E1C21B5B for ; Tue, 5 Mar 2024 05:49:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6E0678B47; Tue, 5 Mar 2024 05:49:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="jJ0V8bya" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 229822AE95; Tue, 5 Mar 2024 05:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709617751; cv=none; b=qJUrdf9So9rxspGp6ojd4jhpOahvoq5NbyHrSTb83n6XZ3EomHYzB4nIXJwehgPVbLGKPxWnu+XZMRxYmSuR5VjL/yVD57XccDC9bmSoU5tgFQCQL3IU+1BQqlsVyUipHSn4zODWjdcc/VuvHwDj20msQJ4OyFtLuKvUU3K12tE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709617751; c=relaxed/simple; bh=wvRgZJSM1dR6WL3p4B7kWeQbutXl/5mwa20uQCoAsGY=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=oZ0kz5Q5Mkcp0ULK5OA99XZJ6MDBlr4+rtWmUXxTIvr32f9wkqZe7daywcUdLYgcL644n6YYy5O/NRp40cjRw+F9l+THcu4wdARG7uFkjqQN7TKggeQfiu27eHJ6/xLC31UIw/i6rndMxpWoTR8QJ7l/6IyGIfG5pb6XV+KJzfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=jJ0V8bya; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709617748; bh=wvRgZJSM1dR6WL3p4B7kWeQbutXl/5mwa20uQCoAsGY=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=jJ0V8byayTEgMZL4kBldTYLQrlEonK+fc6F5TwjUzftk4ghhwqtX6Odj4blpQOVCc GVm5aZZnsop7HOWDKvaPTCeduxiQ6/iGUEaA7f6Ge6HHYbRgz5UllKw4qNQUj7Ilex MhZglMcPzxwFHAoS0VMXJXLqybhZAk3ltu6p/DZygrguHF4jwMslnbY9QMez6eFUQF d7Rlh3jmAhdomIikF7b6HGjm9vA+T7lUZjbyb+eI/LUZnNWA6DsNMIxg9KY5Ul+VBk D6lpnjW/R9yrZx/FDp4yzPucWP7+09N2bue67H1TW9heul5htyJ3dnbAIhtyqdNsSg 923hs3u0p4qeQ== Received: from [10.193.1.1] (broslavsky.collaboradmins.com [68.183.210.73]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id A7D4437820CC; Tue, 5 Mar 2024 05:49:04 +0000 (UTC) Message-ID: <2b4cd134-1a90-42aa-ac25-8dc6db5cce27@collabora.com> Date: Tue, 5 Mar 2024 10:49:31 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, ben@decadent.org.uk, shuah@kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH] selftests/mm: Dont fail testsuite due to a lack of hugepages To: Nico Pache References: <20240301073300.287508-1-npache@redhat.com> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 3/5/24 12:08 AM, Nico Pache wrote: > On Fri, Mar 1, 2024 at 2:35 AM Muhammad Usama Anjum > wrote: >> >> On 3/1/24 12:33 PM, Nico Pache wrote: >>> 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. >> Why don't we only skip that particular test which requires huge number of >> pages instead? Thus the behavior of this script would remain same. > Hi Muhammad, > > That would not solve the problem-- The issue is not with the > userfaultfd test, but rather this part of the script that tries to > allocate the hugepages. If it doesnt succeed at allocating the right > amount of hugepages it will exit the run_vmtests.sh script, thus > stopping all other tests. With the `exit` removed, the test suite is > able to run, and upon running the userfaultfd test will result in a > failed test case. > > If you'd like I can follow up with a patch to skip the test cases (in > the actually test) rather than failing. Its just that we don't want failures if there are less number of huge pages available. CI people would mind finding failures. Tests should be updated to skip in those cases then. > > Cheers, > -- Nico >> >>> >>> 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?" >> >> -- >> BR, >> Muhammad Usama Anjum >> > > -- BR, Muhammad Usama Anjum