-
Notifications
You must be signed in to change notification settings - Fork 21
Home
This is a list of environment variables and the syntax which the thrash-protect script uses.
NOTE: Setting Variable value to 1 enables it (TRUE). Setting Variable value to 0 disables it (FALSE)
THRASH_PROTECT_CMD_WHITELIST
This is a space separated list of commands that should not be frozen
THRASH_PROTECT_LOG_USER_DATA_ON_FREEZE
This variable, when set to 1, will log process details on freezing. else it only logs date, pid and frozen pid list (default is 0)
THRASH_PROTECT_LOG_USER_DATA_ON_UNFREEZE
This variable, when set to 1, will log process details on unfreezing. else it only logs date, pid and frozen pid list (default is 1)
THRASH_PROTECT_INTERVAL
Interval in sec at which the system is checked for thrashing (default 0.5 sec)
THRASH_PROTECT_SWAP_PAGE_THRESHOLD
Number of acceptable page swaps during the above interval (default 4)
THRASH_PROTECT_DATE_HUMAN_READABLE
Date format to be used in log file. 1 for human readable (default 1)
If the script is running as systemd services, following is a override file to set environment variables:
$ sudo systemctl edit thrash-protect.service
this opens override file /home/manjaro/work/patch/thrash-protect/override.conf in editor. Add your variables in this file.
[Service]
Environment="THRASH_PROTECT_CMD_WHITELIST=sshd bash xinit X SCREEN ssh xterm Xorg xfwm4"
Environment="THRASH_PROTECT_LOG_USER_DATA_ON_FREEZE=1"