From mboxrd@z Thu Jan 1 00:00:00 1970 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 12E1A329E79 for ; Thu, 7 May 2026 06:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=170.10.129.124 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778135721; cv=pass; b=Eu3zxyEzV+5e6ujNc4wWNo8paXtwyTdQ/KrtZqQdc68cS3KTtVqYEVKYCA8QOu9INDfPauBNfLbEwWqPxDScLh65m5WflVy/odjm4PwnfoKLB99j+oizgExT5QxRkG2oLtiSDq4BLPZeQKVgh0nfABoWmGL7+8k4F1mE3SithoU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778135721; c=relaxed/simple; bh=1e5QWdJdXYo85SIoew9kJElgC5BVkyxCQhjqgrYoXKA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=F5pmtycDtqMZ+/m6zUhuorv/Yh99c8t/CiBbuEVMEBul0i3gy5LstE2VN4dWKboeWEcfvKTWSbJgNmIHCkYqwPJC1V4HbuTT/FU6qG/JYcLprKBdqfba7DW1w4Dt7Y9DDEqrF+3HKAeSP9Ikpv6PIaSTRhmrnVh2dJDKR2pnMZg= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=KFFihbVI; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=B3IjTEko; arc=pass smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="KFFihbVI"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="B3IjTEko" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778135719; 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=BmF8e40h90ljVl04zACNPWVQcQh3Q1EW1p6gC9vnX28=; b=KFFihbVIJG4kE9rDZOUB7cYtWDy3+tbLM+pJfHzh1QZwgX5tUnv4g2hIOqE7ZFt63RLv7o upPwq1l+xfDBRbqEHbUISAZoWbtMSHCPZ2qv7AVhn1mPIysh/DsJMxzaMZHOXHoAZGwIcp nh2NIjg6cqBNnk5tDtDbB06ygTTWMuQ= Received: from mail-yx1-f72.google.com (mail-yx1-f72.google.com [74.125.224.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-623-o1SfluViNE-IoFYHbuRJ1g-1; Thu, 07 May 2026 02:35:17 -0400 X-MC-Unique: o1SfluViNE-IoFYHbuRJ1g-1 X-Mimecast-MFC-AGG-ID: o1SfluViNE-IoFYHbuRJ1g_1778135717 Received: by mail-yx1-f72.google.com with SMTP id 956f58d0204a3-646e2b40478so1009510d50.0 for ; Wed, 06 May 2026 23:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1778135717; cv=none; d=google.com; s=arc-20240605; b=OLCz9+Qk2CAQXj1iOx9c7dveWEj9BIOhTcVUAUPaKpbfwHo4ViWsqRrTBPS4vwscsi ZVEJkMxjObCI0T9l0RMcjipJri2u6bgYCaHOvtHeAtzUenKfT1LCT9ozXLJQjjFljKQi cDlPItMyBNADs9Fi8l+d1ydPTtJCgvzYQ3jpdUx9aNr7VI7Ib3SObshj0hIML9iOL1C+ Y8xGYumtw/hGzB9FHsmfD1BFddXQF9AmhB50/4MSxdR35d/s65Gb83nxhzZNBrZKqJPo SungLELz8VNtOoErFLuFZa6G2ud0rczHV+2VWJ4t0/JmVbsKj5KvXgN9yF3wjlHyWxjX Wytg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BmF8e40h90ljVl04zACNPWVQcQh3Q1EW1p6gC9vnX28=; fh=I0CW7UgHTRJo983uYqXWyqq/YxRxrIayDx/QxArO07o=; b=WYT/17oId/XrqZ982+fN1JiTMdDLq4uqtfY96QugSn9+jyAuoZU0RAR+Sv60pMNjbZ vGBADr37+JQfUkZ+nFVPNEeDCdUDPHLNeuwxzWk5qTCqMRFGoMKyYKxbV5FR7I+9nGzt A0e9632atU7OnOn0XqLP+yR3sgmknutrlAOj8rPNzE+tEG3W6/YNligULyYKxuq81/Wo bVYakqiDzDIiNfFp2omBTLoHtMulKRSoMHj0KHkU8e99fSgqbrQ22LsU0zzPtP6Ua4Vv WonEyL2IK2WDFDIRO2B4oeAaDO2kxaGztdujE3SM19uUmzFX0M5y/nkwiIFObWWmGU8q KQzg==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1778135717; x=1778740517; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BmF8e40h90ljVl04zACNPWVQcQh3Q1EW1p6gC9vnX28=; b=B3IjTEkoYCKaxqLOVvghrAWTGPQ+CSJAHZDruS1jDc34+tlAtlnFgojqh6cUFopktv At1lJiEMpIBnSIFXUci1VdrTeftWTVo3ZxOzYwP7WI5db3xAKfn0xx3OFvLqKQzQCD8K 1YaR73w6pecOa7I/WHBXeH2lUVoJ7cF6e3HM9HyRW+op0XDscsTndK4ddGj28Gjvp/xe jvXsZIQAd6lDqEvLRC5QJzOBVtQT8RtUp0RhZtS+sksgpGS4PAfbsV1wT81rVzQ3T2F2 PpEUJqqlTuxE3sJJ84dR/ud5LDvvL9O8K2rb1yW6KTTZo+zPcKz1vcBHtNArvscxJozH Ie7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778135717; x=1778740517; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BmF8e40h90ljVl04zACNPWVQcQh3Q1EW1p6gC9vnX28=; b=FVIw/Vtsmnz7/KSYle4zMZzszi5fwujbFo1eUtDuaYSpWYesa4EJ4fzQf7pPcu+GgI GHYx1teQr8MY0PlVb+7+FT5mZGKV5EQ7zUgNDMA0NFUCw+p6gQVsWiH2xzHndnrzjN3y 36VPZffplW8VkWdK3r2WxMd4V/3ayMmbIaEFjAhgpxgLYC1Pt3Vp1yYl72q1GaMNEO3S NvYkMsrxipbRTbXrfU+ANlsxFt75355ayJJupuFTwbI2JXJ1fi9C8kNAiL/uXQGNCEhb GNWyOZvpbpvZRpZ5zRzaw1Mh9Xc9tRdXgdekzII7fq08TXR+CObgbt/jJzmS/5of5yvU lTrQ== X-Forwarded-Encrypted: i=1; AFNElJ+SpZlCK0gEFca+efq1JSMzyGBCFfF+yFcrJP0biyHf52zS6WD41gsuFnlOm1UZvGp6ken6frbLMjJ2FCM=@vger.kernel.org X-Gm-Message-State: AOJu0Yz2hstGbxkd2icwTKn2oAjxchHSX9DifXrbtOPSNEPqPhbNIbYm vi/70ZX8DGJtGOHPaverttH3E8Tl0xyfg9i2RPiiipwy39kkHcS/jzvkMwl/QzdtXguUBk4fujb jzJ7coV0s8m63bDVHM3z970iZpi9fsmKCQADaU3+A5MbVVPHGaZG27fKqCOfIV0umyOQ47PBvy8 /7dTkFZ8WSxv196/yiPGkC/2mZViq2Q3H0bMmb6whM X-Gm-Gg: AeBDieuV4knIkXqd0pBrvjuIhBoEVSnOyEsy8wG7c7PNDoyGdGBJ5WcdnfLv6uvAQif LnoHorw8YHqlphzkwc5zy5cPeDvae651ubCKY8Ea8KdnBVmnt9UqF/jYRqQZ0XRcgZh9SIu5xXs qlaHZCdgjGNAcWP7wPaXWxvgMstqFSkWf3QsPGlQNrNnFwI6vH5+QYtBO/j0CuDlou4sG+ajb25 u+fnMhIQO9IeQ== X-Received: by 2002:a05:690e:4145:b0:658:e45a:e477 with SMTP id 956f58d0204a3-65d7e72eademr1206511d50.2.1778135717217; Wed, 06 May 2026 23:35:17 -0700 (PDT) X-Received: by 2002:a05:690e:4145:b0:658:e45a:e477 with SMTP id 956f58d0204a3-65d7e72eademr1206480d50.2.1778135716760; Wed, 06 May 2026 23:35:16 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20260429152924.727124-1-ziy@nvidia.com> <20260429153538.727855-7-ziy@nvidia.com> <7e42faea-9f55-4722-a426-94be7fc3a49b@redhat.com> <61FB928B-03FD-4852-BED5-4E453ABB706A@nvidia.com> In-Reply-To: <61FB928B-03FD-4852-BED5-4E453ABB706A@nvidia.com> From: Nico Pache Date: Thu, 7 May 2026 00:35:28 -0600 X-Gm-Features: AVHnY4Lrljxe6KvxlSyOqNI3gvAzejJ0XLC-pzb1vAYqjO_YkbxwJ0hvJkZ60ks Message-ID: Subject: Re: [PATCH v5 11/14] selftests/mm: remove READ_ONLY_THP_FOR_FS in khugepaged To: Zi Yan Cc: Andrew Morton , David Hildenbrand , "Matthew Wilcox (Oracle)" , Song Liu , Chris Mason , David Sterba , Alexander Viro , Christian Brauner , Jan Kara , Lorenzo Stoakes , Baolin Wang , "Liam R. Howlett" , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Shuah Khan , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 6, 2026 at 7:15=E2=80=AFAM Zi Yan wrote: > > On 4 May 2026, at 18:11, Nico Pache wrote: > > > On 4/29/26 9:35 AM, Zi Yan wrote: > >> Change the requirement to a file system with large folio support and t= he > >> supported order needs to include PMD_ORDER. > >> > >> Also add tests of opening a file with read write permission and popula= ting > >> folios with writes. Reuse the XFS image from split_huge_page_test. > >> > >> Signed-off-by: Zi Yan > >> --- > >> tools/testing/selftests/mm/khugepaged.c | 131 +++++++++++++++-----= -- > >> tools/testing/selftests/mm/run_vmtests.sh | 12 +- > >> 2 files changed, 102 insertions(+), 41 deletions(-) > >> > > > > >> diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing= /selftests/mm/run_vmtests.sh > >> index 3b61677fe9840..854c5c3e3a6ae 100755 > >> --- a/tools/testing/selftests/mm/run_vmtests.sh > >> +++ b/tools/testing/selftests/mm/run_vmtests.sh > >> @@ -490,8 +490,6 @@ CATEGORY=3D"thp" run_test ./khugepaged all:shmem > >> CATEGORY=3D"thp" run_test ./khugepaged -s 4 all:shmem > >> -CATEGORY=3D"thp" run_test ./transhuge-stress -d 20 > >> - > >> # Try to create XFS if not provided > >> if [ -z "${SPLIT_HUGE_PAGE_TEST_XFS_PATH}" ]; then > >> if [ "${HAVE_HUGEPAGES}" =3D "1" ]; then > >> @@ -508,6 +506,14 @@ if [ -z "${SPLIT_HUGE_PAGE_TEST_XFS_PATH}" ]; the= n > >> fi > >> fi > >> +if [ -n "${SPLIT_HUGE_PAGE_TEST_XFS_PATH}" ]; then > >> +CATEGORY=3D"thp" run_test ./khugepaged all:file ${SPLIT_HUGE_PAGE_TES= T_XFS_PATH} > >> +else > >> + count_total=3D$(( count_total + 1 )) > >> + count_skip=3D$(( count_skip + 1 )) > >> + echo "[SKIP] ./khugepaged all:file" | tap_prefix > > > > This leads selftest runs to always litter the output with SKIP when run= ning this with the wrapper > > > > make -C tools/testing/selftests TARGETS=3Dmm run_tests > > Yes, this is intended to let people know one case is not tested and skipp= ed if XFS cannot be created. Yes but it prints after each test case run, not just the khugepaged runs > > > > >> +fi > >> + > >> CATEGORY=3D"thp" run_test ./split_huge_page_test ${SPLIT_HUGE_PAGE_T= EST_XFS_PATH} > >> if [ -n "${MOUNTED_XFS}" ]; then > >> @@ -516,6 +522,8 @@ if [ -n "${MOUNTED_XFS}" ]; then > >> rm -f ${XFS_IMG} > >> fi > >> +CATEGORY=3D"thp" run_test ./transhuge-stress -d 20 > >> + > >> CATEGORY=3D"thp" run_test ./folio_split_race_test > >> CATEGORY=3D"migration" run_test ./migration > > > Best Regards, > Yan, Zi >