You need to sign in or sign up before continuing.
  • SeongJae Park's avatar
    mm/damon/core: allow non-exclusive DAMON start/stop · 8b9b0d33
    SeongJae Park authored
    Patch series "Introduce DAMON sysfs interface", v3.
    
    Introduction
    ============
    
    DAMON's debugfs-based user interface (DAMON_DBGFS) served very well, so
    far.  However, it unnecessarily depends on debugfs, while DAMON is not
    aimed to be used for only debugging.  Also, the interface receives
    multiple values via one file.  For example, schemes file receives 18
    values.  As a result, it is inefficient, hard to be used, and difficult to
    be extended.  Especially, keeping backward compatibility of user space
    tools is getting only challenging.  It would be better to implement
    another reliable and flexible interface and deprecate DAMON_DBGFS in long
    term.
    
    For the reason, this patchset introduces a sysfs-based new user interface
    of DAMON.  The idea of the new interface is, using directory hierarchies
    and having one dedicated file for each value.  For a short example, users
    can do the virtual address monitoring via the interface as below:
    
        # cd /sys/kernel/mm/da...
    8b9b0d33
dbgfs.c 22.2 KB