Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?
1–10 of 20 posts
Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?
#2Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?
#3See https://wiki.archlinux.org/index.php/Improving_performance#R...
Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?
#4Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?
#5I would focus on mount options that limit writing (e.g., relatime/noatime) or putting ~/.cache on tmpfs.
In my experience ~/.cache gets the most frequent writing during normal desktop usage. A lot of applications ignore XDG standards and create their own snowflake folder directly in $HOME. You might want to watch for and replace those making a lot of writes with a symlink to where they belong. (This quickly became a frustrating battle that I lost).
Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?
#6Auditd, can, for example, track every write. Track it over a good sample period of typical use, then make whatever changes are needed. Might be database tuning, moving specific files to tmpfs, changing the way you do backups, reducing writes to syslog, changing fs mount options, etc.
Auditd is a little complex, but it's fairly easy to find write-ups on how to monitor writes and generate use reports.
Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?
#7I have two laptops with SSDs running only Linux, and they both have mostly been powered on for two years or more (XFS and BTRFS). Both are still operating normally and smartctl shows minimal wear. I would focus on mount options that limit writing (e.g., relatime/noatime) or putting ~/.cache on tmpfs. In my experience ~/.cache gets the most frequent writing during normal desktop usage. A lot of applications ignore XDG…
At the time I didn't have much money so I just kept the drive and decide to possibly face the issue.
I still use it, of course (it's my personal laptop).
Some days ago I switched to root and noticed a dead.letter file in root's home directory.
I examined the file and it was an email dropped into the home directory by smartd, alerting me that my hard drive was near failure.
The funny thing is, that email was from February 2018. More than two years since that email, that drive is still working.
Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?
#8I think you would get more mileage out of tracking where all the writes are, and making whatever changes are needed to reduce them. Auditd, can, for example, track every write. Track it over a good sample period of typical use, then make whatever changes are needed. Might be database tuning, moving specific files to tmpfs, changing the way you do backups, reducing writes to syslog, changing fs mount options, etc. Aud…
find / -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort
(you probably want to add -mount in there too and use find per each mount point separately)Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?
#9Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?
#10I think you would get more mileage out of tracking where all the writes are, and making whatever changes are needed to reduce them. Auditd, can, for example, track every write. Track it over a good sample period of typical use, then make whatever changes are needed. Might be database tuning, moving specific files to tmpfs, changing the way you do backups, reducing writes to syslog, changing fs mount options, etc. Aud…
You can just use the find command for tracking writes, for example: find / -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort (you probably want to add -mount in there too and use find per each mount point separately)