Difference between revisions of "Preload"

From ArchWiki
Jump to: navigation, search
m (Add link to readahead, a similar piece of software.)
m (removed some obsolete info about defaults)
Line 21: Line 21:
 
==Configuration==
 
==Configuration==
  
The configuration file is <code>/etc/preload.conf</code>, it contains
+
The configuration file is <code>/etc/preload.conf</code>, it contains default settings that should be suitable for regular users. The <code>cycle</code> option lets you configure how often to ping the
default settings that should be suitable for regular
+
preload system to update its model of which applications and libraries to cache.
users. Unfortunately the default settings do not cover applications
+
that are installed in /opt, if you have applications there, add them
+
using <code>mapprefix</code> and <code>exeprefix</code>. The
+
<code>cycle</code> option lets you configure how often to ping the
+
preload system to update its model of which applications and libraries
+
to cache.
+
  
 
==See also==
 
==See also==

Revision as of 08:25, 19 April 2011

preload is a program written by Behdad Esfahbod which runs as a daemon and records statistics about usage of programs using Markov chains; files of more frequently-used programs are, during a computer's spare time, loaded into memory. This results in faster startup times as less data needs to be fetched from disk. preload is often paired with prelink.

Installation

preload is available through pacman. In Arch Linux, just issue the command:

# pacman -S preload

Start directly with

# /etc/rc.d/preload start

To start preload at system boot, add it to the DAEMONS section in /etc/rc.conf:

DAEMONS =(... preload ...)

Configuration

The configuration file is /etc/preload.conf, it contains default settings that should be suitable for regular users. The cycle option lets you configure how often to ping the preload system to update its model of which applications and libraries to cache.

See also