Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests/mm: hmm: give migrate_remap_fault a longer timeout
@ 2026-11-19 13:39 Zenghui Yu
  2026-11-19 13:54 ` Zenghui Yu
  0 siblings, 1 reply; 2+ messages in thread
From: Zenghui Yu @ 2026-11-19 13:39 UTC (permalink / raw)
  To: linux-mm
  Cc: jgg, leon, akpm, david, liam, vbabka, rppt, mhocko,
	Zenghui Yu (Huawei)

From: "Zenghui Yu (Huawei)" <zenghui.yu@linux.dev>

migrate_remap_fault sizes its working set from the PMD page size and runs
24 combinations of migration/mremap parameters.  On arm64 with 64K base
pages the PMD size is 512MB, so the test churns through tens of gigabytes
of memory and takes ~32 seconds on my test machine.  This just exceeds the
kselftest harness's 30s default per-test timeout (TEST_TIMEOUT_DEFAULT),
and the test gets killed with "Test terminated by timeout" even though it
is making steady progress.

Raise the timeout to 120 seconds via TEST_F_TIMEOUT, so that the test can
run to completion on configurations with large PMD sizes.

Signed-off-by: Zenghui Yu (Huawei) <zenghui.yu@linux.dev>
---
 tools/testing/selftests/mm/hmm-tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/mm/hmm-tests.c b/tools/testing/selftests/mm/hmm-tests.c
index e5f273ca84c1..840015cdd209 100644
--- a/tools/testing/selftests/mm/hmm-tests.c
+++ b/tools/testing/selftests/mm/hmm-tests.c
@@ -2221,7 +2221,7 @@ TEST_F(hmm, migrate_partial_unmap_fault)
 	}
 }
 
-TEST_F(hmm, migrate_remap_fault)
+TEST_F_TIMEOUT(hmm, migrate_remap_fault, 120)
 {
 	struct hmm_buffer *buffer;
 	unsigned long npages;
-- 
2.56.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-19 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 13:39 [PATCH] selftests/mm: hmm: give migrate_remap_fault a longer timeout Zenghui Yu
2026-11-19 13:54 ` Zenghui Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox