Debian Bug report logs - #648249
RFP: zramswap-enabler -- Start/Stop swapping to zram

Package: wnpp; Maintainer for wnpp is wnpp@debian.org;

Reported by: Achim Schaefer <achim_schaefer@gmx.de>

Date: Wed, 9 Nov 2011 21:54:02 UTC

Severity: wishlist

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, achim_schaefer@gmx.de, wnpp@debian.org:
Bug#648249; Package wnpp. (Wed, 09 Nov 2011 21:54:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Achim Schaefer <achim_schaefer@gmx.de>:
New Bug report received and forwarded. Copy sent to achim_schaefer@gmx.de, wnpp@debian.org. (Wed, 09 Nov 2011 21:54:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Achim Schaefer <achim_schaefer@gmx.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: RFP: zramswap-enabler -- Start/Stop swapping to zram
Date: Wed, 09 Nov 2011 22:50:38 +0100
Package: wnpp
Severity: wishlist

* Package name    : zram-tools
  Version         : 0.2.1
  Upstream Author : Sergey Davidoff <Shnatsel@gmail.com>
* URL             : https://launchpad.net/~shnatsel/+archive/zram
  URL2            : http://www.webupd8.org/2011/10/increased-performance-in-linux-with.html
* License         : GPL 2
  Programming Lang: bash
  Description     : Start/Stop swapping to zram

These scripts create required zram devices for swap, and enable swap on them at system startup




Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#648249; Package wnpp. (Mon, 05 Aug 2013 21:12:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ken Sharp <kennybobs@o2.co.uk>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org.

Your message did not contain a Subject field. They are recommended and useful because the title of a $gBug is determined using this field. Please remember to include a Subject field in your messages in future.

(Mon, 05 Aug 2013 21:12:04 GMT) Full text and rfc822 format available.


Message #10 received at 648249@bugs.debian.org (full text, mbox):

From: Ken Sharp <kennybobs@o2.co.uk>
To: 648249@bugs.debian.org
Date: Mon, 05 Aug 2013 22:04:39 +0100
zram is in Ubuntu. Any plan on putting this into Debian?



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#648249; Package wnpp. (Fri, 22 Nov 2013 11:24:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ken Sharp <imwellcushtymelike@googlemail.com>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org.

Your message did not contain a Subject field. They are recommended and useful because the title of a $gBug is determined using this field. Please remember to include a Subject field in your messages in future.

(Fri, 22 Nov 2013 11:24:07 GMT) Full text and rfc822 format available.


Message #15 received at 648249@bugs.debian.org (full text, mbox):

From: Ken Sharp <imwellcushtymelike@googlemail.com>
To: 648249@bugs.debian.org
Date: Fri, 22 Nov 2013 11:13:33 +0000
The package zram-config has been added to Ubuntu which works pretty well.
http://packages.ubuntu.com/search?suite=all&searchon=names&keywords=zram-config

I've even added a script to my Android phones.
http://kennystechtalk.blogspot.com/2013/09/configuring-zram-on-sony-xperia-play.html

It should be fairly easy to implement and is very useful. The Ubuntu 
script no doubt can be used.



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#648249; Package wnpp. (Wed, 04 Dec 2013 23:21:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to JM <meets@gmx.fr>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org. (Wed, 04 Dec 2013 23:21:04 GMT) Full text and rfc822 format available.

Message #20 received at 648249@bugs.debian.org (full text, mbox):

From: JM <meets@gmx.fr>
To: 648249@bugs.debian.org
Subject: RFP: zramswap-enabler -- Start/Stop swapping to zram
Date: Thu, 5 Dec 2013 00:19:22 +0100
Hi,

I also like using zram with a script to enable it and some configuration files to fine
tune it. I have even been using it since several years in different distributions, when it
was available only as a compcache package provided with rzscontrol and ramzswap.

Zram provides an additional amount of RAM by compressing a part of it. It can avoid
somehow, swapping to disk, if it is setup to have a higher priority on swapping than the
swap to disk. This is the website of the original project, to understand better what it
does:
http://code.google.com/p/compcache/

«This project creates RAM based block device (named zram) which acts as swap disk. Pages
swapped to this disk are compressed and stored in memory itself.

Compressing pages and keeping them in RAM virtually increases its capacity. This allows
more applications to fit in given amount of memory. »

Since a few months Debian has been delivering kernels with zram enabled as module, which
is nice because until recently it was not default compiled in the kernels provided in the
current repositories. 

The zram module is very good to use in machines with low ram specs, embedded systems, or
even in modern machines having from 1 GB to much more, when we need to use several
resource hungry programs at same time. 

The script I am using for Debian is this one:
http://meets.free.fr/Downloads/Debian/zramconfig/zram/etc/init.d/zram

«Adapted from systemd scripts at https://github.com/mystilleef/FedoraZram(...)», along
with a default configuration file:
http://meets.free.fr/Downloads/Debian/zramconfig/zram/etc/default/zram

and a post-install start script:
http://meets.free.fr/Downloads/Debian/zramconfig/zram/post-install

It has an additional setup which allows using it with either "zram_num_devices" or
"num_devices" option (some kernels came with one, some other kernels came with the other,
anyhow the start-up script contains comments about it to explain).

I have used it some time in Wheezy where it worked fine. I have not tried it in Jessie
yet but will soon.

It's all in a tarball:
http://meets.free.fr/Downloads/Debian/zramconfig/zram.tar.gz

and is waiting for some people to test further and package it. 

Of course, when Debian Jessie will have switched completely to systemd it might need to
be modified, as it has been for Archlinux some time ago when the init system changed
(zramswap at Archlinux can be visited here: https://aur.archlinux.org/packages/zramswap/
and the script created for the Fedora systemd can be found here:
https://github.com/mystilleef/FedoraZram).

Thanks for considering this request.
Regards,
Mélodie



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 13:13:50 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.