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 1/2] mm/ksm: calculate ksm_process_profit more accurately
Date: Tue, 17 Jun 2025 17:52:58 +0200 [thread overview]
Message-ID: <027c64d1-6736-4e1f-9995-f198b38175f1@redhat.com> (raw)
In-Reply-To: <20250604031758.4150209-2-xialonglong@kylinos.cn>
On 04.06.25 05:17, Longlong Xia wrote:
> The 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. This discrepancy leads to
> the sum of ksm_process_profit() across all processes not being equal
> to general_profit_show().
>
> Fixes: 7609385337a4 ("ksm: count ksm merging pages for each process")
> Signed-off-by: Longlong Xia <xialonglong@kylinos.cn>
> ---
What happened to the original idea of [1]
[1]
https://lkml.kernel.org/r/20250606070314.3028593-1-xialonglong@kylinos.cn
--
Cheers,
David / dhildenb
next prev parent reply other threads:[~2025-06-17 15:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-04 3:17 [PATCH 0/2] " 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 [this message]
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 ` [PATCH 0/2] mm/ksm: calculate ksm_process_profit more accurately David Hildenbrand
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=027c64d1-6736-4e1f-9995-f198b38175f1@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