selftests-vm-add-selftest-for-madv_collapse-of-uffd-minor-memory.patch removed from -mm tree
The quilt patch titled
Subject: selftests/vm: add selftest for MADV_COLLAPSE of uffd-minor memory
has been removed from the -mm tree. Its filename was
selftests-vm-add-selftest-for-madv_collapse-of-uffd-minor-memory.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Zach O'Keefe" <[email protected]>
Subject: selftests/vm: add selftest for MADV_COLLAPSE of uffd-minor memory
Date: Thu, 22 Sep 2022 15:40:46 -0700
Add :collapse mod to userfaultfd selftest. Currently this mod is only valid for "shmem" test type, but could be used for other test types.
When provided, memory allocated by ->allocate_area() will be hugepage-aligned enforced to be hugepage-sized. userfaultf_minor_test, after the UFFD-registered mapping has been populated by UUFD minor fault handler, attempt to MADV_COLLAPSE the UFFD-registered mapping to collapse the memory into a pmd-mapped THP.
This test is meant to be a functional test of what occurs during UFFD-driven live migration of VMs backed by huge tmpfs where, after a hugepage-sized region has been successfully migrated (in native page-sized chunks, to avoid latency of fetched a hugepage over the network), we want to reclaim previous VM performance by remapping it at the PMD level.
---
tools/testing/selftests/vm/Makefile | 1 tools/testing/selftests/vm/userfaultfd.c | 171 ++++++++++++++++----- 2 files changed, 134 insertions(+), 38 deletions(-)
tools/testing/selftests/vm/Makefile renamed from tools/testing/selftests/vm/Makefile~selftests-vm-add-selftest-for-madv_collapse-of-uffd-minor-memory +1 -0
@@ -99,6 +99,7 @@ $(OUTPUT)/khugepaged: vm_util.c $(OUTPUT)/madv_populate: vm_util.c $(OUTPUT)/soft-dirty: vm_util.c $(OUTPUT)/split_huge_page_test: vm_util.c +$(OUTPUT)/userfaultfd: vm_util.c ifeq ($(MACHINE),x86_64) BINARIES_32 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_32))
tools/testing/selftests/vm/userfaultfd.c renamed from tools/testing/selftests/vm/userfaultfd.c~selftests-vm-add-selftest-for-madv_collapse-of-uffd-minor-memory +133 -38
353 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are