• Robert Jarzmik's avatar
    mm: trace filemap add and del · fe0bfaaf
    Robert Jarzmik authored
    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: default avatarRobert 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    fe0bfaaf
filemap.c 67.5 KB