Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Most writes are the logs, I use log2ram [1], it reduces SD writes substantially.

[1] https://github.com/azlux/log2ram



Or for those using journald, use Storage=volatile in /etc/systemd/journald.conf and then `systemctl force-reload systemd-journald`. Remove /var/log/journal to get rid of the old persisted logs.


Busybox's syslog logs to RAM by default. And it can be built with runit requiring no systemd if the distribution was built for this. Also Alpine Linux runs out of RAM entirely by default. Too bad RAM is constrained on these devices and I haven't been able to make it load g_serial in Alpine for the USB gadget console on the OTG port. I used a Pi Zero W.


Thx! Looks like just what I need.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: