-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathand.priorities
101 lines (91 loc) · 2.88 KB
/
and.priorities
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#
# Sample priority database for the auto-nice daemon, /etc/and.priorities
#
# Comments must have the # in the _first_ column!
#
# File format:
# user group job parent nice1 nice2 nice3
# - user: user name or user id or * for all
# - group: group name or group id or * for all
# - job: executable (without path; may be a regexp) or * for all
# - parent: keyword "parent=" or "ancestor=" followed by the
# executable (without path; may be a regexp), or * for all
# - nice1, nice2, nice3: nice levels for CPU usage ranges.
#
# At least one of user or group must be an asterisk *.
#
# After /etc/and.conf:lv1time seconds matching jobs are niced to nice1,
# after /etc/and.conf:lv2time to nice2 and after /etc/and.conf:lv3time
# to nice3.
#
# Read and.priorities(5) for details.
#
# 1999, 2000, 2004 Patrick Schemitz, [email protected]
#
#
# Philosophy:
#
# Hold down notorious troublemakers (Netscape, colourful screensavers, ...)
# and leave other jobs alone. (Within reason, that is.)
# Note that a perceptive user might rename his jobs' executables to
# obtain higher privilegue. So the values must be sensible to that.
# For instance, noone with his mind right would rename his computation-
# intensive job to "gcc" to avoid renicing after two minutes, since
# gcc is reniced to 19 after just another 18 minutes...
#
#
# Default entry -- moderate renicing, priority always above screen savers.
#
#* * * * 4 8 12
#
# Jobs started by the Grid master process always run on 10. If someone
# else besides User grid starts a (fake, presumably) Grid master, kill it
# at once: it's a fraud! The real Grid master, of course, is left alone.
#
#* * * ancestor=grid_nanny 10 10 10
#* * grid_nanny * -9 -9 -9
#grid * grid_nanny * 0 0 0
#
# Jobs of the local user are treated more nicely. The local user is
# identified by the fact that her programs are started by the login
# screen, kdm or xdm in this case.
#
#* * * ancestor=[xkg]dm 2 2 2
#
# The hosts bar and baz are reserved for the foo group, so
# prefer them over other groups.
#
#on (bar|baz)
#* foo * * 4 8 12
#* * * * 12 16 18
#on .*
#
# Our special friend, user dau, tends to thresh machines with long-
# running unniced jobs... we do not appreciate this behaviour. A little
# punishment might be in order.
#
#dau * * * 12 16 18
#
# firefox -- more than 20 minutes probably means it's running berserk,
# so we just kill it off.
#
#* * .*firefox.* * 15 15 15
#
# make -- nicing make improves desktop responsiveness during compiles.
#
#* * make * 15 15 15
#
# Compilers -- don't renice them the first 20 minutes, but then...
# After an hour of compilation for one single source file, there
# *is* something wrong.
# ld and make shouldn't use more than 2 minutes themselves, so we
# just leave them to the default.
#
#* * gcc * 0 19 -9
#* * g++ * 0 19 -9
#* * g77 * 0 19 -9
#* * cc1 * 0 19 -9
#
# System monitors -- don't monitor the system useless.
#
#* * .*top * 15 15 15