I've had a USB stick die on me from evidently too many write cycles. This led me down the path of trying to figure out what tweaks we can do to give my thumb drives a chance of lasting a few years.
This thread: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=8819&p=104096&hilit=cache_pressure#p104096
suggests this in /etc/sysctl.conf
# Economize the SSD
# Strongly discourage swapping (default 60) I've seen 10 as another "low write" option
vm.swappiness = 1
# Don't shrink the inode cache aggressively (default 100)
vm.vfs_cache_pressure = 50
# (default 499)
vm.dirty_writeback_centisecs = 1500
# (default 10)
vm.dirty_ratio = 20
# (default 5)
vm.dirty_background_ratio = 10
This package (laptop-mode) looks promising too:
http://samwel.tk/laptop_mode/faq
And finally an old NSLU2 article on tweaking config files for Etch, some new things in there:
http://www.cyrius.com/debian/nslu2/linux-on-flash/
not really sure what to use and what is depreciated. I really like the log file reductions.
Anyone have any additional tips or thoughts on the above?
This thread: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=8819&p=104096&hilit=cache_pressure#p104096
suggests this in /etc/sysctl.conf
# Economize the SSD
# Strongly discourage swapping (default 60) I've seen 10 as another "low write" option
vm.swappiness = 1
# Don't shrink the inode cache aggressively (default 100)
vm.vfs_cache_pressure = 50
# (default 499)
vm.dirty_writeback_centisecs = 1500
# (default 10)
vm.dirty_ratio = 20
# (default 5)
vm.dirty_background_ratio = 10
This package (laptop-mode) looks promising too:
http://samwel.tk/laptop_mode/faq
And finally an old NSLU2 article on tweaking config files for Etch, some new things in there:
http://www.cyrius.com/debian/nslu2/linux-on-flash/
not really sure what to use and what is depreciated. I really like the log file reductions.
Anyone have any additional tips or thoughts on the above?