Version information
released Nov 4th 2015
This version is compatible with:
Start using this module
Add this module to your Puppetfile:
mod 'cristifalcas-zram', '0.3.0'
Learn more about managing modules with a PuppetfileDocumentation
cristifalcas/zram — version 0.3.0 Nov 4th 2015
zram
Table of Contents
- Overview
- Setup - The basics of getting started with zram
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- 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
Dependencies
- puppetlabs/stdlib (4.x)
Copyright (C) 2014 R. Tyler Croy <tyler@monkeypox.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.