diff options
author | xu xin <xu.xin16@zte.com.cn> | 2023-06-13 11:09:42 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-18 10:12:10 -0700 |
commit | 1a8e84305783bddbae708f28178c6d0aa6321913 (patch) | |
tree | 17b13c3f2ff6b91b3ee2d494d1a9646fc518972d /lib/dhry_run.c | |
parent | 6080d19f07043ade61094d0f58b14c05e1694a39 (diff) |
ksm: consider KSM-placed zeropages when calculating KSM profit
When use_zero_pages is enabled, the calculation of ksm profit is not
correct because ksm zero pages is not counted in. So update the
calculation of KSM profit including the documentation.
Link: https://lkml.kernel.org/r/20230613030942.186041-1-yang.yang29@zte.com.cn
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Xiaokai Ran <ran.xiaokai@zte.com.cn>
Cc: Yang Yang <yang.yang29@zte.com.cn>
Cc: Jiang Xuexin <jiang.xuexin@zte.com.cn>
Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/dhry_run.c')
0 files changed, 0 insertions, 0 deletions