Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling Zram support should disable Zswap #1493

Closed
Dungeonseeker opened this issue Sep 27, 2022 · 4 comments
Closed

Enabling Zram support should disable Zswap #1493

Dungeonseeker opened this issue Sep 27, 2022 · 4 comments

Comments

@Dungeonseeker
Copy link

According to the Arch Wiki, when using Zram you have to disable Zswap since it is enabled by default in the Linux Kernel.

See - https://wiki.archlinux.org/title/Improving_performance#zram_or_zswap

Since it is enabled by default, disable zswap if you decide to use zram to avoid zswap acting as a swap cache in front of it. Having both enabled also results in incorrect zramctl(8) statistics as zram remains mostly unused; this is because zswap intercepts and compresses memory pages being swapped out before they can reach zram.

Thought I'd bring it up since archinstall uses Zram for swap by default.

@spaceoden
Copy link

Check the .conf file(s) in /boot/loader/entries/. Is zswap.enabled=0 among the kernel parameters? If so, archinstall is successfully disabling zswap.

@Dungeonseeker
Copy link
Author

Check the .conf file(s) in /boot/loader/entries/. Is zswap.enabled=0 among the kernel parameters? If so, archinstall is successfully disabling zswap.

I'm using grub but the answer is no, I had to add it manually.

@codefiles
Copy link
Contributor

codefiles commented Oct 8, 2022

Added a commit in #1517 to fix this for GRUB.

This was original reported in #881 and was fixed for only systemd-boot in #883.

I'll add a fix for this in add_efistub_bootloader() in a pull request I'm doing for that.

@svartkanin
Copy link
Collaborator

This should be fixed now

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

No branches or pull requests

4 participants