mm/damon/core: improve DAMOS quota efficiency for core layer filters
Status from this message: [merged mm-stable] mm-damon-core-do-non-safe-region-walk-on-kdamond_apply_schemes.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first
Changes from RFC v1 from the cover letter
(https://lore.kernel.org/[email protected])
- Rebase to latest mm-new
- Wordsmith the second patch description
[1] "Prioritization" section of Documentation/mm/damon/design.rst
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm/damon/core: set quota-score histogram with core filtersmm/ | +2 | 0 replies | Applied |
| 2/2 | mm/damon/core: do non-safe region walk on kdamond_apply_schemes()mm/ | +11 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] mm/damon/core: improve DAMOS quota efficiency for core layer filters
Improve two below problematic behaviors of DAMOS that makes it less efficient when core layer filters are used.
DAMOS generates the under-quota regions prioritization-purpose access temperature histogram [1] with only the scheme target access pattern. The DAMOS filters are ignored on the histogram, and this can result in the scheme not applied to eligible regions. For working around this, users had to use separate DAMON contexts. The memory tiering approaches are such examples.
DAMOS splits regions that intersect with address filters, so that only filtered-out part of the region is skipped. But, the implementation is skipping the other part of the region that is not filtered out, too. As a result, DAMOS can work slower than expected.
Improve the two inefficient behaviors with two patches, respectively. Read the patches for more details about the problem and how those are fixed.
Changes from RFC v1
(https://lore.kernel.org/[email protected])
- Rebase to latest mm-new
- Wordsmith the second patch description
[1] "Prioritization" section of Documentation/mm/damon/design.rst
SeongJae Park (2):
mm/damon/core: set quota-score histogram with core filters mm/damon/core: do non-safe region walk on kdamond_apply_schemes()
mm/damon/core.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)
base-commit: e264beaf78369f82d09a8845207ec2479f0e61a7
Signature · 1 line
2.47.3