Added autoswap.sh, autoswap.service and autoswap.conf to swap-management folder. (v1.0)

This commit is contained in:
2024-11-16 19:41:10 +02:00
parent 8872516bb7
commit 5b9cad82b3
4 changed files with 277 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
## Use as and integer value in MB (1GB = 1024MB). When free RAM + SWAP
## reaches this value a new SWAP file will be automatically created.
threshold_minimum=512
## Use as and integer value in MB (1GB = 1024MB). When a SWAP file is
## created it will be this size. The value is divided by 1024 to get
## a Gigabyte value when creating SWAP files.
swap_file_size=2048
## Use as and integer value. The minimmum number of SWAP files that
## will always remain on the system.
required_swap_files=1
## Use as and integer value in MB (1GB = 1024MB). A check will be done
## to ensure that remaining partition space will not be less than this
## after a SWAP file is created.
minimum_free_storage=4096
## Use as an integer value in seconds. How frequently the RAM + SWAP
## usage will be checked.
check_interval=30