# swapd.conf - config file for swapd # # Copyright 2000 Neven Lovric # # Ripped this from the man page ;) # # I tried using --config, but it doesn't work for 0.4.0a; this is my # hackish workaround. # Memory limit in KiB. # When the total amount of free memory gets below this number, swapd creates # a new swap file. # 16384 or more recommended (16MiB) memlimit=16384 # Pause between memory checks in mS. # When the total amount of free memory is above , swapd will pause # for mS before checking memory again. # 1000 should be ok for most systems (1S) pause=1000 # Swap file size in KiB. # >= 64, 4096 recommended (4MiB), 64MiB max :) minswapsize=4096 maxswapsize=65536 # Maximum number of swap files. # No more than swap files will be used. # 0 = unlimited (as many as the kernel will allow) maxswaps=0 # Timeout in seconds. # If the last created swap file is unused for seconds, it will be # removed. The last created swapfile is considered unused when there are # more than + kb of free memory (physical + swap). # # In other words, when a swap file is no longer needed, the thing gets # removed. # 60 is nice timeout=60 # Swap directory where all the swap files are kept. swapdir=/var/lib/swapd # PID file (where the currently running swapd stores it's PID so a new swapd # can find it) pidfile=/var/run/swapd.pid # Full path to mkswap. mkswap=/sbin/mkswap