Skip to content

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

Wu Fengguang linux-fsdevel linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Changes since v2 from the cover letter

- use per-cpu counters for readahead stats
- make context readahead more conservative
- simplify readahead tracing format and use __print_symbolic()
- backwards prefetching and snap to EOF fixes and cleanups

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10block: limit default readahead size for small devicesblock/genhd.c+20 -00 replies
2/10readahead: make context readahead more conservativemm/readahead.c+4 -40 replies
3/10readahead: record readahead patternsinclude/linux/fs.h include/linux/mm.h mm/filemap.c +1 more+62 -100 replies
4/10readahead: tag mmap page fault call sitesinclude/linux/fs.h mm/filemap.c mm/readahead.c+7 -10 replies
5/10readahead: tag metadata call sitesfs/ext3/dir.c fs/ext4/dir.c include/linux/fs.h +1 more+4 -00 replies
6/10readahead: add vfs/readahead tracing eventfs/Makefile fs/trace.c include/trace/events/vfs.h +1 more+104 -00 replies
7/10readahead: add /debug/readahead/statsmm/Kconfig mm/readahead.c+208 -02 replies
8/10readahead: basic support for backwards prefetchinginclude/linux/fs.h include/trace/events/vfs.h mm/readahead.c+23 -00 replies
9/10readahead: dont do start-of-file readahead after lseek()fs/read_write.c include/linux/fs.h mm/readahead.c+8 -00 replies
10/10readahead: snap readahead request to EOFmm/readahead.c+21 -00 replies

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchJens AxboeRik van RielVivek GoyalLinus TorvaldsTao MaJan KaraSteven Rostedt
1/10A-b A-b T-b T-b
2/10T-b
3/10A-b A-b
4/10A-b
5/10A-b
6/10A-b A-b A-b
7/10A-b A-b A-b
8/10A-b
9/10A-b A-b
10/10A-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 7 reviewers.

Read the v1 thread

Cover letter [PATCH 00/10] readahead stats/tracing, backwards prefetching and more (v3)

Andrew,

This introduces the per-cpu readahead stats, tracing, backwards prefetching, fixes context readahead for SSD random reads and does some other minor changes.

Changes since v2:
- use per-cpu counters for readahead stats
- make context readahead more conservative
- simplify readahead tracing format and use __print_symbolic()
- backwards prefetching and snap to EOF fixes and cleanups

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 01/10] block: limit default readahead size for small devices [PATCH 02/10] readahead: make context readahead more conservative [PATCH 03/10] readahead: record readahead patterns
[PATCH 04/10] readahead: tag mmap page fault call sites [PATCH 05/10] readahead: tag metadata call sites
[PATCH 06/10] readahead: add vfs/readahead tracing event [PATCH 07/10] readahead: add /debug/readahead/stats
[PATCH 08/10] readahead: basic support for backwards prefetching [PATCH 09/10] readahead: dont do start-of-file readahead after lseek() [PATCH 10/10] readahead: snap readahead request to EOF

 block/genhd.c              |   20 ++
 fs/Makefile                |    1 
 fs/ext3/dir.c              |    1 
 fs/ext4/dir.c              |    1 
 fs/read_write.c            |    3 
 fs/trace.c                 |    2 
 include/linux/fs.h         |   41 ++++
 include/linux/mm.h         |    4 
 include/trace/events/vfs.h |   78 +++++++++
 mm/Kconfig                 |   15 +
 mm/filemap.c               |    9 -
 mm/readahead.c             |  301 +++++++++++++++++++++++++++++++++--
 12 files changed, 461 insertions(+), 15 deletions(-)

Thanks,
Fengguang

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>