From: SJ Park <sj@kernel.org>
To: Anton Gavriliuk <antosha20xx@gmail.com>
Cc: SJ Park <sj@kernel.org>, damon@lists.linux.dev
Subject: Re: Memory tiering with DAMON/DAMOS auto-tuning
Date: Wed, 30 Sep 2026 10:43:13 -0700 [thread overview]
Message-ID: <20260930174314.60183-1-sj@kernel.org> (raw)
In-Reply-To: <CAAiJnjoaaPk3CcczDtk72xfkrgwp29KDT1==PZJJGgUcBVpdjA@mail.gmail.com>
On Wed, 30 Sep 2026 19:26:31 +0300 Anton Gavriliuk <antosha20xx@gmail.com> wrote:
> I would go back to memory tiering VCF9.1-like behavior you helped me
> configure, for new few questions:
>
> 1. It works with the goal of 50% free memory for numa node 0, but
> when I tried to set 25% free memory, it didn't do anything...
>
> [root@localhost ~]# COLUMNS=500 numastat -p $(pgrep valkey-server) | cat
>
> Per-node process memory usage (in MBs) for PID 3808 (valkey-server)
> Node 0 Node 1 Node 2
> Node 3 Total
> --------------- --------------- ---------------
> --------------- ---------------
> Huge 0.00 0.00 0.00
> 0.00 0.00
> Heap 0.11 0.00 0.00
> 0.00 0.11
> Stack 0.03 0.00 0.00
> 0.00 0.03
> Private 238356.25 2.19 3.42
> 0.00 238361.86
> ---------------- --------------- --------------- ---------------
> --------------- ---------------
> Total 238356.39 2.19 3.42
> 0.00 238362.00
> [root@localhost ~]#
So, your workload is using ~232 GiB of node 0 memory and no demotion of it is
occurred. According to your original mail [1], the node 0 has ~377 GiB memory.
If we make 25% of it free, it means it should have 75% of it (~282 GiB) be
utilized. If the node0 has only your workload, it means node 0 memory
utilization is still only ~61%. In other words, 25% free memory goal is
already achieved. Than DAMON wouldn't do any demotion.
Does the theory makes sense? Maybe you can confirm by checking the free memory
ratio of node 0.
[...]
> 2. If there are no un-accessed pages to demote for achieving a defined
> goal, damon will demote pages with the most rare access ?
No. Because you set '--access_rate 0% 0%' for the demotion scheme, it will do
no demotion in the scenario. You could try '--access_rate 0% max' if you want.
You may also need to remove '--damos_filter reject young' option from the
command if that is really what you want to do.
[1] https://lore.kernel.org/CAAiJnjp5F8ZuPG1gEsD_Wgs7Z+GToz67nzjr0490sz9y328=dg@mail.gmail.com
Thanks,
SJ
[...]
next prev parent reply other threads:[~2026-09-30 17:43 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-27 17:26 Memory tiering with DAMON/DAMOS auto-tuning Anton Gavriliuk
2026-09-28 8:15 ` SJ Park
2026-09-28 17:02 ` Anton Gavriliuk
2026-09-29 7:49 ` SJ Park
2026-09-29 8:41 ` Anton Gavriliuk
2026-09-29 9:25 ` SJ Park
2026-09-29 13:54 ` Anton Gavriliuk
2026-09-29 17:37 ` SJ Park
2026-09-30 4:03 ` Anton Gavriliuk
2026-09-30 8:35 ` SJ Park
2026-09-30 16:26 ` Anton Gavriliuk
2026-09-30 17:43 ` SJ Park [this message]
2026-10-01 9:58 ` Anton Gavriliuk
2026-10-01 10:26 ` SJ Park
2026-10-01 12:08 ` Anton Gavriliuk
2026-10-01 13:27 ` SJ Park
2026-10-01 16:54 ` Anton Gavriliuk
2026-10-02 8:34 ` SJ Park
2026-10-02 10:02 ` Anton Gavriliuk
2026-10-02 11:02 ` SJ Park
2026-10-02 13:06 ` Anton Gavriliuk
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=20260930174314.60183-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=antosha20xx@gmail.com \
--cc=damon@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.