Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.
/ zram-swap Public archive

A simple script to manage zram swap devices

License

Notifications You must be signed in to change notification settings

jcrd/zram-swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zram-swap

zram-swap is a simple script that manages zram devices for use as swap. It can create a single device the size of available RAM, or divide the size between as many devices as there are CPUs, as reported by nproc.

Usage

usage: zram-swap command

commands:
  setup         Setup single device
  setup-per-cpu Setup a device per CPU
  remove        Remove devices
  on            Turn on devices
  off           Turn off devices
  status        Show status of devices

systemd

zram-swap also provides two systemd services for automatic setup at boot.

For a single zram swap device: systemctl enable zram-swap

For a zram swap device per CPU: systemctl enable zram-swap-per-cpu

License

This project is licensed under the MIT License (see LICENSE).

Alternatives

  • systemd-swap supports multiple swap backends and is configurable

Releases

No releases published