pub/scm/linux/kernel/git/sj/damo.git  about / heads / tags
DAMON user-space tool. Stands for Data Access Monitoring Operator
$ git log --pretty=format:'%h %s (%cs)%d'
6f487df Update the version (2025-06-30)
	(HEAD -> master, tag: v2.8.7)
3fc9445 tests/report/test: add vimdiff command for failed tests (2025-06-29)
e159a48 USAGE: document '--interactive_edit' or 'damo report heatmap' (2025-06-29)
93e91f3 USAGE: add subsection titles for heatmap (2025-06-29)
bf6cdf2 USAGE: use --guide_human instead of --guide (2025-06-29)
f78c23b damo_record_info: do not show None kdamond/context/scheme indices (2025-06-29)
c9e1b24 USAGE/damo report heatmap: explain --guide before --output raw (2025-06-29)
0c0def9 USAGE: update 'damo report heatmap' for snapshot heatmaps (2025-06-29)
8928d0a damo_report_heatmap: handle wrong input to itneractive edit prompt (2025-06-29)
9a106eb damo_report_heatmap: make interactive edit prompt more human-intuitive (2025-06-29)
...

$ git cat-file blob HEAD:README.md
DAMO: Data Access Monitoring Operator
=====================================

`damo` is a user space tool for [DAMON](https://damonitor.github.io).  Using
this, you can monitor the data access patterns of your system or workloads and
make data access-aware memory management optimizations.

![damo monitor demo for water_nsquared](images/damo_monitor_water_nsquared.gif)


Official Repositories
---------------------

Official git repos for `damo` are hosted on kernel.org and GitHub:

- kernel.org: https://git.kernel.org/pub/scm/linux/kernel/git/sj/damo.git
- GitHub: https://github.com/damonitor/damo

_Note_ that the repo under awslabs GitHub organization
(https://github.com/awslabs/damo)
[was](https://lore.kernel.org/20240813232158.83903-1-sj@kernel.org) one of the
official repos.  It is not an official repo since 2024-09-05.


Demo Video
==========

Please click the below thumbnail to show the short demo video.

[![DAMON: a demo for the Kernel Summit 2020](
http://img.youtube.com/vi/l63eqbVBZRY/0.jpg)](
http://www.youtube.com/watch?v=l63eqbVBZRY
"DAMON: a demo for the Kernel Summit 2020")


Getting Started
===============

[![Packaging status](https://repology.org/badge/vertical-allrepos/damo.svg)](https://repology.org/project/damo/versions)

Follow below instructions and commands to monitor and visualize the access
pattern of your workload.

    $ # ensure DAMON is enabled on your kernel
    $ # install damo using packaging systems listed above,
    $ # or cloning the source repo and updating $PATH.
    $ sudo damo start $(pidof <your workload>)
    $ sudo damo report access
    $ sudo damo record ongoing
    $ sudo damo report heatmap --draw_range hottest

The second and last commands will show the access pattern of your workload,
like below:

![masim_stairs_snapshot](images/masim_stairs_snapshot.png)
![masim stairs heatmap in ascii](images/masim_stairs_heatmap_ascii.png)


FAQs
====

What kernels are supported by `damo`?
-------------------------------------

`damo` aims to support any Linux kernel that enables DAMON, regardless of the
version and downstream changes.  Of course, `damo` will be unable to support
some of such kernels in some special cases.  That said, please reach out to the
development community for discussions.


How can I ensure DAMON is enabled on my kernel?
-----------------------------------------------

Please refer to 'Install'
[section](https://damonitor.github.io/#install) of the project webpage.


Where can I get more detailed usage?
------------------------------------

The below sections provide quick introductions for `damo`'s major features.
For more detailed usage, please refer to [USAGE.md](USAGE.md) file.


What does the version numbers mean?
-----------------------------------

Nothing at all but indicate which version is more fresh.  A higher version
number means it is more recently released.

This also means that there is no special versions for hotfixes.  Instead, all
bug fixes and new features are released together in fast speed (nearly once per
week) under the single version scheme.  We also strive a high level of
stability across all versions.  Users are therefore recommended to use latest
version always if possible, since it is the only way to get all bug fixes and
new features.  If there is any problem at upgrading the version, please report
an issue.


Will the features of `damo` be supported forever?
-------------------------------------------------

We try our best to make `damo` stable and doesn't introduce regressions to
users.  However, nothing goes forever.  Sometimes, some features will be
deprecated.  Some features will have longer support more than others.

In short, features that documented on [USAGE.md](USAGE.md) and not explicitly
marked as experimental, the feature will be better supported, and provides at
least three months of deprecation grace period.  Within the grace period, users
can ask extension of the support.

Detailed features deprecation process is documented at
[FEATURES_DEPRECATION_PROCESS.md](FEATURES_DEPRECATION_PROCESS.md).  Schedules
and status of deprecations are updated on
[FEATURES_DEPRECATION_SCHEDULE.md](FEATURES_DEPRECATION_SCHEDULE.md).


How can I participate in the development of `damo`?
---------------------------------------------------

Please refer to
[CONTRIBUTING](https://github.com/damonitor/damo/blob/next/CONTRIBUTING) file.


Quick Intro for Major Features
==============================

Below are quick introductions for `damo`'s major features.
For more detailed usage, please refer to [USAGE.md](USAGE.md) file.


Snapshot Data Access Pattern
----------------------------

Below commands repeatedly get a snapshot of the access pattern of a program for
every second.

    $ git clone https://github.com/sjp38/masim
    $ cd masim; make; ./masim ./configs/zigzag.cfg --silent &
    $ sudo damo start --target_pid $(pidof masim)
    $ sudo damo report access --repeat

The first two lines of the commands get an artificial memory access generator
program and run it in the background.  It will repeatedly access two 100
MiB-sized memory regions one by one.  You can substitute this with your real
workload.

The third line asks ``damo`` to start monitoring the access pattern of the
process.  Finally, the last line retries a snapshot of the monitoring results
every second and show on terminal.


Recording Data Access Patterns
------------------------------

Below commands record memory access patterns of a program and save the
monitoring results in `damon.data` file.

    $ git clone https://github.com/sjp38/masim
    $ cd masim; make; ./masim ./configs/zigzag.cfg --silent &
    $ sudo damo record -o damon.data $(pidof masim)

The first two lines of the commands get an artificial memory access generator
program and run it in the background.  It will repeatedly access two 100
MiB-sized memory regions one by one.  You can substitute this with your real
workload.  The last line asks ``damo`` to record the access pattern in
``damon.data`` file.


Visualizing Recorded Patterns
-----------------------------

Below three commands visualize the recorded access patterns into five
image files.

    $ damo report heatmap --output access_pattern_heatmap.png --draw_range all
    $ damo report wss --range 0 101 1 --plot wss_dist.png
    $ damo report wss --range 0 101 1 --sortby time --plot wss_chron_change.png

The first command will create three files, namely `access_pattern_heatmap.png`,
`access_patern_heatmap.1.png`, and `access_pattern_heatmap.2.png`.

- ``access_pattern_heatmap{,1,2}.png`` will show the data access pattern of
  three address ranges nearby stack, `mmap()`-ed region, and heat in heatmaps,
  which shows when (x-axis) what memory region (y-axis) is how frequently
  accessed (color).
- ``wss_dist.png`` will show the distribution of the working set size.
- ``wss_chron_change.png`` will show how the working set size has
  chronologically changed.

Those similarly made with other realistic workloads are available [1,2,3].

[1] https://damonitor.github.io/test/result/visual/latest/rec.heatmap.1.png.html<br>
[2] https://damonitor.github.io/test/result/visual/latest/rec.wss_sz.png.html<br>
[3] https://damonitor.github.io/test/result/visual/latest/rec.wss_time.png.html


Data Access Pattern Aware Memory Management
-------------------------------------------

Below command makes every memory region of size >=4K that hasn't accessed for
>=60 seconds in your workload to be swapped out.  By doing this, you can make
your workload more memory efficient with only modest performance overhead.

    $ sudo damo start --damos_access_rate 0 0 --damos_sz_region 4K max \
                        --damos_age 60s max --damos_action pageout \
                        <pid of your workload>

Holistic Memory Usage Monitoring
--------------------------------

You can also show access pattern heatmap, memory footprints, and hotspot
functions of the system and/or workloads all at once in live, like below.

![damo monitor demo for water_nsquared](images/damo_monitor_holistic.gif)

# heads (aka `branches'):
$ git for-each-ref --sort=-creatordate refs/heads \
	--format='%(HEAD) %(refname:short) %(subject) (%(creatordate:short))'
  next         TODO,release_note: update for damon_monitor_intervals_tune() support (2025-07-05)
* master       Update the version (2025-06-30)

# tags:
$ git for-each-ref --sort=-creatordate refs/tags \
	--format='%(refname:short) %(subject) (%(creatordate:short))'
v2.8.7       DAMO 2.8.7 (2025-06-30) tar.gz
v2.8.6       DAMO 2.8.6 (2025-06-23) tar.gz
v2.8.5       DAMO 2.8.5 (2025-06-16) tar.gz
v2.8.4       DAMO 2.8.4 (2025-06-09) tar.gz
v2.8.3       DAMO 2.8.3 (2025-06-02) tar.gz
v2.8.2       DAMO 2.8.2 (2025-05-26) tar.gz
v2.8.1       DAMO 2.8.1 (2025-05-19) tar.gz
v2.8.0       DAMO 2.8.0 (2025-05-12) tar.gz
v2.7.9       DAMO 2.7.9 (2025-05-05) tar.gz
v2.7.8       DAMO 2.7.8 (2025-04-29) tar.gz
...

# associated public inboxes:
# (number on the left is used for dev purposes)
         69 lkml
         31 linux-mm
         28 linux-doc
         17 qemu-devel
         17 u-boot
         14 linux-arm-kernel
         14 dpdk-dev
         13 linuxppc-dev
         11 netdev
         10 kvm
         10 git
          9 buildroot
          8 linux-devicetree
          8 linux-media
          8 xen-devel
          8 stable
          8 alsa-devel
          8 intel-gfx
          8 openembedded-devel
          7 linux-wireless
          7 bpf
          7 netfilter-devel
          7 linux-fsdevel
          7 linux-mips
          7 linux-scsi
          7 kvmarm
          7 linux-bluetooth
          7 dri-devel
          7 linux-omap
          7 yocto-meta-arago
          6 linux-mtd
          6 linux-nfs
          6 linux-mediatek
          6 linux-input
          6 linux-btrfs
          6 linux-kselftest
          6 linux-iio
          6 linux-gpio
          6 amd-gfx
          6 linux-spi
          6 linux-kbuild
          6 linux-arch
          6 openbmc
          6 linux-s390
          6 linux-staging
          6 openembedded-core
          6 yocto-meta-arm
          5 linux-block
          5 linux-riscv
          5 linux-crypto
          5 linux-acpi
          5 linux-iommu
          5 fstests
          5 linux-pm
          5 linux-rtc
          5 linux-usb
          5 linux-renesas-soc
          5 selinux
          5 linux-clk
          5 dmaengine
          5 linux-security-module
          5 linux-ide
          5 linux-watchdog
          5 linux-mmc
          5 cip-dev
          5 linux-i2c
          5 platform-driver-x86
          5 linux-fbdev
          5 linux-perf-users
          5 linux-sh
          5 rust-for-linux
          5 ltp
          5 intel-xe
          5 linux-um
          5 grub-devel
          5 linux-hexagon
          4 linux-nvme
          4 linux-xfs
          4 linux-edac
          4 linux-arm-msm
          4 linux-amlogic
          4 linux-hwmon
          4 linux-rdma
          4 linux-parisc
          4 linux-ext4
          4 linux-pci
          4 linux-modules
          4 linux-serial
          4 linux-m68k
          4 linux-csky
          4 linux-pwm
          4 virtualization
          4 linux-fpga
          4 ceph-devel
          4 linux-can
          4 linux-rockchip
          4 linux-raid
          4 dm-devel
          4 linux-cxl
          4 kernel-janitors
          4 sparclinux
          4 nvdimm
          4 bitbake-devel
          4 linux-patches
          4 yocto-meta-virtualization
          4 chrome-platform
          4 yocto-meta-ti
          4 openrisc
          4 intel-wired-lan
          4 loongarch
          4 imx
          4 b4-sent
          4 linux-trace-kernel
          4 qemu-riscv
          4 linux-sound
          4 igt-dev
          4 barebox
          3 linux-samsung-soc
          3 linux-efi
          3 linux-integrity
          3 linux-cifs
          3 linux-erofs
          3 linux-snps-arc
          3 driverdev-devel
          3 linux-leds
          3 linux-f2fs-devel
          3 linux-rt-users
          3 linux-trace-devel
          3 linux-hyperv
          3 workflows
          3 util-linux
          3 backports
          3 io-uring
          3 linux-man
          3 linux-api
          3 linux-remoteproc
          3 linux-sparse
          3 linux-tegra
          3 containers
          3 linux-hardening
          3 soc
          3 nouveau
          3 linux-sunxi
          3 linux-coco
          3 llvm
          3 fio
          3 iwd
          3 yocto
          3 yocto-meta-freescale
          3 outreachy
          3 xenomai
          3 kexec
          3 poky
          3 kdevops
          3 linux-alpha
          3 u-boot-amlogic
          3 dtrace
          3 yocto-patches
          2 cocci
          2 live-patching
          2 linux-nvdimm
          2 linux-sgx
          2 rcu
          2 linux-i3c
          2 wireguard
          2 linux-unionfs
          2 linux-firmware
          2 lttng-dev
          2 phone-devel
          2 dash
          2 keyrings
          2 lustre-devel
          2 linux-phy
          2 mptcp
          2 ofono
          2 yocto-toaster
          2 yocto-docs
          2 damon
          2 oe-kbuild-all
          2 virtio-comment
          2 v9fs
          2 cluster-devel
          2 cgroups
          2 devicetree-compiler
          2 kvm-ppc
          2 reiserfs-devel
          2 lvm-devel
          2 perfbook
          2 virtio-fs
          2 fuego
          2 linux-aspeed
          1 linux-fscrypt
          1 kernel-hardening
          1 linux-next
          1 kernelnewbies
          1 selinux-refpolicy
          1 linux-spdx
          1 linux-wpan
          1 ksummit-discuss
          1 linux-kernel-mentees
          1 tpmdd-devel
          1 linux-audit
          1 linux-dash
          1 linux-bcache
          1 mm-commits
          1 xdp-newbies
          1 linux-sctp
          1 target-devel
          1 ocfs2-devel
          1 ath10k
          1 ath11k
          1 regressions
          1 ksummit
          1 b43-dev
          1 linux-nfc
          1 linux-bcachefs
          1 ath9k-devel
          1 ntfs3
          1 linux-ppp
          1 ell
          1 ntb
          1 asahi
          1 ath12k
          1 oe-linux-nfc
          1 oe-chipsec
          1 batman
          1 fsverity
          1 virtio-dev
          1 ecryptfs
          1 linux-ia64
          1 kbd
          1 autofs
          1 cpufreq
          1 dccp
          1 devicetree-spec
          1 initramfs
          1 hail-devel
          1 kvm-ia64
          1 linux-8086
          1 kernel-testers
          1 linux-btrace
          1 linux-embedded
          1 linux-hams
          1 linux-hotplug
          1 linux-laptop
          1 trinity
          1 linux-metag
          1 linux-x25
          1 linux-nilfs
          1 lvs-devel
          1 netfilter
          1 linux-oxnas
          1 lm-sensors
          1 acpica-devel
          1 smatch
          1 wireless-regdb
          1 netfs
          1 powertop
          1 kvm-riscv

git clone https://yhbt.net/lore/pub/scm/linux/kernel/git/sj/damo.git