# This file is part of Swapspace. # # Swapspace is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # Swapspace is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with swapspace; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # Swap path: location where swapspace may create and delete swapfiles. For # security reasons this directory must be accessible to root and to root only. swappath="/var/lib/swapspace" # Lower free-space threshold: if the percentage of free space drops below this # number, additional swapspace is allocated lower_freelimit=20 # Upper free-space threshold: if the percentage of free space exceeds this # number, swapspace will attempt to free up swapspace upper_freelimit=60 # Percentage of free space swapspace should aim for when adding swapspace. This # should fall somewhere between lower_freelimit and upper_freelimit. freetarget=30 # Smallest allowed size for individual swapfiles (m — megabyte, g — gigabyte, t — terabyte) min_swapsize=4m # Greatest allowed size for individual swapfiles (m — megabyte, g — gigabyte, t — terabyte) max_swapsize=1024m # Duration (roughly in seconds) of the moratorium on swap allocation that is # instated if disk space runs out, or the cooldown time after a new swapfile is # successfully allocated before swapspace will consider deallocating swap space # again. The default cooldown period is about 10 minutes. cooldown=600