top | item 42643553

(no title)

JeremyBarbosa | 1 year ago

RAMFS is a genius idea. That solves most of the SD card health and speed issues without needing to get a whole hard drive. I know Puppy[0] and MX Linux[1] were made to run like that too.

[0] https://puppylinux-woof-ce.github.io/ [1] https://mxlinux.org/

discuss

order

alias_neo|1 year ago

I used to run a Pi as a Wireguard entrypoint to my home network, I made the filesystem read-only and created a RAM disk and moved logs and any other writes to it to protect the longevity of the uSD, it had the added benefit of security of a read-only FS. I'd remount it r/w occasionally and run updates. It ran flawlessly for years (at a time when I was killing a Sandisk uSD in Pis roughly once per week) until I decommissioned it.

zikduruqe|1 year ago

I've been running a public facing weather website on my RPi2 since 2014. I am still on the same SD card since all HTML assets and logs are on tmpfs. The only thing being written to the SD card are entries to the DB once every 5 minutes.

unglaublich|1 year ago

Your kernel will already cache all IO in memory.

You can decrease the to-disk syncing to e.g. once per day.

```sysctl.conf vm.dirty_writeback_centisecs = 86400000 ```

eGQjxkKF6fif|1 year ago

Thanks for this information. That's actually really helpful for me to know in my server administration dealings. I _hate_ disk IO and disk thrash. I was aware of kernel stuff but completed eluded me that I could modify it. I put it to 7200

JeremyBarbosa|1 year ago

Good point, but I was more talking about distros designed for a smooth day-to-day experience. A user would probably want something like SquashFS (to save space on the SD card) and ZRAM (to conserve RAM) since all their files would be living there.