aboutsummaryrefslogtreecommitdiff
path: root/miscutils/readahead.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-22 23:14:24 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-22 23:14:24 +0100
commitfb4da167114e96d7f20ef97474f976f8ffa604e7 (patch)
tree6f688202bc89ffa68b6679d1b252fd69b7471c94 /miscutils/readahead.c
parent9f8eb1ee7620020e01b3596ac7259d51ebca7a7b (diff)
downloadbusybox-fb4da167114e96d7f20ef97474f976f8ffa604e7.tar.gz
Split miscutils/Config.src items into miscutils/*.c files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/readahead.c')
-rw-r--r--miscutils/readahead.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/miscutils/readahead.c b/miscutils/readahead.c
index e22aaa468..0b502f88c 100644
--- a/miscutils/readahead.c
+++ b/miscutils/readahead.c
@@ -9,6 +9,23 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+//config:config READAHEAD
+//config: bool "readahead"
+//config: default y
+//config: depends on LFS
+//config: select PLATFORM_LINUX
+//config: help
+//config: Preload the files listed on the command line into RAM cache so that
+//config: subsequent reads on these files will not block on disk I/O.
+//config:
+//config: This applet just calls the readahead(2) system call on each file.
+//config: It is mainly useful in system startup scripts to preload files
+//config: or executables before they are used. When used at the right time
+//config: (in particular when a CPU bound process is running) it can
+//config: significantly speed up system startup.
+//config:
+//config: As readahead(2) blocks until each file has been read, it is best to
+//config: run this applet as a background job.
//usage:#define readahead_trivial_usage
//usage: "[FILE]..."