Adaptive read-ahead V7
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest16 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | mm: delayed page activationinclude/ mm/ mm/ +1 more | +42 | 4 replies | |
| 2/16 | mm: balance page aging between zonesinclude/ mm/ mm/ | +159 | 0 replies | |
| 3/16 | radixtree: sync with mainlinelib/ | +5 | 0 replies | |
| 4/16 | radix-tree: look-aside cacheinclude/ lib/ | +255 | 6 replies | |
| 5/16 | readahead: some preparationmm/ | +167 | 0 replies | |
| 6/16 | readahead: call schemeinclude/ include/ mm/ +1 more | +239 | 0 replies | |
| 7/16 | readahead: tunable parametersDocumentation/ include/ include/ +3 more | +139 | 0 replies | |
| 8/16 | readahead: state based methodinclude/ mm/ mm/ +1 more | +355 | 0 replies | |
| 9/16 | readahead: context based methodmm/ | +342 | 0 replies | |
| 10/16 | readahead: other methodsmm/ | +111 | 0 replies | |
| 11/16 | readahead: mandatory thrashing protectioninclude/ include/ mm/ +2 more | +334 | 0 replies | |
| 12/16 | readahead: events accountingmm/ | +191 | 0 replies | |
| 13/16 | readahead: page aging accountingmm/ | +147 | 0 replies | |
| 14/16 | readahead: laptop mode supportinclude/ mm/ mm/ | +37 | 0 replies | |
| 15/16 | readahead: disable look-ahead for loopback filedrivers/ include/ mm/ | +15 | 0 replies | |
| 16/16 | io: reduce lantencyfs/ mm/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/16] Adaptive read-ahead V7
This is the 7th version of adaptive read-ahead patch.
There are various code cleanups and polish ups:
- new tunable parameters: readahead_hit_rate/readahead_live_chunk
- support sparse sequential accesses
- delay look-ahead in laptop mode
- disable look-ahead for loopback file
- make mandatory thrashing protection more simple and robust
- attempt to improve responsiveness on large I/O request size
Support for sparse reads is disabled by default. One must increase /proc/sys/vm/readahead_hit_rate to explicitly enable it. Please refer to Documentation/sysctl/vm.txt for details.
Currently the linux kernel does not support inter-file read-ahead. Tero Grundstr?m takes an intresting approach that achieves it: pack a dir of small files into a loopback file with reiserfs filesystem, and turn on sparse read support. But be prepared to waste some memory by this way :(
For crazy laptop users who prefer aggressive read-ahead, here is the way:
# echo 10000 > /proc/sys/vm/readahead_ratio # blockdev --setra 524280 /dev/hda # this is the max possible value
Notes:
- It is still an untested feature.
- It is safer to use blockdev+fadvise to increase ra-max for a single file, which needs patching your movie player.
- Be sure to restore them to sane values in normal operations!
Regards,
Wu