swapfiles of being able to resize multiple swapfiles on the fly.
Site is @... http://pqxx.org/development/swapspace/
Source is @... http://pqxx.org/download/software/swapspace/
Faq is @... http://manpages.ubuntu.com/manpages/art ... ace.8.html
You will need to create the following (/etc/swapspace.conf) file...
Code: Select all
# 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=16 # Upper free-space threshold: if the percentage of free space exceeds this # number, swapspace will attempt to free up swapspace upper_freelimit=32 # Percentage of free space swapspace should aim for when adding swapspace. This # should fall somewhere between lower_freelimit and upper_freelimit. freetarget=24 # Smallest allowed size for individual swapfiles # min_swapsize=4m # Greatest allowed size for individual swapfiles # max_swapsize=2t # 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 # Run quietly in the background. # This is the normal way to run the program. daemon # Overwrite retired swapfiles before they are deleted, so an # attacker who obtains access to the disk without going through # the system's access control checks (e.g. by unplugging the # computer and then rebooting from a CD) cannot retrieve the # swapped data. There is no guarantee that this will work, and it # will not thwart advanced forensic analysis using custom-built # hardware; but it may reduce the chances of an attacker with # physical access to the system obtaining passwords, credit card # numbers etc. The program will attempt to free up all allocated # swapfiles on termination and return a success code for this # cleanup, as if the --erase had been specified. # Caution # The --paranoid option will slow down swap file management # considerably. In particular, stopping the daemon will cause it # to try and deallocate (and wipe) all swapfiles it has created, # and they will not be available for swapping immediately after # reboot. paranoid
The default swap location is.../var/lib/swapspace... and althought it's reasonable for use in that location
(and you can have more elsewhere) it's best used w/ the ACARD ANS-9010 64gb ramdrive.
see... https://techreport.com/review/16255/aca ... a-ram-disk
When you can confirm Swapspace functionality discontinue Zram use.
If using the ACARD ramdrive it's also best used w/ Btrfs ...
Package is @... http://slakfinder.org/index.php?act=sea ... e=#results
This package has not been adopted yet by ("slackonly" or)...
(as "fullmoonremix") I originally referred to it here...
see... Swap partition alternative...
I have succeed in compiling it w/ src2pkg by deleting the root makefile (that looks for debian???) w/ an archive editor.