-
Notifications
You must be signed in to change notification settings - Fork 3
/
memavaild.conf
53 lines (32 loc) · 1.69 KB
/
memavaild.conf
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
## This is memavaild config file.
## Lines starting with $ contains required config keys and values.
## Lines starting with @ contain optional config keys that may be repeated.
## Other lines will be ignored.
## condition for starting correction
$MIN_MEM_AVAILABLE=2.5%
## correction step: to what level are we trying to restore available memory
$TARGET_MEM_AVAILABLE=3%
$MAX_CORRECTION_STEP_MIB=50
## in how many seconds to remove limits if available memory is above the
## specified threshold
$CANCEL_LIMITS_ABOVE_MEM_AVAILABLE=4%
$CANCEL_LIMITS_IN_TIME=20
## remove limits if the free swap volume is below the specified
$CANCEL_LIMITS_BELOW_SWAP_FREE_MIB=100
## monitoring intensity
$MEM_FILL_RATE=4000
$MAX_INTERVAL=3
$MIN_INTERVAL=0.2
$CORRECTION_INTERVAL=0.1
$VERBOSITY=0
$MIN_UID=1000
@LIMIT CGROUP=system.slice MIN_MEM_HIGH_PERCENT=10 RELATIVE_SHARE=1
@LIMIT CGROUP=user.slice MIN_MEM_HIGH_PERCENT=10 RELATIVE_SHARE=1
# @LIMIT CGROUP=user.slice/user-$UID.slice MIN_MEM_HIGH_PERCENT=10 RELATIVE_SHARE=1
# @LIMIT CGROUP=user.slice/user-$UID.slice/user@$UID.service/app.slice/app-org.gnome.Terminal.slice MIN_MEM_HIGH_PERCENT=5 RELATIVE_SHARE=0.2
# @LIMIT CGROUP=user.slice/user-$UID.slice/user@$UID.service/gnome-terminal-server.service MIN_MEM_HIGH_PERCENT=5 RELATIVE_SHARE=0.2
# @LIMIT CGROUP=user.slice/user-$UID.slice/user@$UID.service/idle.slice MIN_MEM_HIGH_PERCENT=5 RELATIVE_SHARE=0.2
# @LIMIT CGROUP=idle.slice MIN_MEM_HIGH_PERCENT=5 RELATIVE_SHARE=0.2
## set this in ~/.bashrc
## alias idle-run='systemd-run --slice=idle.slice --shell' # on modern Distros
## alias idle-run='systemd-run --setenv=XPWD=$PWD --slice=idle.slice --uid=$UID --gid=$UID -t $SHELL' # on Debian 9