1SYSTEMD-READAHEAD-REPLAYs.ySsEtReVmIdC-Er(e8a)dahead-repSlYaSyT.EsMeDr-vRiEcAeDAHEAD-REPLAY.SERVICE(8)
2
3
4
6 systemd-readahead-replay.service, systemd-readahead-collect.service,
7 systemd-readahead-done.service, systemd-readahead-done.timer, systemd-
8 readahead - Disk read ahead logic
9
11 systemd-readahead-replay.service
12
13 systemd-readahead-collect.service
14
15 systemd-readahead-done.service
16
17 systemd-readahead-done.timer
18
19 /usr/lib/systemd/systemd-readahead/systemd-readahead [OPTIONS...]
20 COMMAND
21 [DIRECTORY | FILE]
22
24 systemd-readahead-collect.service is a service that collects disk usage
25 patterns at boot time. systemd-readahead-replay.service is a service
26 that replays this access data collected at the subsequent boot. Since
27 disks tend to be magnitudes slower than RAM, this is intended to
28 improve boot speeds by pre-loading early at boot all data on disk that
29 is known to be read for the complete boot process.
30
31 systemd-readahead-done.service is executed a short while after boot
32 completed and signals systemd-readahead-collect.service to end data
33 collection. On this signal, this service will then sort the collected
34 disk accesses and store information about them in /.readahead.
35
36 Normally, both systemd-readahead-collect.service and
37 systemd-readahead-replay.service are activated at boot so that access
38 patterns from the preceding boot are replayed and new data collected
39 for the subsequent boot. However, on read-only media where the
40 collected data cannot be stored, it might be a good idea to disable
41 systemd-readahead-collect.service.
42
43 On rotating media, when replaying disk accesses at early boot,
44 systemd-readahead-replay.service will order read requests by their
45 location on disk. On non-rotating media, they will be ordered by their
46 original access timestamp. If the file system supports it,
47 systemd-readahead-collect.service will also defragment and rearrange
48 files on disk to optimize subsequent boot times.
49
51 systemd-readahead understands the following options:
52
53 --files-max=
54 Maximum number of files to read ahead. Only valid for thes collect
55 command.
56
57 --file-size-max=
58 Maximum size of files in bytes to read ahead. Only valid for the
59 collect and replay commands.
60
61 --timeout=
62 Maximum time in microseconds to spend collecting data. Only valid
63 for the collect command.
64
65 -h, --help
66 Print a short help text and exit.
67
68 --version
69 Print a short version string and exit.
70
72 The following commands are understood by systemd-readahead:
73
74 collect [DIRECTORY]
75 Collect read-ahead data on early boot. When terminating, it will
76 write out a pack file to the indicated directory containing the
77 read-ahead data.
78
79 replay [DIRECTORY]
80 Perform read-ahead on the specified directory tree.
81
82 analyze [FILE]
83 Dumps the content of the read-ahead pack file to the terminal. For
84 each file, the output lists approximately how much will be read
85 ahead by the replay command.
86
88 systemd(1)
89
90
91
92systemd 219 SYSTEMD-READAHEAD-REPLAY.SERVICE(8)