• SeongJae Park's avatar
    mm/damon/schemes: implement time quota · 1cd24303
    SeongJae Park authored
    The size quota feature of DAMOS is useful for IO resource-critical
    systems, but not so intuitive for CPU time-critical systems.  Systems
    using zram or zswap-like swap device would be examples.
    
    To provide another intuitive ways for such systems, this implements
    time-based quota for DAMON-based Operation Schemes.  If the quota is
    set, DAMOS tries to use only up to the user-defined quota of CPU time
    within a given time window.
    
    Link: https://lkml.kernel.org/r/20211019150731.16699-5-sj@kernel.orgSigned-off-by: default avatarSeongJae Park <sj@kernel.org>
    Cc: Amit Shah <amit@kernel.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: David Hildenbrand <david@redhat.com>
    Cc: David Rientjes <rientjes@google.com>
    Cc: David Woodhouse <dwmw@amazon.com>
    Cc: Greg Thelen <gthelen@google.com>
    Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Leonard Foerster <foersleo@amazon.de>
    Cc: Marco Elver <elver@google.com>
    Cc: Markus Boehme <markubo@amazon.de>
    Cc: Shakeel Butt <shakeelb@google.com>
    Cc: Shuah Khan <shuah@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    1cd24303
core.c 22.8 KB