Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ureadahead(8) [linux man page]

ureadahead(8)						      System Manager's Manual						     ureadahead(8)

NAME
ureadahead - Read files in advance during boot SYNOPSIS
ureadahead [OPTIONS]... [PACK] DESCRIPTION
ureadahead (uber-readahead) is used during boot to read files in advance of when they are needed such that they are already in the page cache, improving boot performance. When started without any arguments, it checks for the existance and age of the default pack file /var/lib/ureadahead/pack, and if not present or older than a month, will discard it and retrace the boot sequence. The pack will then contain information about the files opened during boot, and the blocks that were in memory at the completion of the boot. If the file exists and is newer than a month old, or an alternate PACK path is given on the command-line, the files listed in the pack are opened and the blocks read into the page cache using the readahead(2) system call. Pack files are automatically optimised for Solid-State Disks or rotational Hard Drives, depending on which you have. OPTIONS
--verbose May be used to report on ureadahead's operation. In particular, this causes information about the size of the pack file to be out- put when reading and a complete dump of the contents of the pack file after tracing. --daemon Places ureadahead into the background once the pack file has been read, or once tracing has been enabled. This is ignored when reading on rotational hard drives, since it's important for performance reasons not to contend with other pro- cesses for I/O. --force-trace Discards all pack files and forces re-tracing. --timeout=SECONDS Normally when tracing, ureadahead will wait for a TERM or INT signal before concluding and generating the pack file. This option instead sets a timeout after which tracing is terminated. --dump Dump the contents of the pack file to standard output in a pretty format, does not trace or read the contents into memory. --sort=SORT Used with --dump to sort the output. The default is open, which is the order that the files will be opened. path sorts by path name, disk sorts by on-disk location, and size sorts by the amount of data that will be read for that file. OTHER MOUNT POINTS
PACK need not be the filename of a pack, instead it may be the name of a mount point (or indeed any non-file within the filesystem), in which case the pack for that device is read instead. This allows ureadahead to be called in the style ureadahead /usr for filesystems split across multiple devices. Pack files for these other devices are also stored under /var/lib/ureadahead and are named mountpoint.pack When tracing, these will be automatically generated. FILES
/var/lib/ureadahead/pack AUTHOR
Written by Scott James Remnant <scott@netsplit.com> BUGS
Report bugs at <https://launchpad.net/ubuntu/+source/ureadahead/+bugs> COPYRIGHT
Copyright (C) 2009 Canonical Ltd. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
readahead(2) ureadahead 2009-09-29 ureadahead(8)

Check Out this Related Man Page

SYSTEMD-READAHEAD-REPLAY.SERVICE(8)			 systemd-readahead-replay.service		       SYSTEMD-READAHEAD-REPLAY.SERVICE(8)

NAME
systemd-readahead-replay.service, systemd-readahead-collect.service, systemd-readahead-done.service, systemd-readahead-done.timer, systemd- readahead - Disk read ahead logic SYNOPSIS
systemd-readahead-replay.service systemd-readahead-collect.service systemd-readahead-done.service systemd-readahead-done.timer /usr/lib/systemd/systemd-readahead/systemd-readahead [OPTIONS...] COMMAND [DIRECTORY | FILE] DESCRIPTION
systemd-readahead-collect.service is a service that collects disk usage patterns at boot time. systemd-readahead-replay.service is a service that replays this access data collected at the subsequent boot. Since disks tend to be magnitudes slower than RAM, this is intended to improve boot speeds by pre-loading early at boot all data on disk that is known to be read for the complete boot process. systemd-readahead-done.service is executed a short while after boot completed and signals systemd-readahead-collect.service to end data collection. On this signal, this service will then sort the collected disk accesses and store information about them in /.readahead. Normally, both systemd-readahead-collect.service and systemd-readahead-replay.service are activated at boot so that access patterns from the preceding boot are replayed and new data collected for the subsequent boot. However, on read-only media where the collected data cannot be stored, it might be a good idea to disable systemd-readahead-collect.service. On rotating media, when replaying disk accesses at early boot, systemd-readahead-replay.service will order read requests by their location on disk. On non-rotating media, they will be ordered by their original access timestamp. If the file system supports it, systemd-readahead-collect.service will also defragment and rearrange files on disk to optimize subsequent boot times. OPTIONS
systemd-readahead understands the following options: -h, --help Prints a short help text and exits. --max-files= Maximum number of files to read ahead. Only valid for thes collect command. --file-size-max= Maximum size of files in bytes to read ahead. Only valid for the collect and replay commands. --timeout= Maximum time in microseconds to spend collecting data. Only valid for the collect command. COMMANDS
The following commands are understood by systemd-readahead: collect [DIRECTORY] Collect read-ahead data on early boot. When terminating, it will write out a pack file to the indicated directory containing the read-ahead data. replay [DIRECTORY] Perform read-ahead on the specified directory tree. analyze [FILE] Dumps the content of the read-ahead pack file to the terminal. For each file, the output lists approximately how much will be read ahead by the replay command. SEE ALSO
systemd(1) systemd 208 SYSTEMD-READAHEAD-REPLAY.SERVICE(8)
Man Page