On 04.06.25 05:17, Longlong Xia wrote:
./scripts/get_maintainer.pl is helpful to identify all people worth
CCing (such as, all maintainers).
> 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(-)
>
--
Cheers,
David / dhildenb