[Feature request] /etc/init/zram-config.conf has no any options. Please add a few.

Bug #1821499 reported by Dima
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zram-config (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Such people as me would like to set some permanent paramenters for zram without editing /usr/bin/init-zram-swapping script file. I think it's wrong to edit something in /usr/bin.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: zram-config 0.5
ProcVersionSignature: Ubuntu 4.15.0-46.49-generic 4.15.18
Uname: Linux 4.15.0-46-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: LXDE
Date: Sun Mar 24 09:37:58 2019
EcryptfsInUse: Yes
InstallationDate: Installed on 2018-06-11 (285 days ago)
InstallationMedia: Lubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
SourcePackage: zram-config
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dima (dima2017) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zram-config (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Foster (blfoster) wrote :

I presume this is referring to the hardcoded calculations
for NRDEVICES and the critical calculation using it:

   mem=$(((totalmem / 2 / ${NRDEVICES}) * 1024))

(There are a few others that perhaps should be more easily
adjusted.) Yes, this also has annoyed me, albeit, to-date,
the hardcoded values seem to be Ok for me on my system.

I'd also like to be able to specify more zram devices;
i.e., have some which are not used for swap. Currently
(without testing) all those created are used for swap,
and it's not possible to create additional devices (but
I suppose one could then swapoff(1) one or more to get
the desired "extra" device(s)?).

Revision history for this message
Brian Foster (blfoster) wrote :

Starting with Disco Dingo (19.04) there is a new package `zram-tools'
which is roughly configurable as per many of the above wishes.

   https://launchpad.net/ubuntu/+source/zram-tools

From eyeballing it, it seems like it should work on earlier releases
(but see caveats below); however, I have not tried.

Some caveats:

1. Have at most one of `zram-config' or `zram-tools' (NOT both) installed.

2. The `zram-tools' defaults are slightly different from `zram-config'.

3. The version of `zram-tools' currently proposed for Eoan E<something> (19.10?)
   has some simple fixes and perhaps should be preferred?

I am currently using 19.04's 0.3.2-1 with Disco Dingo but will probably
switch to using 19.10's (Eoan's) 0.3.2-1-1 on that system to pick up the
above-mentioned configuration fixes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.