mirror of
https://github.com/debloper/xiosk.git
synced 2026-04-26 21:35:51 +03:00
[GH-ISSUE #51] Zswap enabled by default - Could give a bit more reliability with more tabs #46
Labels
No labels
bug
bug
documentation
enhancement
enhancement
feature request
good first issue
good first issue
help wanted
invalid
priority: high
priority: low
priority: medium
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/xiosk#46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@andiohn commented on GitHub (Oct 16, 2024):
Here's more details: https://github.com/MichaIng/DietPi/issues/6205
@andiohn commented on GitHub (Oct 16, 2024):
https://www.reddit.com/r/linux/comments/11dkhz7/zswap_vs_zram_in_2023_whats_the_actual_practical/
@andiohn commented on GitHub (Oct 16, 2024):
https://linuxcommunity.io/t/raspberry-pi-performance-add-zram-and-these-kernel-parameters/818
@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.
@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
@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.
@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.