Live data from Hacker News

Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?

news.ycombinator.com

1–10 of 20 posts

Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?

#1
Linux filesystems usually do lot of read and write on storage eg. hhd and ssd. On the other hand SSD are getting cheaper but give a less TBW per capacity. So which Linux FS is doing less writes (write amplification) on SSD? EXT3, EXT4, XFS, BTRFS, F2FS ...? Linux OS is for desktop use!

Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?

#5
I 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 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?

#6
I 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.

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?

#7
post #5

I 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…

Funny story: almost three years ago I got a second hand thinkPad T440. It came with a 240GB ssd. A second hand laptop with an used ssd inside.

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?

#8
post #6

I 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)

Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?

#9
Now a days China is working on Robots served for Humanity and Madical some of them are work online commands. Chaina is useing Internet Supply from local areas but to check the accuracy they are using https://www.speedput.com/ ptcl speed test and 100% of accurate result

Re: Ask HN: Which Linux filesystem “produce” less wear and tear on SSD NAND?

#10
post #8
post #6

I 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)

Auditd would show frequency, the process name and uid that did the write, and when, etc. Last modified time isn't always enough.
Post reply on HN