Skip to content

readahead stats/tracing, backwards prefetching and more (v2)

Wu Fengguang linux-fsdevel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 28 repliesIn review

Changes since v1 from the cover letter

- use bit fields: pattern, for_mmap, for_metadata, lseek
- comment the various readahead patterns
- drop boot options "readahead=" and "readahead_stats="
- add for_metadata
- add snapping to EOF

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9block: limit default readahead size for small devicesblock/genhd.c+20 -00 replies
2/9readahead: snap readahead request to EOFmm/readahead.c+8 -04 replies
3/9readahead: record readahead patternsinclude/linux/fs.h include/linux/mm.h mm/filemap.c +1 more+62 -105 replies
4/9readahead: tag mmap page fault call sitesinclude/linux/fs.h mm/filemap.c mm/readahead.c+7 -11 reply
5/9readahead: tag metadata call sitesfs/ext3/dir.c fs/ext4/dir.c include/linux/fs.h +1 more+4 -01 reply
6/9readahead: add /debug/readahead/statsmm/Kconfig mm/readahead.c+209 -08 replies
7/9readahead: add vfs/readahead tracing eventinclude/trace/events/vfs.h mm/readahead.c+69 -07 replies
8/9readahead: basic support for backwards prefetchinginclude/linux/fs.h mm/readahead.c+17 -05 replies
9/9readahead: dont do start-of-file readahead after lseek()fs/read_write.c include/linux/fs.h mm/readahead.c+8 -00 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchJens AxboeRik van RielVivek GoyalLinus TorvaldsJan Kara
1/9A-b A-b T-b T-b
2/9A-b
3/9A-b A-b
4/9A-b
5/9A-b
6/9A-b
7/9A-b A-b
8/9A-b
9/9A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 0/9] readahead stats/tracing, backwards prefetching and more (v2)

Andrew,

This is what the bit fields look like :)

Changes since v1:
- use bit fields: pattern, for_mmap, for_metadata, lseek
- comment the various readahead patterns
- drop boot options "readahead=" and "readahead_stats="
- add for_metadata
- add snapping to EOF

[PATCH 1/9] block: limit default readahead size for small devices [PATCH 2/9] readahead: snap readahead request to EOF [PATCH 3/9] readahead: record readahead patterns
[PATCH 4/9] readahead: tag mmap page fault call sites [PATCH 5/9] readahead: tag metadata call sites
[PATCH 6/9] readahead: add /debug/readahead/stats
[PATCH 7/9] readahead: add vfs/readahead tracing event [PATCH 8/9] readahead: basic support for backwards prefetching [PATCH 9/9] readahead: dont do start-of-file readahead after lseek()

 block/genhd.c              |   20 ++
 fs/ext3/dir.c              |    1 
 fs/ext4/dir.c              |    1 
 fs/read_write.c            |    3 
 include/linux/fs.h         |   41 +++++
 include/linux/mm.h         |    4 
 include/trace/events/vfs.h |   64 ++++++++
 mm/Kconfig                 |   15 ++
 mm/filemap.c               |    9 -
 mm/readahead.c             |  257 ++++++++++++++++++++++++++++++++++-
 10 files changed, 404 insertions(+), 11 deletions(-)

Thanks,
Fengguang