Difference between revisions of "Preload"

From ArchWiki
Jump to: navigation, search
m (format)
m (format)
Line 11: Line 11:
 
== Installation ==
 
== Installation ==
  
[[pacman|Install]] {{Pkg|preload}} from [[official repository]].
+
[[pacman|Install]] {{Pkg|preload}} from [[official repositories]].
  
 
== Running the daemon ==
 
== Running the daemon ==
Line 17: Line 17:
 
=== Systemd ===
 
=== Systemd ===
  
If you are using the default init system ([[Systemd]]), start directly with (as root):
+
If you are using the default init system ([[Systemd]]), start directly with:
  
 
  # systemctl start preload.service
 
  # systemctl start preload.service
Line 25: Line 25:
 
  # systemctl enable preload.service
 
  # systemctl enable preload.service
  
=== [[rc.conf]] (deprecated) ===
+
=== Deprecated initscripts ===
  
Start directly with:
+
If you are using the deprecated initscripts, start directly with:
  
 
  # rc.d start preload
 
  # rc.d start preload

Revision as of 11:56, 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 repositories.

Running the daemon

Systemd

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

# systemctl start preload.service

To start preload at system boot, type as root:

# systemctl enable preload.service

Deprecated initscripts

If you are using the deprecated initscripts, 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