debloper / piosk

One-shot set up Raspberry Pi in kiosk mode as a webpage shuffler, with a web interface for management.
Mozilla Public License 2.0
69 stars 5 forks source link

Zswap enabled by default - Could give a bit more reliability with more tabs #51

Open andiohn opened 1 day ago

andiohn commented 1 day ago

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 1 day ago

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

andiohn commented 1 day ago

https://www.reddit.com/r/linux/comments/11dkhz7/zswap_vs_zram_in_2023_whats_the_actual_practical/

andiohn commented 1 day ago

https://linuxcommunity.io/t/raspberry-pi-performance-add-zram-and-these-kernel-parameters/818

andiohn commented 1 day ago

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 1 day ago

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