This tutorial describes how to install Preload on Ubuntu9.04 and use it to speed up the system. Preload is an adaptive pre-read daemon. It monitors applications run by users, analyzes the data, predicts programs that may run by users, and reads binary files of these programs and their dependent files to the system memory, to accelerate the startup time. This article does not provide any form of guarantee! I'm not sure it works on your system! To install Preload, you must first install Preload.
This tutorial describes how to install Preload on Ubuntu 9.04 and use it to speed up the system. Preload is an adaptive pre-read daemon. It monitors applications run by users, analyzes the data, predicts programs that may run by users, and reads binary files of these programs and their dependent files to the system memory, to accelerate the startup time.
This article does not provide any form of guarantee! I'm not sure it works on your system!
Install Preload
To install Preload, first open the terminal (Application/attachment/terminal), and then enter:
Sudo aptitude install preload
To install Preload.
Installation is complete. Preload will run quietly in the background. If you want to change the Preload behavior, you can edit its configuration file/Etc/preload. conf. This is its Default Configuration:
Sudo gedit/etc/preload. conf
[Model]
# Cycle:
#
# This is the quantum of time for preload. Preload performs
# Data gathering and predictions every cycle. Use an even
# Number.
#
# Note: Setting this parameter too low will may reduce
# System performance and stability.
#
# Unit: seconds
# Default: 20
#
Cycle = 20
# Usecorrelation:
#
# Whether correlation coefficient shoshould be used in the prediction
# Algorithm. There are arguments both for and against using it.
# Currently it's believed that using it results in more accurate
# Prediction. The option may be removed in the future.
#
# Default: true
Usecorrelation = true
# Minsize:
#
# Minimum sum of the length of maps of the process
# Preload to consider tracking the application.
#
# Note: Setting this parameter too high will make preload less
# Valid tive, while setting it too low will make it eat
# Quadratically more resources, as it tracks more processes.
#
# Unit: bytes
# Default: 2000000
#
Minsize = 2000000
#
# The following control how much memory preload is allowed to use
# For preloading in each cycle. All values are percentages and are
# Clamped to-100 to 100.
#
# The total memory preload uses for prefetching is then computed using
# The following formulae:
#
# Max (0, TOTAL * memtotal + FREE * memfree) + CHACED * memcached
# Where TOTAL, FREE, and CACHED are the respective values read
# Runtime from/proc/meminfo.
#
# Memtotal: precentage of total memory
#
# Unit: signed_integer_percent
# Default:-10
#
Memtotal =-10
# Memfree: precentage of free memory
#
# Unit: signed_integer_percent
# Default: 100
#
Memfree = 100
# Memcached: precentage of cached memory
#
# Unit: signed_integer_percent
# Default: 30
#
Memcached = 30
######################################## ###################################
[System]
# Doscan:
#
# Whether preload shocould monitor running processes and update its
# Model state. Normally you do want that, that's all preload is
# About, but you may temporarily want to turn it off for various
# Reasons like testing and only make predictions. Note that if
# Scanning is off, predictions are made based on whatever processes
# Have been running when preload started and the list of running
# Processes is not updated at all.
#
# Default: true
Doscan = true
# Dopredict:
#
# Whether preload shocould make prediction and prefetch anything off
# The disk. Quite like doscan, you normally want that, that's
# Other half of what preload is about, but you may temporarily want
# To turn it off, to only train the model for example. Note that
# This allows you to turn scan/predict or off on the fly,
# Modifying the config file and signalling the daemon.
#
# Default: true
Dopredict = true
# Autosave:
#
# Preload will automatically save the state to disk every
# Autosave period. This is only relevant if doscan is set to true.
# Note that some janitory work on the model, like removing entries
# For files that no longer exist happen at state save time. So,
# Turning off autosave completely is not advised.
#
# Unit: seconds
# Default: 3600
#
Autosave = 3600
# Mapprefix:
#
# A list of path prefixes that controll which mapped file are
# Be considered by preload and which not. The list items are
# Separated by semicolons. Matching will be stopped as soon
# The first item is matched. For each item, if item appears
# The beginning of the path of the file, then a match occurs, and
# The file is accepted. If on the other hand, the item has
# Exclamation mark as its first character, then the rest of
# Item is considered, and if a match happens, the file is rejected.
# For example a value! /Lib/modules;/means that every file other
# Than those in/lib/modules shoshould be accepted. In this case,
# Trailing item can be removed, since if no match occurs, the file is
# Accepted. It's advised to make sure/dev is rejected, since
# Preload doesn' t special-handle device files internally.
#
# Default: (empty list, accept all)
Mapprefix =/usr;/lib ;! /
# Exeprefix:
#
# The syntax for this is exactly the same as for mapprefix. The only
# Difference is that this is used to accept or reject binary exectuable
# Files instead of maps.
#
# Default: (empty list, accept all)
Exeprefix =! /Usr/sbin ;! /Usr/local/sbin;/usr ;! /
If you have changed the configuration, You need to restart Preload:
Sudo/etc/init. d/preload restart
Link
- Preload: http://sourceforge.net/projects/preload/
- Ubuntu: http://www.ubuntu.com/
Translation from Speed Up Your System With Preload On Ubuntu 9.04 does not guarantee the accuracy of the translation. Please refer to the original article.
This article from: http://huzuofeiwei.com/2009/07/speed-up-your-system-with-preload-on-ubuntu-904.html reprint please indicate the source