This version fixes handling of mount paths that needs escaping, and enables "discard" for mounts of zram devices to release unused memory.

When only used for swap devices (99% of installations), it has no significant changes.

How to install

sudo dnf upgrade --refresh --advisory=FEDORA-2021-82a48ba538

This update has been submitted for testing by zbyszek.

10 months ago

This update's test gating status has been changed to 'failed'.

10 months ago

This update's test gating status has been changed to 'waiting'.

10 months ago

This update's test gating status has been changed to 'failed'.

10 months ago
User Icon atim commented & provided feedback 10 months ago
karma

No zram swap after update. Default config and always was.

User Icon zbyszek commented & provided feedback 10 months ago

@atim: are you sure that you had the -3 version? The earlier one was busted, but this one should be fine.

User Icon atim commented & provided feedback 10 months ago
karma

@zbyszek thanks, got old one broken version with updates and no issue in -3 version.

BZ#2017015 rust-zram-generator-1.0.1 is available
User Icon clnetbox commented & provided feedback 10 months ago
karma

No swap after upgrading to version 1.0.1-3.fc35 ... downgrading to version 0.3.2-5.fc35 brings swap back.

$ journalctl | grep zram
Okt 27 10:19:46 cl-fs-01 kernel: zram: Added device: zram0
Okt 27 10:19:46 cl-fs-01 systemd[1]: Created slice Slice /system/systemd-zram-setup.
Okt 27 10:19:47 cl-fs-01 systemd[1]: Found device /dev/zram0.
Okt 27 10:19:47 cl-fs-01 systemd[1]: Starting Create swap on /dev/zram0...
Okt 27 10:19:47 cl-fs-01 zram-generator[826]: Error: /systemd-makefs call failed for /dev/zram0
Okt 27 10:19:47 cl-fs-01 zram-generator[826]: Caused by:
Okt 27 10:19:47 cl-fs-01 zram-generator[826]:     No such file or directory (os error 2)
Okt 27 10:19:47 cl-fs-01 kernel: zram0: detected capacity change from 0 to 16777216
Okt 27 10:19:47 cl-fs-01 systemd[1]: systemd-zram-setup@zram0.service: Main process exited, code=exited, status=1/FAILURE
Okt 27 10:19:47 cl-fs-01 systemd[1]: systemd-zram-setup@zram0.service: Failed with result 'exit-code'.
Okt 27 10:19:47 cl-fs-01 systemd[1]: Failed to start Create swap on /dev/zram0.
Okt 27 10:19:47 cl-fs-01 systemd[1]: Dependency failed for Compressed Swap on /dev/zram0.
Okt 27 10:19:47 cl-fs-01 systemd[1]: dev-zram0.swap: Job dev-zram0.swap/start failed with result 'dependency'.  

This update's test gating status has been changed to 'passed'.

10 months ago
User Icon zbyszek commented & provided feedback 10 months ago

@clnetbox: are you sure that you are using -3 version? Your log shows the error that was fixed in that version.

User Icon clnetbox commented & provided feedback 10 months ago

@zbyszek Yes, I am sure - I installed version 1.0.1-3.fc35 by running sudo dnf upgrade --enablerepo=updates-testing

User Icon zbyszek commented & provided feedback 10 months ago

This update is still in the state pending, so it is not available through updates-testing repo. You would have to download it directly from koji to install.

User Icon clnetbox commented & provided feedback 10 months ago
karma

@zbyszek Sorry, my bad ... you are right ! I downloaded version 1.0.1-3 and rebooted - now it works. Thank you :)

User Icon geraldosimiao commented & provided feedback 10 months ago
karma

Tested here and swap on zram is fine again.

BZ#2017015 rust-zram-generator-1.0.1 is available
BZ#2017497 Failed to start Create swap on /dev/zram0 with zram-generator-1.0.1-1.fc35

This update has been submitted for stable by bodhi.

10 months ago
karma
BZ#2017497 Failed to start Create swap on /dev/zram0 with zram-generator-1.0.1-1.fc35
User Icon rathann commented & provided feedback 10 months ago
karma

Indeed, -1 build is broken, but -3 works.

BZ#2017015 rust-zram-generator-1.0.1 is available
BZ#2017497 Failed to start Create swap on /dev/zram0 with zram-generator-1.0.1-1.fc35

This update has been submitted for testing by kalev.

10 months ago

This update has been pushed to testing.

10 months ago

This update has been submitted for stable by bodhi.

10 months ago

This update has been pushed to stable.

10 months ago

Please login to add feedback.

Metadata
Type
unspecified
Karma
5
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
14 days
Dates
submitted
10 months ago
in testing
10 months ago
in stable
10 months ago
BZ#2017015 rust-zram-generator-1.0.1 is available
0
3
BZ#2017497 Failed to start Create swap on /dev/zram0 with zram-generator-1.0.1-1.fc35
0
3

Automated Test Results

Test Cases

0 0 Test Case SwapOnZRAM buildwkgtk
0 0 Test Case SwapOnZRAM customconfig
0 0 Test Case SwapOnZRAM disable
0 0 Test Case SwapOnZRAM hibernation
0 0 Test Case SwapOnZRAM install
0 2 Test Case SwapOnZRAM install and enable
0 0 Test Case SwapOnZRAM stop