mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: William Roche <william.roche@oracle.com>
To: Jiaqi Yan <jiaqiyan@google.com>,
	linmiaohe@huawei.com, muchun.song@linux.dev
Cc: nao.horiguchi@gmail.com, ljs@kernel.org, vbabka@kernel.org,
	tony.luck@intel.com, wangkefeng.wang@huawei.com,
	willy@infradead.org, akpm@linux-foundation.org,
	osalvador@suse.de, rientjes@google.com, duenwen@google.com,
	jthoughton@google.com, jgg@nvidia.com, ankita@nvidia.com,
	peterx@redhat.com, sidhartha.kumar@oracle.com, ziy@nvidia.com,
	skhan@linuxfoundation.org, corbet@lwn.net, david@kernel.org,
	dave.hansen@linux.intel.com, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	linux-api@vger.kernel.org, linux-kselftest@vger.kernel.org,
	linux-doc@vger.kernel.org
Subject: Re: [PATCH v4 2/3] selftests/mm: test userspace MFR for HugeTLB hugepage
Date: Wed, 25 Nov 2026 01:17:52 +0100	[thread overview]
Message-ID: <4a04e29e-a0d9-43e9-ac90-34a36d6a7904@oracle.com> (raw)
In-Reply-To: <20261115160105.2507650-3-jiaqiyan@google.com>

About the selftest:

The Linux documentation indicates that there is no fixed debugfs mount
point, so we should probably discover the debugfs mount point instead
of assuming it is always /sys/kernel/debug/
My March 20 version did that, but I haven't found a C test program
within selftests that dynamically does that.
So maybe keeping the "/sys/kernel/debug/" would be an acceptable
implementation, and could also be an explicit test prerequisite,
with a clear skip if the interface is unavailable.


I would also suggest to load the hwpoison_inject module before starting.
Something like that should be enough:

         r = system("modprobe hwpoison_inject");
         if (r != 0) {
                 ksft_test_result_fail("Can't probe hwpoison_inject 
kernel module");
                 return -1;
         }

Just in case it's not already there, and we would like to support a
standalone invocation.


I also agree with Chris: The default test should run on 2M pages to
have a better chance to run because of lower requirements.
By default, I would even suggest running 2M test first, followed by the
1G test when that size is supported and sufficient HugeTLB pages are
available.


HTH,
William.

  parent reply	other threads:[~2026-11-25  0:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-15 16:01 [PATCH v4 0/3] memfd-based Userspace MFR Policy for HugeTLB Jiaqi Yan
2026-11-15 16:01 ` [PATCH v4 1/3] mm: memfd/hugetlb: memfd-based userspace HugeTLB MFR policy Jiaqi Yan
2026-11-17  4:50   ` Chris Down
2026-11-25  0:17     ` William Roche
2026-11-15 16:01 ` [PATCH v4 2/3] selftests/mm: test userspace MFR for HugeTLB hugepage Jiaqi Yan
2026-11-17  4:50   ` Chris Down
2026-11-25  0:17   ` William Roche [this message]
2026-11-15 16:01 ` [PATCH v4 3/3] Documentation: add documentation for MFD_MF_KEEP_UE_MAPPED Jiaqi Yan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a04e29e-a0d9-43e9-ac90-34a36d6a7904@oracle.com \
    --to=william.roche@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=ankita@nvidia.com \
    --cc=corbet@lwn.net \
    --cc=dave.hansen@linux.intel.com \
    --cc=david@kernel.org \
    --cc=duenwen@google.com \
    --cc=jgg@nvidia.com \
    --cc=jiaqiyan@google.com \
    --cc=jthoughton@google.com \
    --cc=linmiaohe@huawei.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=muchun.song@linux.dev \
    --cc=nao.horiguchi@gmail.com \
    --cc=osalvador@suse.de \
    --cc=peterx@redhat.com \
    --cc=rientjes@google.com \
    --cc=sidhartha.kumar@oracle.com \
    --cc=skhan@linuxfoundation.org \
    --cc=tony.luck@intel.com \
    --cc=vbabka@kernel.org \
    --cc=wangkefeng.wang@huawei.com \
    --cc=willy@infradead.org \
    --cc=ziy@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®