• X
    alinux: mm, memcg: record latency of memcg wmark reclaim · 40969475
    Xu Yu 提交于
    The memcg background async page reclaim, a.k.a, memcg kswapd, is
    implemented with a dedicated unbound workqueue currently.
    
    However, memcg kswapd will run too frequently, resulting in high
    overhead, page cache thrashing, frequent dirty page writeback, etc., due
    to improper memcg memory.wmark_ratio, unreasonable memcg memor capacity,
    or even abnormal memcg memory usage.
    
    We need to find out the problematic memcg(s) where memcg kswapd
    introduces significant overhead.
    
    This records the latency of each run of memcg kswapd work, and then
    aggregates into the exstat of per memcg.
    Signed-off-by: NXu Yu <xuyu@linux.alibaba.com>
    Reviewed-by: NXunlei Pang <xlpang@linux.alibaba.com>
    40969475
memcontrol.c 202.0 KB