~ubuntu-branches/ubuntu/trusty/preload/trusty

« back to all changes in this revision

Viewing changes to src/preload.conf.in

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2005-12-09 12:49:08 UTC
  • Revision ID: james.westby@ubuntu.com-20051209124908-mlg34nrp7ibubg40
Tags: upstream-0.2
ImportĀ upstreamĀ versionĀ 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[model]
 
2
 
 
3
# cycle:
 
4
#
 
5
# This is the quantum of time for preload.  Preload performs
 
6
# data gathering and predictions every cycle.  Use an even
 
7
# number.
 
8
#
 
9
# Note: Setting this parameter too low will may reduce the
 
10
# system performance and stability.
 
11
#
 
12
# unit: unit_cycle
 
13
# default: default_cycle
 
14
#
 
15
cycle = default_cycle
 
16
 
 
17
# usecorrelation:
 
18
#
 
19
# Whether correlation coefficient should be used in the prediction
 
20
# algorithm.  There are arguments both for and against using it.
 
21
# Currently it's believed that using it results in more accurate
 
22
# prediction.  The option may be removed in the future.
 
23
#
 
24
# default: default_usecorrelation
 
25
usecorrelation = default_usecorrelation
 
26
 
 
27
# minsize:
 
28
#
 
29
# Minimum sum of the length of maps of the process for
 
30
# preload to consider tracking the application.
 
31
#
 
32
# Note: Setting this parameter too high will make preload less
 
33
# effective, while setting it too low will make it eat
 
34
# quadratically more resources, as it tracks more processes.
 
35
#
 
36
# unit: unit_minsize
 
37
# default: default_minsize
 
38
#
 
39
minsize = default_minsize
 
40
 
 
41
#
 
42
# The following control how much memory preload is allowed to use
 
43
# for preloading in each cycle.  All values are percentages and are
 
44
# clamped to -100 to 100.
 
45
#
 
46
# The total memory preload uses for prefetching is then computed using
 
47
# the following formulae:
 
48
#
 
49
#       max (0, TOTAL * memtotal + FREE * memfree) + CHACED * memcached
 
50
# where TOTAL, FREE, and CACHED are the respective values read at
 
51
# runtime from /proc/meminfo.
 
52
#
 
53
 
 
54
# memtotal: precentage of total memory
 
55
#
 
56
# unit: unit_memtotal
 
57
# default: default_memtotal
 
58
#
 
59
memtotal = default_memtotal
 
60
 
 
61
# memfree: precentage of free memory
 
62
#
 
63
# unit: unit_memfree
 
64
# default: default_memfree
 
65
#
 
66
memfree = default_memfree
 
67
 
 
68
# memcached: precentage of cached memory
 
69
#
 
70
# unit: unit_memcached
 
71
# default: default_memcached
 
72
#
 
73
memcached = default_memcached
 
74
 
 
75
 
 
76
###########################################################################
 
77
 
 
78
[system]
 
79
 
 
80
# doscan:
 
81
#
 
82
# Whether preload should monitor running processes and update its
 
83
# model state.  Normally you do want that, that's all preload is
 
84
# about, but you may temporarily want to turn it off for various
 
85
# reasons like testing and only make predictions.  Note that if
 
86
# scanning is off, predictions are made based on whatever processes
 
87
# have been running when preload started and the list of running
 
88
# processes is not updated at all.
 
89
#
 
90
# default: default_doscan
 
91
doscan = default_doscan
 
92
 
 
93
# dopredict:
 
94
#
 
95
# Whether preload should make prediction and prefetch anything off
 
96
# the disk.  Quite like doscan, you normally want that, that's the
 
97
# other half of what preload is about, but you may temporarily want
 
98
# to turn it off, to only train the model for example.  Note that
 
99
# this allows you to turn scan/predict or or off on the fly, by
 
100
# modifying the config file and signalling the daemon.
 
101
#
 
102
# default: default_dopredict
 
103
dopredict = default_dopredict
 
104
 
 
105
# autosave:
 
106
#
 
107
# Preload will automatically save the state to disk every
 
108
# autosave period.  This is only relevant if doscan is set to true.
 
109
# Note that some janitory work on the model, like removing entries
 
110
# for files that no longer exist happen at state save time.  So,
 
111
# turning off autosave completely is not advised.
 
112
#
 
113
# unit: unit_autosave
 
114
# default: default_autosave
 
115
#
 
116
autosave = default_autosave
 
117
 
 
118
# mapprefix:
 
119
#
 
120
# A list of path prefixes that controll which mapped file are to
 
121
# be considered by preload and which not.  The list items are
 
122
# separated by semicolons.  Matching will be stopped as soon as
 
123
# the first item is matched.  For each item, if item appears at
 
124
# the beginning of the path of the file, then a match occurs, and
 
125
# the file is accepted.  If on the other hand, the item has a
 
126
# exclamation mark as its first character, then the rest of the
 
127
# item is considered, and if a match happens, the file is rejected.
 
128
# For example a value of !/lib/modules;/ means that every file other
 
129
# than those in /lib/modules should be accepted.  In this case, the
 
130
# trailing item can be removed, since if no match occurs, the file is
 
131
# accepted.  It's advised to make sure /dev is rejected, since
 
132
# preload doesn't special-handle device files internally.
 
133
#
 
134
# default: (empty list, accept all)
 
135
mapprefix = !/usr/lib/locale;/usr;/lib;/lib64;!/
 
136
 
 
137
# exeprefix:
 
138
#
 
139
# The syntax for this is exactly the same as for mapprefix.  The only
 
140
# difference is that this is used to accept or reject binary exectuable
 
141
# files instead of maps.
 
142
#
 
143
# default: (empty list, accept all)
 
144
exeprefix = !/usr/sbin;/usr;!/