Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bluerider/zswap
Bash script to setup zram swap devices
https://github.com/bluerider/zswap
Last synced: about 2 months ago
JSON representation
Bash script to setup zram swap devices
- Host: GitHub
- URL: https://github.com/bluerider/zswap
- Owner: bluerider
- License: mit
- Created: 2015-04-06T17:13:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-16T23:48:15.000Z (about 9 years ago)
- Last Synced: 2024-04-09T14:21:55.990Z (6 months ago)
- Language: Shell
- Size: 156 KB
- Stars: 17
- Watchers: 2
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zswap
Zswap extends the amount of usable ram one has. It does this by utilizing compressed zram block devices.It is not related to the kernel zswap module!
Zswap defaults to use a single multithreaded lzo compressed half-ram swap disk
Edit the following parameters in zswap.sh to configure zswap:Parameter Usage | Example
------------|-------------------------------------------|---------------
size | Set the size a block device(K,M,G) | size=(1G)
algo | Set the compression algorithm (lzo|lz4) | algo=(lzo)
threads | Set the # of threads to compress with | threads=(2)
num_devices | Set the # of swap devices from zswap | num_devices=1Use the following commands to control zswap:
Command | Usage
---------------------------|------------------------------------
zswap.sh start | Start zswap
zswap.sh stop | Stop zswap
zswap.sh restart | Restart zswap
systemctl enable zswap | Start zswap on boot using systemd
systemctl start zswap | Start zswap using systemd
systemctl stop zswap | Stop zswap using systemd
systemctl restart zswap | Restart zswap using systemd