[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250604031758.4150209-1-xialonglong@kylinos.cn>
Date: Wed, 4 Jun 2025 11:17:53 +0800
From: Longlong Xia <xialonglong@...inos.cn>
To: akpm@...ux-foundation.org,
xu.xin16@....com.cn
Cc: linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
Longlong Xia <xialonglong@...inos.cn>
Subject: [PATCH 0/2] mm/ksm: calculate ksm_process_profit more accurately
During the KSM testing, it was observed that the sum of KSM profits
for each process does not equal the general_profit.
The reason is general_profit_show() only considers ksm_pages_sharing,
whereas ksm_process_profit() accounts for both ksm_pages_sharing
and ksm_pages_shared for each process. By concentrating solely on
ksm_pages_sharing, we can achieve a more accurate representation
of actual profits.
Thanks for review and comments!
Longlong Xia (2):
mm/ksm: calculate ksm_process_profit more accurately
mm/ksm: Rename ksm_merging_pages to ksm_process_sharing
Documentation/admin-guide/mm/ksm.rst | 6 ++---
Documentation/filesystems/proc.rst | 6 ++---
.../translations/zh_CN/admin-guide/mm/ksm.rst | 8 +++----
.../translations/zh_TW/admin-guide/mm/ksm.rst | 8 +++----
fs/proc/base.c | 10 ++++-----
include/linux/mm_types.h | 2 +-
mm/ksm.c | 22 ++++++++-----------
.../selftests/mm/ksm_functional_tests.c | 10 ++++-----
8 files changed, 34 insertions(+), 38 deletions(-)
--
2.43.0
Powered by blists - more mailing lists