[GH-ISSUE #51] Zswap enabled by default - Could give a bit more reliability with more tabs #46

Open
opened 2026-03-03 11:13:40 +03:00 by kerem · 7 comments
Owner

Originally created by @andiohn on GitHub (Oct 16, 2024).
Original GitHub issue: https://github.com/debloper/xiosk/issues/51

Add these to the cmdline.txt when installing.

zswap.enabled=1 zswap.compressor=lz4 zswap.zpool=z3fold

This will allow compressable objects to be compressed and stored compressed in ram. On a raspberry pi 3, it shouldn't effect performance much at all. It's actually recommended by Ubuntu. See this:

https://www.cnx-software.com/2022/01/13/ubuntu-22-04-zswap-raspberry-pi-4-2gb-ram/

I'm going to try it to see if my once a day reboot will still be ok. Right now I have a video file within a website and it doesn't last the day right now.

Originally created by @andiohn on GitHub (Oct 16, 2024). Original GitHub issue: https://github.com/debloper/xiosk/issues/51 Add these to the cmdline.txt when installing. zswap.enabled=1 zswap.compressor=lz4 zswap.zpool=z3fold This will allow compressable objects to be compressed and stored compressed in ram. On a raspberry pi 3, it shouldn't effect performance much at all. It's actually recommended by Ubuntu. See this: https://www.cnx-software.com/2022/01/13/ubuntu-22-04-zswap-raspberry-pi-4-2gb-ram/ I'm going to try it to see if my once a day reboot will still be ok. Right now I have a video file within a website and it doesn't last the day right now.
Author
Owner

@andiohn commented on GitHub (Oct 16, 2024):

Here's more details: https://github.com/MichaIng/DietPi/issues/6205

<!-- gh-comment-id:2417573252 --> @andiohn commented on GitHub (Oct 16, 2024): Here's more details: https://github.com/MichaIng/DietPi/issues/6205
Author
Owner
<!-- gh-comment-id:2417574432 --> @andiohn commented on GitHub (Oct 16, 2024): https://www.reddit.com/r/linux/comments/11dkhz7/zswap_vs_zram_in_2023_whats_the_actual_practical/
Author
Owner
<!-- gh-comment-id:2417583085 --> @andiohn commented on GitHub (Oct 16, 2024): https://linuxcommunity.io/t/raspberry-pi-performance-add-zram-and-these-kernel-parameters/818
Author
Owner

@andiohn commented on GitHub (Oct 16, 2024):

Here's some more reading. https://ikarus.sg/using-zram-to-get-more-out-of-your-raspberry-pi/
This one was very informative.

<!-- gh-comment-id:2417585725 --> @andiohn commented on GitHub (Oct 16, 2024): Here's some more reading. https://ikarus.sg/using-zram-to-get-more-out-of-your-raspberry-pi/ This one was very informative.
Author
Owner

@andiohn commented on GitHub (Oct 16, 2024):

Ok, so enabling it on a 4GB pi 3 immediately makes it more responsive. I did the top command.

zswap.enabled=1
zswap.compressor=lz4
zswap.zpool=z3fold

<!-- gh-comment-id:2417791212 --> @andiohn commented on GitHub (Oct 16, 2024): Ok, so enabling it on a 4GB pi 3 immediately makes it more responsive. I did the top command. zswap.enabled=1 zswap.compressor=lz4 zswap.zpool=z3fold
Author
Owner

@debloper commented on GitHub (Oct 19, 2024):

Thanks, I can't verify this myself (don't have a Pi3 or other lower powered RPi at hand), but I realize how this can give a performance boost for them.

This would be a toggle on the dashboard in the next release, for anyone who want to opt-in.

<!-- gh-comment-id:2424096184 --> @debloper commented on GitHub (Oct 19, 2024): Thanks, I can't verify this myself (don't have a Pi3 or other lower powered RPi at hand), but I realize how this can give a performance boost for them. This would be a toggle on the dashboard in the next release, for anyone who want to opt-in.
Author
Owner

@andiohn commented on GitHub (Nov 29, 2024):

The bottom guy has more details here on an updated method for zswap and log2ram as well.

https://ikarus.sg/reduce-sd-card-wear-on-your-raspberry-pi-with-zram-config/

I think it'd be worth figuring out how we'd like this implimented because it will probably help keep these systems running longer without messing about.

<!-- gh-comment-id:2508623197 --> @andiohn commented on GitHub (Nov 29, 2024): The bottom guy has more details here on an updated method for zswap and log2ram as well. https://ikarus.sg/reduce-sd-card-wear-on-your-raspberry-pi-with-zram-config/ I think it'd be worth figuring out how we'd like this implimented because it will probably help keep these systems running longer without messing about.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/xiosk#46
No description provided.