Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2067716lqg; Mon, 4 Mar 2024 11:45:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCURXNV8Em+snqEiGh90l6BvzBziBGLFZ1iuTAoqbHX5kAUbmIU7BcReV/e58D8TPFJjdGxEWd0Cs5b34LUG7ur6vylgAkRWtIMpUodsXQ== X-Google-Smtp-Source: AGHT+IG1tgl2Ud5NxIYxGus2L3bZxB/jusULLQzJ0TkouDKwNCQ8QyLZLfAPaMhFegpjo4mbn8Eu X-Received: by 2002:a17:902:ea0e:b0:1db:ca53:403 with SMTP id s14-20020a170902ea0e00b001dbca530403mr13128096plg.26.1709581543069; Mon, 04 Mar 2024 11:45:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709581543; cv=pass; d=google.com; s=arc-20160816; b=qSGx5zfGMXCbUQtB9TakZ7Lj0dHqAg80OuzrUKPlf8gM7D5OFFJBcTb4VNnTyUtdIc YVcAMoOA9NL5qNeRs+GiXBmWlLiPvDEVdtYmQTpVrH0s+XfVSSkiZzWV7ktFGy+wlGB9 s2YlrVxvtJqASZOwBEsz6863+jBkxuHY9unk6r0n8VNNE3WxrEDayp1BtDzI6vouuqXp 11yXwZCg7Rx32+BinTac9eae4QgrRKnIZgKFsXCPaz70mUZDDvnMou4oNsrPb4O1y15o 75PDbAOMw2IPdUUbeIBfIbcWNBsQJ1SSvyjHrR9hwqTwgKOLslOvqW6cIdiiSV6IgkXN zNpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=8tiOsoLjDyH9qgATuk9KBE0wMThlXEkQhbl+ACqPams=; fh=q/whp0VYpIeZI3QO3IuTiOHtFp3DQSeIqXYJ3H+xdT8=; b=HnmFfZPnt1OwmWkm+Q+ODOOWMRdIrmTbOduxEbHm5Gq97SwEs7hEaBvUpVMaolNjFI E+R1eO4LIKYg77DEe3kfaTvl6vUXc5qi2nzR2TdOTqxvWkPMng4B246e1Tu7/anr8xfy zZsYTQhrEnm0ZNyCtBpI7MzUPnFXC0qwCyy4ru/pECiV0v/GIV9Pjuw/Cp9+AAD7JUdf gMmKtevufNE08Jxgq97Mq2xvpaK75XFhvLB0M61X2qWK7FCZA1J82uX5z4AtbDgPR32t kW/hJjSWIKmFAibLEPex69IpB/PgYH48HU7Rjf1J5PtvSIfXIm8sDoJnPrRkErtWxgft sa7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GNZH1qsf; 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-91149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n12-20020a170903110c00b001dd090496f1si1557768plh.562.2024.03.04.11.45.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 11:45:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GNZH1qsf; 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-91149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91149-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 61E0CB21F02 for ; Mon, 4 Mar 2024 19:09:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EF2778B65; Mon, 4 Mar 2024 19:09:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GNZH1qsf" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 8AF4E78B64 for ; Mon, 4 Mar 2024 19:09:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709579360; cv=none; b=Z3aJTPo6XLPSH3Sg3QXRy9GNhSg0SrQHBkGtAvOGDwA7Hd9hhdYWnhhqOvbXZYEf4VdOSwyLm579naENlh0d3mRwL/+hkNEXb3PnQUaUjWuwAMOVJHLbFSu4qMcalMXI/ebSOO20jeV4mKSsUs1EAQ2reBOCSgiQBB3T2Zr5KTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709579360; c=relaxed/simple; bh=kIYyxnV0Q3hfFaPKlETsc9QdTOBcN/w5dkg0ZaLqCj0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=d06hKEFyhX10WqM7+2HVritpUCPM5HRujSw1iN7BO9ElTTf47rwGIXS8hFiCFckKHD+5USk844BJyTXaV/fTHgX3oR2SFsZYP5mPUX1lx80/JnDQMb/L/WgnK1vryi3Io3FQdwCi7njtINw0aNjR+RiZnOEYhsXx2eCZwxrpDBA= 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=GNZH1qsf; arc=none smtp.client-ip=170.10.133.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=1709579357; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8tiOsoLjDyH9qgATuk9KBE0wMThlXEkQhbl+ACqPams=; b=GNZH1qsfKJd92mfb/TSGN3YpjBiXcHd+T9vavjt/4IuAxlVJiI05kUk+EAqNoH+CLVW52S bm2L6E87cZFdrSN/RLUEDTY7gNgcvQDD2RnpIC4aOBTcuyj2GMVgTfS7veUYtBmFPJjvVY eTO3sUU7sd48Qdk06eBP/nCpJHIt+90= Received: from mail-yb1-f198.google.com (mail-yb1-f198.google.com [209.85.219.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-578-FP2YDZ82N4CEr0kkLAWaLA-1; Mon, 04 Mar 2024 14:09:16 -0500 X-MC-Unique: FP2YDZ82N4CEr0kkLAWaLA-1 Received: by mail-yb1-f198.google.com with SMTP id 3f1490d57ef6-dc657e9bdc4so1398335276.0 for ; Mon, 04 Mar 2024 11:09:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709579355; x=1710184155; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8tiOsoLjDyH9qgATuk9KBE0wMThlXEkQhbl+ACqPams=; b=baeVfqY2ojsVy9c+KFBHAzZWH6tpoB+ywEowaNNqP2t/Xusl8+cCPhE/YBQNkp2QfB TUB5gZD2rg4kq20VerI38bADI+8rVRqUT3Z5ogwx4JUFKtDh8uI11zpo8uh9mXsJhWmO lell2qgEoldI+M9Yp7uTuq9yyndFrR72MHhqKbbasVd+H1Z1lHBX0yb346KkUkL1kY7j yqFmWGhb+W5TQXLBiwc3ThmtmSggc3Z2x01TRbmM+RTkFDqXOMamOyX6E90w4eoeLV5y MuWPsTBfUiqD0x/hA/i+L9QuLIxfWv9Y7E2KoN/oktQlvTwPaDTrbVVL0jXKHryzWS37 0F+w== X-Forwarded-Encrypted: i=1; AJvYcCXQKpI1WLeOSWUdrkgXv968JeQh7mgQVN8ZegkOBNUECHdvJbXSbfjep8DRcdboF/KATzi/fG9TPRlTj0kqN4PSgvpOGNwncfL512vQ X-Gm-Message-State: AOJu0YxjNS9IfH88GFAw/GuVZRl3q3ELVDPs6/zjnAp0QL3EAvto3mJU 92d6okyS0YTuj7ZQuzsmNE26H05yZVdxESB78p1z2uIBsAEfJiuFojxV3vA5g7qwSViBebz8MUG qTxZpAIhor+nRt86klqQjq0pJEB/U5N1jvqK7SSaTbnn8JOIA4pyFxmFkYX5KVnOy/yCGVXFWn4 BZOPQXM/UrC69xDPXl82HrGdAbPqEInKzaGwjN X-Received: by 2002:a25:b204:0:b0:dcf:56c1:5a12 with SMTP id i4-20020a25b204000000b00dcf56c15a12mr7029283ybj.38.1709579355525; Mon, 04 Mar 2024 11:09:15 -0800 (PST) X-Received: by 2002:a25:b204:0:b0:dcf:56c1:5a12 with SMTP id i4-20020a25b204000000b00dcf56c15a12mr7029265ybj.38.1709579355051; Mon, 04 Mar 2024 11:09:15 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240301073300.287508-1-npache@redhat.com> In-Reply-To: From: Nico Pache Date: Mon, 4 Mar 2024 12:08:49 -0700 Message-ID: Subject: Re: [PATCH] selftests/mm: Dont fail testsuite due to a lack of hugepages To: Muhammad Usama Anjum Cc: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Mar 1, 2024 at 2:35=E2=80=AFAM 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 limite= d > > memory, the userfaultfd test hugepage requirement is too large. > > > > Exiting early due to missing one test's requirements is a rather aggres= sive > > 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. 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 >