F45 Change Proposal: Enable systemd-oomd and zram swap for CoreOS (self-contained)

Enable systemd-oomd and zram swap for CoreOS

This is a proposed Change for Fedora Linux.
This document represents a proposed Change. As part of the Changes process, proposals are publicly announced in order to receive community feedback. This proposal will only be implemented if approved by the Fedora Engineering Steering Committee.

Wiki
Announced

:link: Summary

Enable systemd-oomd.service and swap on zram by default to align Fedora CoreOS with other Fedora variants.

:link: Owners

:link: Detailed Description

Enable systemd-oomd.service and swap on zram in CoreOS by default as it’s done in other Fedora variants. This was historically disabled because Kubernetes was not compatible with swap on nodes until recently (provision-swap-memory). As CoreOS targets container workloads it made sense to aim for a better kubernetes experience.

Note that this will not only affect new installs, but also existing running nodes. See more discussion in systemd-oomd for Fedora CoreOS · Issue #840 · coreos/fedora-coreos-tracker · GitHub and Revisit enabling swap on zram by default · Issue #859 · coreos/fedora-coreos-tracker · GitHub

:link: Feedback

The change author (Nemric) have been using swap on zram since years now, and kubernetes is working great with that. He also enabled systemd-oomd.service months ago without issues with the following kubelet config:

apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
failSwapOn: false
memorySwap:
  swapBehavior: LimitedSwap

:link: Benefit to Fedora

That will reduce the CoreOS configuration as we would simply inherit what’s default in Fedora. This is a reduction in maintenance work.

:link: Scope

  • Proposal owners:
    • Remove the overrides from the config
    • Write a release-notes entry detailing the change.

:link: Upgrade/compatibility impact

This change will affect all nodes then, take care of apps that won’t accept swap as default behavior like kubernetes see Feedback

:link: How To Test

see QA:Testcase CoreOS swap on zram - Fedora Project Wiki

:link: User Experience

:link: Contingency Plan

Disable the service in the next release and ship a migration script to turn it off for nodes that were deployed with the service active.

:link: Release Notes

Last edited by @amoloney 2026-07-20T14:08:51Z

Last edited by @amoloney 2026-07-20T14:08:51Z

1 Like

How do you feel about the proposal as written?

  • Strongly in favor
  • In favor, with reservations
  • Neutral
  • Opposed, but could be convinced
  • Strongly opposed
0 voters

If you are in favor but have reservations, or are opposed but something could change your mind, please explain in a reply.

We want everyone to be heard, but many posts repeating the same thing actually makes that harder. If you have something new to say, please say it. If, instead, you find someone has already covered what you’d like to express, please simply give that post a :heart: instead of reiterating. You can even do this by email, by replying with the heart emoji or just “+1”. This will make long topics easier to follow.

Please note that this is an advisory “straw poll” meant to gauge sentiment. It isn’t a vote or a scientific survey. See About the Change Proposals category for more about the Change Process and moderation policy.

This change proposal has now been submitted to FESCo with ticket [#3661](Making sure you're not a bot!) for voting.

To find out more, please visit our [Changes Policy](Making sure you're not a bot!) documentation.