Support for zram (Linux >2.6.36) and ramzswap(<2.6.35) is missing

Bug #665785 reported by Eugene San
60
This bug affects 14 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Binary package hint: initramfs-tools

Support for zram (Linux >2.6.36) and ramzswap(<2.6.35) is missing in late versions.

Patch with solution attached.

Tags: patch
Revision history for this message
Eugene San (eugenesan) wrote :
Changed in initramfs-tools (Ubuntu):
status: New → Fix Committed
tags: added: patch
Changed in initramfs-tools (Ubuntu):
status: Fix Committed → New
Martin Hamrle (hamrle)
Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Eugene San (eugenesan) wrote :

Hi,

I've re-based my modifications to initramfs-tools-0.98.8ubuntu3
Now it supports:
* ramzswap for Linux 2.6.32
* ramzswap for Linux 2.6.35
* zram for Linux 2.6.38
Maybe also versions in the middle.

Colin:
Your attempt to avoid creation of dynamic initramfs script wasn't successful since udev do not support quotation inside RUN command.

Changed in initramfs-tools (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

In today's daily build Ubiquity had /dev/zram0 as a default device to install the OS. WTF?!

Also, I've put together a zram-based swap that automatically scales across several CPUs and automatically adapts to the amount of RAM available. It's based on upstart instead of initramfs, and seems to work fine for me. I haven't tested package upgrade though, so it might be buggy. You can find the code at lp:~elementaryos/elementaryos/zramswap-enabler

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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