aboutsummaryrefslogtreecommitdiff
path: root/miscutils/readahead.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-11-29 11:26:45 +0000
committerRon Yorston <rmy@pobox.com>2016-11-29 11:26:45 +0000
commitbb8d79eadbba1942dbdb9f9cee5c47833afe269f (patch)
treeb8c517e9ca895d60d7227aef7177b6291df5e2cd /miscutils/readahead.c
parent9fa1e4990e655a85025c9d270a1606983e375e47 (diff)
parent7d877fc9312a742b06125927bb1d34bd35398c6c (diff)
downloadbusybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.tar.gz
busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.tar.bz2
busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'miscutils/readahead.c')
-rw-r--r--miscutils/readahead.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/miscutils/readahead.c b/miscutils/readahead.c
index e22aaa468..b8e9b257f 100644
--- a/miscutils/readahead.c
+++ b/miscutils/readahead.c
@@ -9,6 +9,27 @@
9 * 9 *
10 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 10 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
11 */ 11 */
12//config:config READAHEAD
13//config: bool "readahead"
14//config: default y
15//config: depends on LFS
16//config: select PLATFORM_LINUX
17//config: help
18//config: Preload the files listed on the command line into RAM cache so that
19//config: subsequent reads on these files will not block on disk I/O.
20//config:
21//config: This applet just calls the readahead(2) system call on each file.
22//config: It is mainly useful in system startup scripts to preload files
23//config: or executables before they are used. When used at the right time
24//config: (in particular when a CPU bound process is running) it can
25//config: significantly speed up system startup.
26//config:
27//config: As readahead(2) blocks until each file has been read, it is best to
28//config: run this applet as a background job.
29
30//applet:IF_READAHEAD(APPLET(readahead, BB_DIR_USR_SBIN, BB_SUID_DROP))
31
32//kbuild:lib-$(CONFIG_READAHEAD) += readahead.o
12 33
13//usage:#define readahead_trivial_usage 34//usage:#define readahead_trivial_usage
14//usage: "[FILE]..." 35//usage: "[FILE]..."