Difference between revisions of "Preload"

From ArchWiki
Jump to: navigation, search
m (l18n)
m (format)
Line 9: Line 9:
 
often paired with [[prelink]].
 
often paired with [[prelink]].
  
==Installation==
+
== Installation ==
preload is available through pacman. In Arch Linux, just issue the command:
+
  
<pre># pacman -S preload</pre>
+
[[pacman|Install]] {{Pkg|preload}} from [[official repository]].
  
==Running the daemon==
+
== Running the daemon ==
  
===[[Systemd]]===
+
=== Systemd ===
  
Start directly with (as root)
+
If you are using the default init system ([[Systemd]]), start directly with (as root):
  
 
  # systemctl start preload.service
 
  # systemctl start preload.service
  
To start preload at system boot, type as root
+
To start preload at system boot, type as root:
  
 
  # systemctl enable preload.service
 
  # systemctl enable preload.service
  
===[[rc.conf]] (deprecated)===
+
=== [[rc.conf]] (deprecated) ===
  
Start directly with
+
Start directly with:
  
<pre># /etc/rc.d/preload start</pre>
+
# rc.d start preload
  
 
To start preload at system boot, add it to the DAEMONS section in [[rc.conf|/etc/rc.conf]]:
 
To start preload at system boot, add it to the DAEMONS section in [[rc.conf|/etc/rc.conf]]:
  
<pre>DAEMONS =(... preload ...)</pre>
+
DAEMONS =(... preload ...)
  
==Configuration==
+
== Configuration ==
  
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
+
The configuration file is {{ic|/etc/preload.conf}}, it contains default settings that should be suitable for regular users. The {{ic|cycle}} option lets you configure how often to ping the
 
preload system to update its model of which applications and libraries to cache.
 
preload system to update its model of which applications and libraries to cache.
  
==See also==
+
== See also ==
 +
 
 
* http://en.wikipedia.org/wiki/Preload_(software)
 
* http://en.wikipedia.org/wiki/Preload_(software)
 
* http://techthrob.com/2009/03/02/drastically-speed-up-your-linux-system-with-preload/
 
* http://techthrob.com/2009/03/02/drastically-speed-up-your-linux-system-with-preload/
 
* [[Readahead]]
 
* [[Readahead]]

Revision as of 11:54, 23 May 2013

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

Install preload from official repository.

Running the daemon

Systemd

If you are using the default init system (Systemd), start directly with (as root):

# systemctl start preload.service

To start preload at system boot, type as root:

# systemctl enable preload.service

rc.conf (deprecated)

Start directly with:

# rc.d start preload

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