summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorxu xin <xu.xin16@zte.com.cn>2023-06-13 06:09:47 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 20:12:10 +0300
commit3d0745e59c840e64c6b7bf102c43bec29337605d (patch)
tree4b19acd877fc97554fac9d83bb1e5021c013ddaf /mm/page_alloc.c
parent1a8e84305783bddbae708f28178c6d0aa6321913 (diff)
downloadlinux-3d0745e59c840e64c6b7bf102c43bec29337605d.tar.xz
selftest: add a testcase of ksm zero pages
Add a function test_unmerge_zero_page() to test the functionality on unsharing and counting ksm-placed zero pages and counting of this patch series. test_unmerge_zero_page() actually contains four subjct test objects: (1) whether the count of ksm zero pages can update correctly after merging; (2) whether the count of ksm zero pages can update correctly after unmerging by madvise(...MADV_UNMERGEABLE); (3) whether the count of ksm zero pages can update correctly after unmerging by triggering write fault. (4) whether ksm zero pages are really unmerged. Link: https://lkml.kernel.org/r/20230613030947.186089-1-yang.yang29@zte.com.cn Signed-off-by: xu xin <xu.xin16@zte.com.cn> Acked-by: David Hildenbrand <david@redhat.com> Reviewed-by: Xiaokai Ran <ran.xiaokai@zte.com.cn> Reviewed-by: Yang Yang <yang.yang29@zte.com.cn> Cc: Claudio Imbrenda <imbrenda@linux.ibm.com> Cc: Xuexin Jiang <jiang.xuexin@zte.com.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions