Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: SJ Park <sj@kernel.org>
To: Aveline Noir <jm5905938@gmail.com>
Cc: SJ Park <sj@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	damon@lists.linux.dev, linux-mm@kvack.org
Subject: Re: [RFC PATCH v3 2/2] mm/damon/ops-common: use probe hits weighted sum in damon_hot_score()
Date: Wed,  2 Dec 2026 17:39:44 -0800	[thread overview]
Message-ID: <20261203013945.1143848-1-sj@kernel.org> (raw)
In-Reply-To: <179623279152.18.12629425945716322074.b4-reply@b4>

On Thu, 03 Dec 2026 04:33:11 +1100 Aveline Noir <jm5905938@gmail.com> wrote:

> Hi SJ,
> 
> On Tue, 01 Dec 2026 18:28:31 -0800 SJ Park wrote:
> 
> > +	return mult_frac(num, DAMON_MAX_SUBSCORE, denom);
> 
> The remainder times 100 in mult_frac() is still computed in 32 bits,
> so it can overflow.

You're right.  But it is hard to imagine if this will be a common and real
problem.  Do you have specific use case that this can be a real problem?


Thanks,
SJ

[...]


      reply	other threads:[~2026-12-03  1:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  2:28 [RFC PATCH v3 0/2] mm/damon: aware attr-only mode in DAMOS quota region selection SJ Park
2026-12-02  2:28 ` [RFC PATCH v3 1/2] mm/damon/core: expose damon_has_probe_weights() SJ Park
2026-12-02 14:22   ` Aveline Noir
2026-12-02  2:28 ` [RFC PATCH v3 2/2] mm/damon/ops-common: use probe hits weighted sum in damon_hot_score() SJ Park
2026-12-02 17:33   ` Aveline Noir
2026-12-03  1:39     ` SJ Park [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=20261203013945.1143848-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=damon@lists.linux.dev \
    --cc=jm5905938@gmail.com \
    --cc=linux-mm@kvack.org \
    /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