Forge Home

zram

installs and configures zram

8,727 downloads

7,961 latest version

4.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

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

    Start using this module

    • r10k or Code Manager
    • Bolt
    • Manual installation
    • Direct download

    Add this module to your Puppetfile:

    mod 'cristifalcas-zram', '0.3.0'
    Learn more about managing modules with a Puppetfile

    Add this module to your Bolt project:

    bolt module add cristifalcas-zram
    Learn more about using this module with an existing project

    Manually install this module globally with Puppet module tool:

    puppet module install cristifalcas-zram --version 0.3.0

    Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

    Download
    Tags: zram

    Documentation

    cristifalcas/zram — version 0.3.0 Nov 4th 2015

    zram

    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

    Overview

    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

    Setup

    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

    Usage

    include zram
    

    Limitations

    The module requires a kernel with zram module.

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

    Contributing

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