• R
    mm: trace filemap add and del · fe0bfaaf
    Robert Jarzmik 提交于
    Use the events API to trace filemap loading and unloading of file pieces
    into the page cache.
    
    This patch aims at tracing the eviction reload cycle of executable and
    shared libraries pages in a memory constrained environment.
    
    The typical usage is to spot a specific device and inode (for example
    /lib/libc.so) to see the eviction cycles, and find out if frequently
    used code is rather spread across many pages (bad) or coallesced (good).
    Signed-off-by: NRobert Jarzmik <robert.jarzmik@free.fr>
    Cc: Dave Chinner <david@fromorbit.com>
    Cc: Hugh Dickins <hughd@google.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    fe0bfaaf
filemap.c 67.5 KB