On Thu, 31 Jul 2025 15:00:22 -0700 Suren Baghdasaryan wrote:
> Extend /proc/pid/maps tearing tests to verify PROCMAP_QUERY ioctl operation
> correctness while the vma is being concurrently modified.
>
> Signed-off-by: Suren Baghdasaryan
Acked-by: SeongJae Park
Tested-by: S
robot
Closes: https://lore.kernel.org/oe-lkp/202507220707.9c5d6247-...@intel.com
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 5 +
1 file changed, 5 insertions(+)
diff --git a/tools/testing/selftests/damon/sysfs.py
b/tools/testing/selftests/damon/sysfs.py
index 4ff99db0d247.
On Mon, 21 Jul 2025 20:09:22 -0700 Andrew Morton
wrote:
> On Sun, 20 Jul 2025 10:16:46 -0700 SeongJae Park wrote:
>
> > DAMOS scheme commitment assertion is hard-coded for a specific test
> > case. Split it out into a general version that can be reused for
> &
DAMON context commitment assertion is hard-coded for a specific test
case. Split it out into a general version that can be reused for
different test cases.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 28 +++---
1 file changed, 16 insertions
DAMON monitoring attributes commitment assertion is hard-coded for a
specific test case. Split it out into a general version that can be
reused for different test cases.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 42 +++---
1 file changed, 25
sysfs.py is testing if non-default additional parameters can be
committed. Add a test case for further reducing the parameters to the
default set.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 14 ++
1 file changed, 14 insertions(+)
diff --git a/tools
sysfs.py is testing only the default and minimum DAMON parameters. Add
another test case for more non-default additional DAMON parameters
commitment on runtime.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 53 ++
1 file changed, 53
DAMOS schemes commitment assertion is hard-coded for a specific test
case. Split it out into a general version that can be reused for
different test cases.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 10 ++
1 file changed, 6 insertions(+), 4 deletions
Current DAMOS scheme commitment assertion is not testing DAMOS filters.
Add the test.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 20
1 file changed, 20 insertions(+)
diff --git a/tools/testing/selftests/damon/sysfs.py
b/tools/testing
DAMOS scheme commitment assertion is hard-coded for a specific test
case. Split it out into a general version that can be reused for
different test cases.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 59 --
1 file changed, 37 insertions
Current DAMOS quota commitment assertion is not testing quota goal
commitment. Add the test.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 18 +-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/damon/sysfs.py
b
Current DAMOS commitment assertion is not testing quota destinations
commitment. Add the test.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/tools/testing/selftests/damon/sysfs.py
b
DamosQuota commitment assertion is hard-coded for a specific test case.
Split it out into a general version that can be reused for different
test cases.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 31 +-
1 file changed, 20 insertions(+), 11
DamosWatermarks commitment assertion is hard-coded for a specific test
case. Split it out into a general version that can be reused for
different test cases.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 26 ++
1 file changed, 18 insertions
increasing test coverage difficult. Add ctx->ops.id dumping for
more tests.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/drgn_dump_damon_status.py | 6 ++
1 file changed, 6 insertions(+)
diff --git a/tools/testing/selftests/damon/drgn_dump_damon_status.py
b/tools/test
increasing test coverage difficult. Add damos->migrate_dests
dumping for more tests.
Signed-off-by: SeongJae Park
---
.../selftests/damon/drgn_dump_damon_status.py | 14 ++
1 file changed, 14 insertions(+)
diff --git a/tools/testing/selftests/damon/drgn_dump_damon_status.py
b/to
increasing test coverage difficult. Add damos filters dumping for
more tests.
Signed-off-by: SeongJae Park
---
.../selftests/damon/drgn_dump_damon_status.py | 43 ++-
1 file changed, 42 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/damon/drgn_dump_damon_status.py
nr_accesses and age are unsigned int. Use the proper max value.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_damon_sysfs.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/damon/_damon_sysfs.py
b/tools/testing/selftests/damon
_damon_sysfs.py contains code for test-purpose DAMON sysfs interface
control. Add support of DAMOS action destination target_nid setup for
more tests.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_damon_sysfs.py | 9 -
1 file changed, 8 insertions(+), 1 deletion
_damon_sysfs.py contains code for test-purpose DAMON sysfs interface
control. Add support of DAMOS action destinations setup for more tests.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_damon_sysfs.py | 56 ++-
1 file changed, 55 insertions(+), 1 deletion
_damon_sysfs.py contains code for test-purpose DAMON sysfs interface
control. Add support of DAMOS quota goal nid setup for more tests.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_damon_sysfs.py | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a
_damon_sysfs.py contains code for test-purpose DAMON sysfs interface
control. Add support of DAMOS quotas prioritization weights setup for
more tests.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_damon_sysfs.py | 24 ++-
1 file changed, 23 insertions(+), 1
_damon_sysfs.py contains code for test-purpose DAMON sysfs interface
control. Add support of the monitoring intervals auto-tune goal setup
for more tests.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_damon_sysfs.py | 43 ++-
1 file changed, 42 insertions
_damon_sysfs.py contains code for test-purpose DAMON sysfs interface
control. Add support of DAMOS filters setup for more tests.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_damon_sysfs.py | 115 +-
1 file changed, 111 insertions(+), 4 deletions(-)
diff
_damon_sysfs.py contains code for test-purpose DAMON sysfs interface
control. Add support of DAMOS watermarks setup for more tests.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_damon_sysfs.py | 46 +--
1 file changed, 42 insertions(+), 4 deletions(-)
diff
) extend drgn_dump_damon_status.py to dump full DAMON parameters.
Following nine patches (12-20) refactor sysfs.py for general testing
code reuse, and extend it for full parameters check. Finally, two
patches (21 and 22) add test cases in sysfs.py for full parameters
testing.
SeongJae Park (22
; Suggested-by: David Hildenbrand
I left a few trivial comments below, but overall this looks useful to me.
Thank you :)
Acked-by: SeongJae Park
FYI, 'git am' of this patch on latest mm-new fails. Maybe this is not based on
the latest mm-new? But, I also found Andrew added this to m
Add DAMON sysfs interface functionality tests for basic DAMOS schemes
parameters setup.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 46 --
1 file changed, 43 insertions(+), 3 deletions(-)
diff --git a/tools/testing/selftests/damon/sysfs.py
s expected. The test is very minimum at the moment.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/Makefile | 1 +
tools/testing/selftests/damon/sysfs.py | 42 ++
2 files changed, 43 insertions(+)
create mode 100755 tools/testing/selftests/damon/sysfs.py
Add DAMON sysfs interface functionality tests for setup of basic
adaptive targets parameters.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tools/testing/selftests/damon/sysfs.py
b/tools
Add DAMON sysfs interface functionality tests for DAMON monitoring
attribute parameters, including intervals, intervals tuning goals, and
min/max number of regions.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 34 --
1 file changed, 32
_damon_sysfs.py is a Python module for reading and writing DAMON sysfs
for testing. It is not reading resulting kdamond pids. Read and update
those when starting kdamonds.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_damon_sysfs.py | 3 +++
1 file changed, 3 insertions
an
alternative tool in future.
Note that the script is tested with 'drgn v0.0.22'.
Signed-off-by: SeongJae Park
---
.../selftests/damon/drgn_dump_damon_status.py | 161 ++
1 file changed, 161 insertions(+)
create mode 100755 tools/testing/selftests/damon/drgn_dump_damo
all DAMON parameters and input combinations but very
basic things. Advancing the test infrastructure and adding more tests
are future works.
Changes from RFC
(https://lore.kernel.org/20250622210330.40490-1...@kernel.org)
- Rebase on latest mm-new
SeongJae Park (6):
selftests/damon: add drgn s
Add DAMON sysfs interface functionality tests for basic DAMOS schemes
parameters setup.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 46 --
1 file changed, 43 insertions(+), 3 deletions(-)
diff --git a/tools/testing/selftests/damon/sysfs.py
_damon_sysfs.py is a Python module for reading and writing DAMON sysfs
for testing. It is not reading resulting kdamond pids. Read and update
those when starting kdamonds.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_damon_sysfs.py | 3 +++
1 file changed, 3 insertions
s expected. The test is very minimum at the moment.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/Makefile | 1 +
tools/testing/selftests/damon/sysfs.py | 42 ++
2 files changed, 43 insertions(+)
create mode 100755 tools/testing/selftests/damon/sysfs.py
all DAMON parameters and input combinations but very
basic things. Advancing the test infrastructure and adding more tests
are future works.
SeongJae Park (6):
selftests/damon: add drgn script for extracting damon status
selftests/damon/_damon_sysfs: set Kdamond.pid in start()
selftests/damon:
Add DAMON sysfs interface functionality tests for setup of basic
adaptive targets parameters.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tools/testing/selftests/damon/sysfs.py
b/tools
Add DAMON sysfs interface functionality tests for DAMON monitoring
attribute parameters, including intervals, intervals tuning goals, and
min/max number of regions.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/sysfs.py | 34 --
1 file changed, 32
an
alternative tool in future.
Note that the script is tested with 'drgn v0.0.22'.
Signed-off-by: SeongJae Park
---
.../selftests/damon/drgn_dump_damon_status.py | 161 ++
1 file changed, 161 insertions(+)
create mode 100755 tools/testing/selftests/damon/drgn_dump_damo
There was a memory leak bug in DAMOS sysfs memcg_path file. Add a
selftest to ensure the bug never comes back.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/Makefile| 1 +
.../selftests/damon/sysfs_memcg_path_leak.sh | 43 +++
2 files changed, 44
Users can leak memory by repeatedly writing a string to DAMOS sysfs
memcg_path file. Fix it (patch 1) and add a selftest (patch 2) to avoid
reoccurrance of the bug.
SeongJae Park (2):
mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path
on write
selftets/damon: ad
DAMOS filters' default reject behavior is not very simple. Actually
there was a mistake[1] during the development. Add a kunit test for
validating the behavior.
[1] https://lore.kernel.org/20250227002913.19359-1...@kernel.org
Signed-off-by: SeongJae Park
---
mm/damon/tests/core-kunit.h
Kdamond.update_schemes_tried_regions() reads and stores tried regions
information out of address order. It makes debugging a test failure
difficult. Change the behavior to do the reading and writing in the
address order.
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon
. Expect how much time the quota will be
exceeded by checking the monitoring results, and use it instead of the
naive assumption.
Fixes: 51f58c9da14b ("selftests/damon: add a test for DAMOS quota")
Cc:
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/damos_qu
test online-tuned
max_nr_regions")
Cc:
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/damon_nr_regions.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/damon/damon_nr_regions.py
b/tools/testing/selftests/damon/damon_nr_regions.py
index 2e
list before doing the check.
Fixes: 781497347d1b ("selftests/damon: implement test for min/max_nr_regions")
Cc:
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/damon_nr_regions.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/damon/damon_nr_reg
Fix three DAMON selftest bugs that causes two and one false positive
failures and success.
SeongJae Park (3):
selftests/damon/damos_quota: make real expectation of quota exceeds
selftests/damon/damon_nr_regions: set ops update for merge results
check to 100ms
selftests/damon
DAMOS quota goal")
Cc: # 6.10.x
Reported-by: kernel test robot
Closes: https://lore.kernel.org/oe-lkp/202502171423.b28a918d-...@intel.com
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/damos_quota_goal.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing
seen on next-20250210
> > Good: next-20250207
> > Bad: next-20250210
>
> Cc SeongJae Park
[...]
> This is mmap_write_unlock() triggering
> rwsem_assert_held_write(&mm->mmap_lock);
>
> That code was changed in these commits:
>
> 415553982a1e
> mm-madvi
It's time to remove DAMON debugfs interface, which has deprecated long
before in February 2023. Read the cover letter of this patch series for
more details.
Remove kunit tests for the interface, to prevent unnecessary test
failures.
Signed-off-by: SeongJae Park
---
mm/damon/Kc
oises
from tests.
Signed-off-by: SeongJae Park
---
tools/testing/kunit/configs/all_tests.config | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/testing/kunit/configs/all_tests.config
b/tools/testing/kunit/configs/all_tests.config
index b3b00269a52a..b0049be00c70 100644
--- a/tools/te
It's time to remove DAMON debugfs interface, which has deprecated long
before in February 2023. Read the cover letter of this patch series for
more details.
Remove selftests for the interface, to prevent causing unnecessary test
failures.
Signed-off-by: SeongJae Park
---
tools/te
https://lore.kernel.org/20230209192009.7885-1...@kernel.org
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/config | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/testing/selftests/damon/config
b/tools/testing/selftests/damon/config
index 0daf38974eb0..a68a9fead5dc 100644
--- a/
It's time to remove DAMON debugfs interface, which has deprecated long
before in February 2023. Read the cover letter of this patch series for
more details.
Remove kunit tests for the interface, to prevent unnecessary test
failures.
Signed-off-by: SeongJae Park
---
mm/damon/Kc
It's time to remove DAMON debugfs interface, which has deprecated long
before in February 2023. Read the cover letter of this patch series for
more details.
Remove selftests for the interface, to prevent causing unnecessary test
failures.
Signed-off-by: SeongJae Park
---
tools/te
oises
from tests.
Signed-off-by: SeongJae Park
---
tools/testing/kunit/configs/all_tests.config | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/testing/kunit/configs/all_tests.config
b/tools/testing/kunit/configs/all_tests.config
index b3b00269a52a..b0049be00c70 100644
--- a/tools/te
https://lore.kernel.org/20230209192009.7885-1...@kernel.org
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/config | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/testing/selftests/damon/config
b/tools/testing/selftests/damon/config
index 0daf38974eb0..a68a9fead5dc 100644
--- a/
06abb63a8ca ("selftests/damon: implement a python module for
> test-purpose DAMON sysfs controls")
> Signed-off-by: Maximilian Heyne
Reviewed-by: SeongJae Park
Thanks,
SJ
> ---
> tools/testing/selftests/damon/Makefile | 2 +-
> 1 file changed, 1 insertion(+),
Closing part of double inclusion guarding macro for dbgfs-kunit.h was
copy-pasted from somewhere (maybe before the initial mainline merge of
DAMON), and not properly updated. Fix it.
Fixes: 17ccae8bb5c9 ("mm/damon: add kunit tests")
Signed-off-by: SeongJae Park
---
mm/damon/tests/dbg
ot;mm/damon: add user space selftests")
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/_debugfs_common.sh | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/damon/_debugfs_common.sh
b/tools/testing/selftests/damon/_debugfs_commo
ation")
Signed-off-by: SeongJae Park
---
.../selftests/damon/debugfs_duplicate_context_creation.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/tools/testing/selftests/damon/debugfs_duplicate_context_creation.sh
b/tools/testing/selft
(patches 3 and 4).
Following two patches fix copy-paste mistakes in DAMON Kconfig help
message that copied from debugfs kunit test (patch 5) and a comment on
the debugfs kunit test code (patch 6).
Signed-off-by: SeongJae Park
Andrew Paniakin (1):
selftests/damon/huge_count_read_write: provide
The program prints expected errors from write/read of the files with
invalid huge count, for only debugging purpose. It is only making the
output noisy. Remove those.
Fixes: b4a002889d24 ("selftests/damon: test debugfs file reads/writes with huge
count")
Signed-off-by: Seo
characters.
Fixes: b4a002889d24 ("selftests/damon: test debugfs file reads/writes with huge
count")
Signed-off-by: Andrew Paniakin
Signed-off-by: SeongJae Park
---
Note that this fix has originally wrote[1] by Andrew for the downstream
version of the same test. Because the downstream
ces == 1, no actual split is required. Check that case
> for better code readability and add a simple kunit testcase.
>
> [1] https://lore.kernel.org/all/20241021163316.12443-1...@kernel.org/
>
> Signed-off-by: Zheng Yejian
Reviewed-by: SeongJae Park
Thanks,
SJ
[...]
y_three_regions4
> [PASSED] damon_test_split_evenly
> [PASSED] damon-operations =
>
> Fixes: 3f49584b262c ("mm/damon: implement primitives for the virtual memory
> address spaces")
> Signed-off-by: Zheng Yejian
Reviewed-by: SeongJae Park
Thanks,
SJ
[...]
It's time to remove DAMON debugfs interface, which has deprecated long
before in February 2023. Read the cover letter of this patch series for
more details.
Remove kunit tests for the interface, to prevent unnecessary test
failures.
Signed-off-by: SeongJae Park
---
mm/damon/Kc
oises
from tests.
Signed-off-by: SeongJae Park
---
tools/testing/kunit/configs/all_tests.config | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/testing/kunit/configs/all_tests.config
b/tools/testing/kunit/configs/all_tests.config
index b3b00269a52a..b0049be00c70 100644
--- a/tools/te
It's time to remove DAMON debugfs interface, which has deprecated long
before in February 2023. Read the cover letter of this patch series for
more details.
Remove selftests for the interface, to prevent causing unnecessary test
failures.
Signed-off-by: SeongJae Park
---
tools/te
https://lore.kernel.org/20230209192009.7885-1...@kernel.org
Signed-off-by: SeongJae Park
---
tools/testing/selftests/damon/config | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/testing/selftests/damon/config
b/tools/testing/selftests/damon/config
index 0daf38974eb0..a68a9fead5dc 100644
--- a/
From: s...@kernel.org
On Mon, 23 Sep 2024 21:08:45 -0700 SeongJae Park wrote:
> Hi Ba,
>
>
> Thank you for revising this patch following my comment.
>
> On Tue, 24 Sep 2024 10:14:26 +0800 Ba Jing
> wrote:
>
> > By reading the code, I found these variables are ne
Hi David,
On Tue, 24 Sep 2024 13:54:57 -0400 David Hunter
wrote:
> Turn on the executable bit for the following script files. These scripts
> are set to TEST_PROGS in their respective Makefiles, but currently, when
> these tests are run, a warning occurs:
>
> # Warning: is not executable
T
Hi Ba,
Thank you for revising this patch following my comment.
On Tue, 24 Sep 2024 10:14:26 +0800 Ba Jing wrote:
> By reading the code, I found these variables are never
> referenced in the code. Just remove them.
>
> Signed-off-by: Ba Jing
Reviewed-by: SeongJae Park
g
Other than the above trivial nitpick,
Reviewed-by: SeongJae Park
Thanks,
SJ
> ---
> tools/testing/selftests/damon/access_memory_even.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/tools/testing/selftests/damon/access_memory_even.c
> b/tools/testing/se
Roeck
Closes:
https://lore.kernel.org/c771b962-a58f-435b-89e4-1211a9323...@roeck-us.net
Fixes: 5e06ad590096 ("mm/damon/core-test: test max_nr_accesses overflow caused
divide-by-zero")
Signed-off-by: SeongJae Park
---
mm/damon/core.c | 8 +++-
mm/damon/tests/co
On Wed, 4 Sep 2024 12:56:33 -0700 Guenter Roeck wrote:
> On 9/4/24 12:26, Liam R. Howlett wrote:
> > * Guenter Roeck [240904 00:27]:
> >> On 9/3/24 20:36, Liam R. Howlett wrote:
> >>> * Guenter Roeck [240903 22:38]:
> >>>> On 9/3/24 19:31, L
On Wed, 4 Sep 2024 11:41:28 -0700 Guenter Roeck wrote:
> On 9/4/24 10:29, SeongJae Park wrote:
> > damon_test_three_regions_in_vmas() initializes a maple tree with
> > MM_MT_FLAGS. The flags contains MT_FLAGS_LOCK_EXTERN, which means
> > mt_lock of the maple tree w
On Tue, 3 Sep 2024 22:43:40 -0400 "Liam R. Howlett"
wrote:
> * Guenter Roeck [240903 21:54]:
> > On 9/3/24 18:18, SeongJae Park wrote:
> > > On Tue, 3 Sep 2024 17:58:15 -0700 SeongJae Park wrote:
> > >
> > > > On Tue, 3 Sep 2024
47f0d ("damon: convert __damon_va_three_regions to use the VMA
iterator")
Suggested-by: Liam R. Howlett
Signed-off-by: SeongJae Park
---
Changes from v1
(https://lore.kernel.org/20240904004534.1189-1...@kernel.org)
- Keep lock usage and update the initialization flags (Liam)
- Fix a typo
On Tue, 3 Sep 2024 17:58:15 -0700 SeongJae Park wrote:
> On Tue, 3 Sep 2024 20:48:53 -0400 "Liam R. Howlett"
> wrote:
>
> > * SeongJae Park [240903 20:45]:
> > > damon_test_three_regions_in_vmas() initializes a maple tree with
> > > MM_MT_FLAG
On Tue, 3 Sep 2024 20:48:53 -0400 "Liam R. Howlett"
wrote:
> * SeongJae Park [240903 20:45]:
> > damon_test_three_regions_in_vmas() initializes a maple tree with
> > MM_MT_FLAGS. The flags contains MT_FLAGS_LOCK_EXTERN, which means
> > mt_lock of the ma
:
https://lore.kernel.org/1453b2b2-6119-4082-ad9e-f3c5239bf...@roeck-us.net
Fixes: d0cf3dd47f0d ("damon: convert __damon_va_three_regions to use the VMA
iterator")
Signed-off-by: SeongJae Park
---
mm/damon/tests/vaddr-kunit.h | 10 +++---
1 file changed, 3 insertions(+), 7 deletion
>
> Each test result is based on the exeuction environment as follows.
Seems the typo is not fixed?
I don't want to delay this work for such trivial thing, though. For the patch
series,
Acked-by: SeongJae Park
Thanks,
SJ
[...]
> Signed-off-by: Honggyu Kim
Reviewed-by: SeongJae Park
Thanks,
SJ
[...]
Hi Ilya,
On Thu, 13 Jun 2024 17:34:14 +0200 Ilya Leoshkevich wrote:
> Avoid false KMSAN negatives with SLUB_DEBUG by allowing
> kmsan_slab_free() to poison the freed memory, and by preventing
> init_object() from unpoisoning new allocations by using __memset().
>
> There are two alternatives to
Hi Honggyu,
On Thu, 13 Jun 2024 22:20:47 +0900 Honggyu Kim wrote:
> There was an RFC IDEA "DAMOS-based Tiered-Memory Management" previously
> posted at [1].
>
> It says there is no implementation of the demote/promote DAMOS action
> are made. This patch series is about its implementation for p
On Thu, 13 Jun 2024 07:07:29 -0700 SeongJae Park wrote:
> Hi Honggyu,
>
> On Thu, 13 Jun 2024 22:20:55 +0900 Honggyu Kim wrote:
>
> > This patch adds damon description for "migrate_hot" and "migrate_cold"
> > actions for both usage and design docu
On Thu, 13 Jun 2024 22:20:49 +0900 Honggyu Kim wrote:
> The alloc_demote_folio can also be used for general migration including
> both demotion and promotion so it'd be better to rename it from
> alloc_demote_folio to alloc_migrate_folio.
>
> Signed-off-by: Honggyu Kim
R
Hi Honggyu,
On Thu, 13 Jun 2024 22:20:55 +0900 Honggyu Kim wrote:
> This patch adds damon description for "migrate_hot" and "migrate_cold"
> actions for both usage and design documents as long as a new
> "target_nid" knob to set the migration target node.
>
> Signed-off-by: Honggyu Kim
> ---
>
Hi Honggyu,
On Thu, 13 Jun 2024 22:20:54 +0900 Honggyu Kim wrote:
> "lru_prio" and "lru_deprio" are missing in the damos action list so they
> have to be added properly at damon usage document.
>
> Signed-off-by: Honggyu Kim
> ---
> Documentation/admin-guide/mm/damon/usage.rst | 4 +++-
> 1 f
On Thu, 13 Jun 2024 22:27:26 +0900 Honggyu Kim wrote:
> On Thu, 13 Jun 2024 22:17:31 +0900 Honggyu Kim wrote:
> > There was an RFC IDEA "DAMOS-based Tiered-Memory Management" previously
> > posted at [1].
> >
> > It says there is no implementation of the demote/promote DAMOS action
> > are made.
malloc
No problem at all. We all work on our own schedule and nobody can chase/push
anybody :)
>
> On Sun, 12 May 2024 10:54:42 -0700 SeongJae Park wrote:
> > There was an RFC IDEA "DAMOS-based Tiered-Memory Management" previously
> > posted at [1].
> >
s and put it into the balloon. As a result, the host can use
the requested amount of guest memory, so from the host's perspective,
the ballooning just works, but in transparent and
access/contiguity-aware way.
Signed-off-by: SeongJae Park
---
drivers/virtio/virtio_ball
ging.
We could use ACMA-like approach for dynamically allocating a memory pool
for contiguous memory allocation. It will be similar to ACMA but do not
report DAMOS-alloc-ed pages to the host. Instead, use the regions as
contiguous memory allocation pool.
DRAM Consuming Power Saving
---
On Sat, 11 May 2024 13:16:17 -0700 SeongJae Park wrote:
> On Fri, 5 Apr 2024 12:19:07 -0700 SeongJae Park wrote:
>
> > On Fri, 5 Apr 2024 15:08:50 +0900 Honggyu Kim wrote:
> >
> > > This is a preparation patch that introduces migration modes.
> > >
>
From: Honggyu Kim
The current patch series introduces DAMON based migration across NUMA
nodes so it'd be better to have a new migrate_reason in trace events.
Signed-off-by: Honggyu Kim
Reviewed-by: SeongJae Park
Signed-off-by: SeongJae Park
---
include/linux/migrate_mode.h | 1 +
in
" memory policy from 17~18% to 4~5% when the system runs with
high memory pressure on its fast tier DRAM nodes.
Having these DAMOS_MIGRATE_HOT and DAMOS_MIGRATE_COLD actions can make
tiered memory systems run more efficiently under high memory pressures.
Signed-off-by: Honggyu Kim
Signed-off-b
On Fri, 5 Apr 2024 12:19:07 -0700 SeongJae Park wrote:
> On Fri, 5 Apr 2024 15:08:50 +0900 Honggyu Kim wrote:
>
> > This is a preparation patch that introduces migration modes.
> >
> > The damon_pa_pageout is renamed to damon_pa_migrate and it receives a
1 - 100 of 1077 matches
Mail list logo