Skip to content

Disable zswap on Arch, since zram is enabled.#130

Closed
cvlc12 wants to merge 1 commit intosystemd:mainfrom
cvlc12:arch_disable_zswap
Closed

Disable zswap on Arch, since zram is enabled.#130
cvlc12 wants to merge 1 commit intosystemd:mainfrom
cvlc12:arch_disable_zswap

Conversation

@cvlc12
Copy link
Copy Markdown
Contributor

@cvlc12 cvlc12 commented Jan 2, 2026

Arch has zswap enabled by default, whereas Fedora/Debian don't. So currently, ParticleOS Arch images have both zswap and zram enabled concurrently which the Arch wiki says we shouldn't do.

So we should either disable zswap as per this PR, or alternatively remove zram-generator from default packages on the Arch profile (which might be simpler and closer to distro default ?)

See also #41 (comment)

@cvlc12 cvlc12 force-pushed the arch_disable_zswap branch 2 times, most recently from 9ffdf91 to 2a09e49 Compare January 5, 2026 12:21
@francoism90
Copy link
Copy Markdown

CachyOS also uses zswap.enabled=0. I think indeed this is correct.

@cvlc12
Copy link
Copy Markdown
Contributor Author

cvlc12 commented Jan 14, 2026

Also disabled on Fedora by default since it uses zram

🦸 [root@particle-d96f-2d19 particleos]# uname -r
6.18.0-65.fc44.x86_64
🦸 [root@particle-d96f-2d19 particleos]# cat /sys/module/zswap/parameters/enabled
N

@cvlc12 cvlc12 force-pushed the arch_disable_zswap branch from 2a09e49 to c0d97e0 Compare March 6, 2026 15:13
@p1gp1g
Copy link
Copy Markdown
Contributor

p1gp1g commented Mar 25, 2026

I think it would be better to put zram behind a profile.

I personally prefer to stick with zswap, like Arch does by default, if it was behind a profile it would be easy to configure. I just came across that article that remind me to comment this PR: https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html the author is a kernel dev working on memory management.

@cvlc12
Copy link
Copy Markdown
Contributor Author

cvlc12 commented Mar 27, 2026

I think it would be better to put zram behind a profile.

I personally prefer to stick with zswap, like Arch does by default, if it was behind a profile it would be easy to configure. I just came across that article that remind me to comment this PR: https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html the author is a kernel dev working on memory management.

Closing in favor of #155 which makes more sense.

@cvlc12 cvlc12 closed this Mar 27, 2026
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.

3 participants