]> git.baikalelectronics.ru Git - kernel.git/commit
mm: trace filemap add and del
authorRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 29 Apr 2013 22:06:10 +0000 (15:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Apr 2013 22:54:28 +0000 (15:54 -0700)
commit1e694a06bef2bee5b71fc60740a9fa19d6126ae2
treeed27f6c218ab9256d5bf30f6a4a28285c8f2c992
parentab127395503ff46ce0222b8b53fcf065a410db51
mm: trace filemap add and del

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: Robert 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/trace/events/filemap.h [new file with mode: 0644]
mm/filemap.c