UBUNTU: SAUCE: (no-up) add tracing for user initiated readahead requests
authorAndy Whitcroft <apw@canonical.com>
Thu, 29 Jul 2010 08:46:41 +0000 (09:46 +0100)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:10:06 +0000 (13:10 -0700)
commit41f1e52abeef7e45d2c18f3dc8a462a4970664ea
tree18a81f440a12014269016c4e6221d54f6af1e8e2
parent2ac7be3b9c385d2a0a8e85dbe4b87fbdb19740a2
UBUNTU: SAUCE: (no-up) add tracing for user initiated readahead requests

Track pages which undergo readahead and for each record which were
actually consumed, via either read or faulted into a map.  This allows
userspace readahead applications (such as ureadahead) to track which
pages in core at the end of a boot are actually required and generate an
optimal readahead pack.  It also allows pack adjustment and optimisation
in parallel with readahead, allowing the pack to evolve to be accurate
as userspace paths change.  The status of the pages are reported back via
the mincore() call using a newly allocated bit.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
include/linux/page-flags.h
mm/filemap.c
mm/memory.c
mm/mincore.c
mm/readahead.c