Skip to content

fix(zram): restore aarch64 reclaim tunings the settings package stripped - #490

Open
nickdumitru wants to merge 1 commit into
omacom:quattrofrom
nickdumitru:fix/aarch64-zram-sysctl
Open

nickdumitru wants to merge 1 commit into
omacom:quattrofrom
nickdumitru:fix/aarch64-zram-sysctl

Conversation

@nickdumitru

Copy link
Copy Markdown

Fixes #422.

What's wrong

The aarch64 omarchy-settings PKGBUILD rewrites /etc/sysctl.d/99-omarchy-sysctl.conf down to net.ipv4.tcp_mtu_probing=1, on the assumption that ARM has no zram. That is no longer true: migrations 1787669934 / 1789246530 and fresh ARM setup enable zram.

This Air (and the machine in #422) then runs /dev/zram0 at disk-swap kernel defaults:

sysctl intended actual
vm.swappiness 150 60
vm.page-cluster 0 3

1784961000 already ran sysctl -p on the stripped file, so it cannot repair this.

The change

Do not fight the package-owned sysctl file. Put the vm.* block in /etc/sysctl.d/99-omarchy-zram.conf, which omarchy-settings does not own:

  • install/helpers/zram.sh writes the drop-in (no clobber if the dest already exists)
  • fresh aarch64 setup writes it after ensuring zram config
  • migration 1789959833.sh repairs existing ARM machines that already have zram

Not in this PR

The PKGBUILD still strips 99-omarchy-sysctl.conf. That is fine: the next settings upgrade will not remove this drop-in. oomd remains out of scope.

Testing

  • Red: removing the fresh-install write fails fresh ARM setup writes zram reclaim tunings
  • Green: test/shell.d/zram-sysctl-migration-test.sh, plus existing zram-fresh-install / zram-package / zram-migration suites
  • Astra review: VERDICT PASS

The aarch64 omarchy-settings package rewrites 99-omarchy-sysctl.conf
to tcp_mtu_probing only, but ARM installs still enable zram. Ship the
vm.* tunings in a drop-in that package does not own, on fresh install
and via migration.

This branch has not been deployed

No deployments
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.

aarch64 package strips vm.* zram tunings, but migrations enable zram anyway

1 participant