[LTP] [PATCH v2 0/3] new test for madvise(MADV_DONTNEED)
Zhao Gongyi
zhaogongyi@huawei.com
Tue Oct 11 14:16:04 CEST 2022
1. verify that after a successful MADV_DONTNEED operation, it will
result in zero-fill-on-demand pages for anonymous private mappings.
2. Test cases for madvise(2) system call, verify that MADV_DONTNEED
cannot be applied to Huge TLB pages.
3. Verify that when MADV_DONTNEED applied to shared mappings, it will
lead to the resident set size(RSS) of the calling process reduced
immediately.
Changes in v2:
- Modify the test adn split the test into two as suggestion
- Add a new test for madvise
Zhao Gongyi (3):
syscalls/madvise03: new test for madvise(MADV_DONTNEED)
syscalls/madvise04: new test for madvise(MADV_DONTNEED)
syscalls/madvise11: new test for madvise(MADV_DONTNEED)
runtest/syscalls | 3 +
testcases/kernel/syscalls/madvise/.gitignore | 3 +
testcases/kernel/syscalls/madvise/madvise03.c | 69 ++++++++++++++++
testcases/kernel/syscalls/madvise/madvise04.c | 48 ++++++++++++
testcases/kernel/syscalls/madvise/madvise11.c | 78 +++++++++++++++++++
5 files changed, 201 insertions(+)
create mode 100644 testcases/kernel/syscalls/madvise/madvise03.c
create mode 100644 testcases/kernel/syscalls/madvise/madvise04.c
create mode 100644 testcases/kernel/syscalls/madvise/madvise11.c
--
2.17.1
More information about the ltp
mailing list