DAMON for Write-only or Given CPUs-only Monitoring

From the very early days of DAMON, there were attempts to extend it for cpus-aware monitoring and write-only monitoring. In 2022, Xin Hao proposed extending DAMON for NUMA access statistics. In 2022 and 2025, Pedro Demarchi Gomes proposed extending DAMON for writes-only monitoring. Those proposals are not yet upstreamed though. We continued similar DAMON extension discussions publicly and privately, with multiple parties, though. I was recently taking some time on these, and happy to announce the first working prototype for the extensions....

August 3, 2025 · 3 min · 495 words · Me

A guide to DAMON tuning and results interpretation for hot pages

The initial version of this post was initially posted to DAMON mailing list as https://lore.kernel.org/20241108232536.73843-1-sj@kernel.org Posting it here too, for visibility and after-posting updates for any needs. One of common issues that I received from DAMON users is that DAMON’s monitoring results show hot regions much less than expected. Specifically, the users find regions of only zero or low ’nr_accesses’ value from the DAMON-generated access pattern snapshots. In some cases, it turned out the problem can be alleviated by tuning DAMON parameters or changing the way to interpret the results....

November 8, 2024 · 19 min · 3952 words · Me

Creating DAMON logo using DAMON

I just made a DAMON logo using DAMON, like below. $ git clone https://github.com/sjp38/masim && cd masim $ cat damon_pixel_2 11111111 11 11 111111 11111111 11 11 11111111 11111111 1111 11111111 11111111 11 11 11111111 11111111 1111 11111111 $ ./pixels_to_access_config.py ./damon_pixel_2 $((100*1024*1024)) 300 damon.cfg $ sudo damo record "./masim ./configs/stairs.cfg" $ sudo damo report heatmap --output damon.png The output is below: The cropped one:

July 13, 2024 · 1 min · 64 words · Me

DAMON News List

Below is a list of news around DAMON project. This list is not exhaustive but just a DAMON maintainer’s collection of news. If you find a news that should be added to this list, please let us know at sj@kernel.org and/or damon@lists.linux.dev. 2025 2025-07-08: Bijan’s DAMON patch series for dynamic NUMA memory weighted interleaving that shows ~25% performance improvements on a test is now merged into mm-new. 2025-08-22: A patch series for making DAMON supports ARM (32bit) with LPAE has just landed on mm-new tree....

May 6, 2023 · 14 min · 2859 words · Me

DAMON-based System Optimization Guide

This document helps you estimating the amount of benefit that you could get from DAMON-based system optimizations, and describes how you could achieve it. Check The Signs No optimization can provide same extent of benefit to every case. Therefore you should first guess how much improvements you could get using DAMON. If some of below conditions match your situation, you could consider using DAMON. Low IPC and High Cache Miss Ratios....

January 15, 2023 · 7 min · 1323 words · Me

DAMON Evaluation

DAMON is lightweight. It increases system memory usage by 0.39% and slows target workloads down by 1.16%. DAMON is accurate and useful for memory management optimizations. An experimental DAMON-based operation scheme for THP, namely ’ethp’, removes 76.15% of THP memory overheads while preserving 51.25% of THP speedup. Another experimental DAMON-based ‘proactive reclamation’ implementation, namely ‘prcl’, reduces 93.38% of residential sets and 23.63% of system memory footprint while incurring only 1.22% runtime overhead in the best case (parsec3/freqmine)....

January 15, 2023 · 9 min · 1887 words · Me

Summary of DAMON Development in 2022

A summary of DAMON development in 2022 has posted: https://lore.kernel.org/damon/20221229171209.162356-1-sj@kernel.org/ 2022 was a year of active and healthy DAMON development. Seven new DAMON major features were delivered to users. Some of those were featured in articles and academic papers. It was possible thanks to the DAMON community. The community has expanded with its own mailing list and an open bi-weekly chat series. 40 people contributed their great code to DAMON via making their 275 commits merged into the mainline....

December 29, 2022 · 1 min · 139 words · Me