lkml.org 
[lkml]   [2009]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH RFC v0 3/3] memcg: implement memory thresholds
    Date
    It allows to register multiple memory thresholds and gets notifications
    when it crosses.

    To register a threshold application need:
    - create an eventfd;
    - open file memory.usage_in_bytes of a cgroup
    - write string "<event_fd> <memory.usage_in_bytes> <threshold>" to
    cgroup.event_control.

    Application will be notified through eventfd when memory usage crosses
    threshold in any direction.

    Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>

    --
    1.6.5.3



    \
     
     \ /
      Last update: 2009-11-26 17:31    [W:0.033 / U:0.888 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site