diff options
author | xu xin <xu.xin16@zte.com.cn> | 2023-06-13 11:09:47 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-18 10:12:10 -0700 |
commit | 3d0745e59c840e64c6b7bf102c43bec29337605d (patch) | |
tree | 4b19acd877fc97554fac9d83bb1e5021c013ddaf /Documentation/admin-guide | |
parent | 1a8e84305783bddbae708f28178c6d0aa6321913 (diff) | |
download | linux-3d0745e59c840e64c6b7bf102c43bec29337605d.tar.gz linux-3d0745e59c840e64c6b7bf102c43bec29337605d.tar.bz2 linux-3d0745e59c840e64c6b7bf102c43bec29337605d.zip |
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 'Documentation/admin-guide')
0 files changed, 0 insertions, 0 deletions