• Paul Reioux's avatar
    page_alloc: Make watermarks tunable separately · 419074f5
    Paul Reioux authored
    
    
    This patch introduces three new sysctls to /proc/sys/vm:
    wmark_min_kbytes, wmark_low_kbytes and wmark_high_kbytes.
    
    Each entry is used to compute watermark[min], watermark[low]
    and watermark[high] for each zone.
    
    These parameters are also updated when min_free_kbytes are
    changed because originally they are set based on min_free_kbytes.
    On the other hand, min_free_kbytes is updated when wmark_free_kbytes
    changes.
    
    By using the parameters one can adjust the difference among
    watermark[min], watermark[low] and watermark[high] and as a result
    one can tune the kernel reclaim behaviour to fit their requirement.
    Signed-off-by: default avatarSatoru Moriya <satoru.moriya@hds.com>
    
    modified and tuned for Hammerhead
    Signed-off-by: default avatarPaul Reioux <reioux@gmail.com>
    419074f5
page_alloc.c 172 KB