]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftest: add testing unsharing and counting ksm zero page
authorxu xin <xu.xin16@zte.com.cn>
Fri, 30 Dec 2022 01:18:47 +0000 (09:18 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Feb 2023 23:36:03 +0000 (15:36 -0800)
commit99a321ed74287b772a70861dc40a50434b290f67
tree2e52b6ce13743b51c5cbeb4f5f48311709f8789e
parent291d698d0e6da7f0f6798bea84c883a1c1de0b61
selftest: add testing unsharing and counting ksm zero page

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 three subjct test objects:
1) whether the count of ksm zero page can react correctly to cow
   (copy on write);
2) whether the count of ksm zero page can react correctly to unmerge;
3) whether ksm zero pages are really unmerged.

Link: https://lkml.kernel.org/r/202212300918477352037@zte.com.cn
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
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: David Hildenbrand <david@redhat.com>
Cc: Xuexin Jiang <jiang.xuexin@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/ksm_functional_tests.c