Using tmpfs tricks to reduce SD card writes
I would be interested to know if and how others have used tmpfs to reduce frequency of writes to their SD cards, the idea being to maybe prolong SD card life by writing a lot of logs and stuff that doesn't need to persist to RAM.
/var/log is an obvious candidate to mount on tmpfs, but up to slackware 14.2 package management depends on a couple of directories in /var/log. I've mounted /var/log on tmpfs and have a bunch of symlinks made on boot in rc.local to new directories in /usr/local/var/log from /var/log/packages (.../removed_packages, /scripts, /removed_scripts, /setup). So far it's worked well, and left me with a useable amount of RAM. With CLEANUP:-YES in sbopkg.conf and judicious removal of built trees and packages, building sessions into a /tmp mounted on large tmpfs also work. Anything else? Source caches, browser caches &c.? |
Quote:
Anyway, another thing you can do is using something like Code:
commit=60 To save up some memory you may wanna look up zswap |
As far as I know, this is the documentation on "Patrick moved that stuff":
https://www.linuxquestions.org/quest...6/#post5870498 |
Whoa, right! :D
Thank you for the update and for the tips on zswap and commit=XX |
Quote:
Some SD cards that I've been using for years on RPi build systems are still going strong. I only use branded, high quality, SD cards. So perhaps that makes a difference towards longevity. |
Quote:
|
All times are GMT -5. The time now is 06:30 PM. |