UBUNTU: SAUCE: 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, 28 Mar 2011 13:49:04 +0000 (06:49 -0700)
commitad316e8889a5310eeacb61f995c1e386c5137248
treedf5964a767221e2ea31026d5ef1c7486859da145
parent00aa7166f13ade5ca6ceb637fd0868d4f6c14bf6
UBUNTU: SAUCE: 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