Utilize zram built-in multi-threading, config file and /tmp mounting

Bug #1548424 reported by Eugene San
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
zram-config (Ubuntu)
Confirmed
Undecided
Unassigned
zram-tools (Debian)
New
Unknown
zram-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I would like to propose the following changes (lp:~eugenesan/+junk/zram-config):

 Utilize zram built-in multi-threading, config file and /tmp mounting

     * Rework scripts to Utilize built-in zram multi cpu support
     * Add support for /tmp mounting on zram device
     * Introduce defaults file for setting parameters
     * Rename scripts and install them to /sbin

Tags: patch
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
Mantas Kriaučiūnas (mantas) wrote :

Thanks for RAM SWAP improvements, Eugene :)

Now zram-config is even more useful for devices with SSD/Flash storage - until Eugene improved zram-config I've used tmpfs for /tmp in computers with SSD/Flash storage, but zram is better for /tmp, right? ;)

P.S. I copied zram-config 0.6 from ppa:eugenesan/ppa to main Baltix GNU/Linux repository - ppa:baltix-members/ppa , look at
https://launchpad.net/~baltix-members/+archive

Revision history for this message
silviop (far5893) wrote :
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Dear Ubuntu developers, zram-config was greatly improved by "Eugene San" 2 years ago (2016-02-22), what could I do to see these improvements in Ubuntu 18.04 (Bionic) LTS ?

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Dear Eugene San, could you fix important bug in your zram-config branch lp:~eugenesan/+junk/zram-config ?

zram-config.service starts too late, because of this using zram for /tmp and other system folder prevents from starting GDM and some other services in Ubuntu 18.04

Problem can be solved by adding these lines to /lib/systemd/system/zram-config.service

[Unit]
After=local-fs.target
Before=sysinit.target

[Install]
WantedBy=sysinit.target

I'm attaching a patch for zram-config 0.6

See bug #1761740 for more info.

tags: added: patch
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fixed startup config (zram-config.service) for systemd" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

Revision history for this message
Eugene San (eugenesan) wrote :

Compatibility issue with GDM on Ubuntu 18.04 was fixed in zram-config version 0.7

Updated code and packages can be found at:
https://git.launchpad.net/~eugenesan/+git/zram-config
https://code.launchpad.net/~eugenesan/+recipe/zram-config-ppa

Changed in zram-tools (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in zram-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Oibaf (oibaf) wrote :

It looks like this was at least partly addressed in 0.7, available since Ubuntu 22.04/jammy, see https://launchpad.net/ubuntu/+source/zram-config/+changelog

Revision history for this message
Eugene San (eugenesan) wrote (last edit ):

@oibaf
ZRAM driver now supports multi-threading automatically so if all you are interested in is multi-threading , you can use official version.

For those who want additional features like /tmp and performance optimizations feel free to use my version of zram-config ( https://git.launchpad.net/~eugenesan/+git/zram-config ) available at https://code.launchpad.net/~eugenesan/+recipe/zram-config-ppa or by adding ppa:eugenesan/ppa.

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.