Skip to content

[EMB-320] Enable config options for ZRAM#220

Merged
bryanfoley merged 2 commits intomaster/imx8from
EMB-320-use-zram
Mar 31, 2026
Merged

[EMB-320] Enable config options for ZRAM#220
bryanfoley merged 2 commits intomaster/imx8from
EMB-320-use-zram

Conversation

@bryanfoley
Copy link
Copy Markdown
Contributor

@bryanfoley bryanfoley commented Mar 27, 2026

Description

This PR enables kernel configuration options related to ZRAM, allowing ZRAM to be built and configured as part of the um-kernel configuration. This makes it possible to use compressed RAM-backed swap (and/or a compressed in-memory block device) on supported targets.

Why

ZRAM can improve system responsiveness under memory pressure by compressing pages in RAM instead of immediately paging out to slower storage. Enabling the relevant config options in the kernel provides the flexibility to turn ZRAM on where it’s beneficial and keep it off where it’s not needed.
What changed

  • Enabled the required ZRAM kernel config options.
  • Enabled/updated supporting options needed for ZRAM operation (e.g., swap and compression-related settings, where applicable).
  • Ensured configuration is applied via the existing kernel config mechanism in this repository.

Impact / Risk

  • Low to moderate risk: kernel config changes only.
  • No behavioral change unless ZRAM is explicitly enabled/used in userspace.
  • Potential impacts are primarily kernel size and feature surface area.

How has this been tested

Currently running on Falcon-34-POC as a long 2 day print job.

Ready for Review Checklist

To help with deciding if this PR is RFR, use this checklist.

The author confirms that:

  • the author has self-reviewed this work and is highly confident about the quality
  • this work satisfies all acceptance criteria that are stated in the linked ticket
  • this work has been tested on all product families and the process and results are documented in the above section
  • The description above is concise yet complete
  • the reviewer has been offered a walkthrough (if needed)
  • the code is cleaned from any rubbish (e.g. meaningless comments, log-spamming, etc...)
  • remaining #TODO comments mention a Jira ticket number
  • all CI checks are passing
  • all commits are (re)structured to be meaningful and clearly arranged, and all are prepended with the ticket number for traceability

@robinmdh robinmdh marked this pull request as ready for review March 31, 2026 10:08
@bryanfoley bryanfoley merged commit 7f9fb71 into master/imx8 Mar 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants