Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdomlop/systemd-zram
https://github.com/mdomlop/systemd-zram
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdomlop/systemd-zram
- Owner: mdomlop
- License: gpl-3.0
- Created: 2017-11-09T01:07:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T05:21:25.000Z (about 5 years ago)
- Last Synced: 2024-08-01T12:36:28.622Z (3 months ago)
- Language: Makefile
- Size: 37.1 KB
- Stars: 16
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-starred - mdomlop/systemd-zram - (others)
README
Systemd zRAM service
--------------------Use a part of your RAM as compressed swap.
[`zram`](https://en.wikipedia.org/wiki/Zram) is a Linux kernel feature
that provides a form of virtual memory compression. `zram` module increases
performance by avoiding paging to disk and using a compressed block device in
RAM instead, inside which paging takes place until it is necessary to use the
swap space on a hard disk drive. Since using `zram` is an alternative way to
provide swapping on RAM, `zram` allows Linux to make a better use of RAM when
swapping/paging is required, especially on older computers with less RAM
installed.This program provides a systemd service to automatically load and configure
such module at system boot.You can choose compression algorithm by editing systemd service. To see available
algorithms do `cat /sys/block/zram0/comp_algorithm`.Installation
------------You can choose between different installation methods. Note that uninstallation
don't removes active zram disk.### Classic method ###
- Build and install:
$ make
# make install- Uninstall:
# make uninstall
### Debian package ###
- Build and install:
$ make debian_pkg
# dpkg -i systemd-zram_*.deb- Uninstall:
# apt purge systemd-zram
### Arch Linux package
- Build and install:
$ make arch_pkg
# pacman -U systemd-zram-*.pkg.tar.xzAlternatively you can install it from AUR:
$ trizen -S systemd-zram
- Uninstall:
# pacman -Rsc systemd-zram
Usage
-----To start the service execute as root:
# systemctl start systemd-zram
To stop it:
# systemctl stop systemd-zram
If you want to enable zram at boot, just run as root:
# systemctl enable systemd-zram
And for disable it at boot:
# systemctl disable systemd-zram