installs and configures zram

Cristian Falcas



7,092 latest version

4.1 quality score

Version information

  • 0.3.0 (latest)
  • 0.2.1
released Nov 4th 2015
This version is compatible with:

    Start using this module

    Tags: zram


    cristifalcas/zram — version 0.3.0 Nov 4th 2015


    Build Status

    Table of Contents

    1. Overview
    2. Setup - The basics of getting started with zram
    3. Usage - Configuration options and additional functionality
    4. Limitations - OS compatibility, etc.
    5. Contributing - Guide for contributing to the module


    zram (also called zRAM and, initially, compcache) is a Linux kernel feature that provides a form of virtual memory compression. zram 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 RAM is an alternative way to provide swapping on RAM, zram allows Linux to make more use of RAM when swapping/paging is required, especially on older computers with less RAM installed


    What zram affects

    • An init script is installed that will start zram
    • A companion script is copied in /opt/zram/zram_stats.sh that shows statistics about ram/swap usage.

    Beginning with zram

    Install a zram enabled kernel:

    • uek kernels from Oracle Linux
    • any kernel from an el7 distribution


    include zram


    The module requires a kernel with zram module.

    It was only tested with OracleLinux 6 and OracleLinux 7 distributions.


    • Fork the project
    • Commit and push until you are happy with your contribution
    • Send a pull request with a description of your changes