Repository navigation
fix(zram): restore aarch64 reclaim tunings the settings package stripped - #490
Open
nickdumitru wants to merge 1 commit into
Open
nickdumitru wants to merge 1 commit into
nickdumitru wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #422.
What's wrong
The aarch64
omarchy-settingsPKGBUILD rewrites/etc/sysctl.d/99-omarchy-sysctl.confdown tonet.ipv4.tcp_mtu_probing=1, on the assumption that ARM has no zram. That is no longer true: migrations1787669934/1789246530and fresh ARM setup enable zram.This Air (and the machine in #422) then runs
/dev/zram0at disk-swap kernel defaults:vm.swappinessvm.page-cluster1784961000already ransysctl -pon 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, whichomarchy-settingsdoes not own:install/helpers/zram.shwrites the drop-in (no clobber if the dest already exists)1789959833.shrepairs existing ARM machines that already have zramNot 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
fresh ARM setup writes zram reclaim tuningstest/shell.d/zram-sysctl-migration-test.sh, plus existing zram-fresh-install / zram-package / zram-migration suites