From: David Hildenbrand <david@redhat.com>
To: Longlong Xia <xialonglong@kylinos.cn>,
akpm@linux-foundation.org, xu.xin16@zte.com.cn
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] mm/ksm: calculate ksm_process_profit more accurately
Date: Tue, 17 Jun 2025 17:48:52 +0200 [thread overview]
Message-ID: <6c329b3b-97ed-4e5a-9e71-e4b737b50bd3@redhat.com> (raw)
In-Reply-To: <20250604031758.4150209-1-xialonglong@kylinos.cn>
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
prev parent reply other threads:[~2025-06-17 15:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-04 3:17 Longlong Xia
2025-06-04 3:17 ` [PATCH 1/2] " Longlong Xia
2025-06-04 3:45 ` xu.xin16
2025-06-17 15:52 ` David Hildenbrand
2025-06-04 3:17 ` [PATCH 2/2] mm/ksm: Rename ksm_merging_pages to ksm_process_sharing Longlong Xia
2025-06-17 15:51 ` David Hildenbrand
2025-06-17 15:48 ` David Hildenbrand [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6c329b3b-97ed-4e5a-9e71-e4b737b50bd3@redhat.com \
--to=david@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=xialonglong@kylinos.cn \
--cc=xu.xin16@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox