[LTP] [LTP PATCH v1 0/1] Add some memory page soft-offlining control
William Roche
william.roche@oracle.com
Mon Aug 8 18:11:11 CEST 2022
This patch is offering a new test to the LTP test suite to control the behavior
of the memory page soft-offlining: its goal is to stress the soft-offlining
mechanism while allocating memory. It verifies the content of a memory address
after a Soft-offline, and tries to reproduce the coditions of a race condition
where newly allocated page could generate a SIGBUS when touched.
(See Kernel upstream commit d4ae9916ea29 "mm: soft-offline: close the race against page allocation")
It is inspired by the existing memory allocation test:
testcases/kernel/mem/mtest07/mallocstress.c
Code tested on ARM and x86.
William Roche (1):
syscalls/madvise11: Add some memory page soft-offlining control
testcases/kernel/syscalls/madvise/.gitignore | 1 +
testcases/kernel/syscalls/madvise/Makefile | 2 +
testcases/kernel/syscalls/madvise/madvise11.c | 381 ++++++++++++++++++
3 files changed, 384 insertions(+)
create mode 100644 testcases/kernel/syscalls/madvise/madvise11.c
--
2.31.1
More information about the ltp
mailing list