Linux – Is Flash Drive Wear a Significant Issue?

filesystemshard drivelinux

My netbook has a flash drive instead of a hard disk drive, and I'm using Ubuntu Netbook Remix with ext3 as the file system. I've read some articles concerning flash drive wear, and the main concerns seem to be:

  1. The amount of write cycles – each cell can be written to only a limited amount of times (Wikipedia has numbers ranging from 1,000 to 100,000)
  2. You can only write data on a "sector" once, and after that the whole block needs to be erased to use again – and these blocks are ranging from 16 KB to 128 KB.

These are said to add up so that normal file systems that aren't designed to take this into account end up using wearing out the flash drive by moving small amounts of data.

Now I don't doubt that the problem is theoretically very real. However, I know we tech people get easily carried away by interesting optimization problems, such as designing an alternative file system to combat flash wear. For example it's great to do memory optimization, but if you end up saving 100 KB of memory when there's hundreds of MB available anyway, it's not fixing a real problem.

What I end up getting from all this, is that I shouldn't use normal file systems on flash drives because they quickly eat up the drive. But I'm not convinced. So the question is: Is flash drive wear actually relevant in everyday, normal usage? Is my laptop, using ext3, going to eat up my flash drive in few years… or is all of this rather a theoretical problem that does reduce the usage time, but only by so little that it'll never happen in normal conditions? Or is transparent, hardware wear leveling already being used on netbook flash drives to fix the problem, so that an alternative file system wouldn't even do any good?

Sources: (1), (2), (3), (4), (5), (6)

Best Answer

Generally speaking, Flash drive wear and tear is always brought up (SSD and USB) However, I haven't seen it.

I have personally found that cheap USB Flash drives for example go faulty and simply do not get recognised well before you actually see wear and tear.

Also, newer drives use technologies that randomise the locations of writes. I suppose, lets say you have a 100 GB drive and fill it up with 99.5 GB's, then you keep using .5 GB over and over again, you can reach the limit, but again, I use SSDs and USB sticks on a daily basis for very heavy use (over the past few years) and generally speaking, the drives die of general failures well before you see this as a problem.

No Experience with alternative File Systems, However I personally wouldn't bother... Use a mature file system and if it fails within a usable time, take it back under warranty. (if in the UK, up to ~6 years under the sale of goods act as you can say it was designed with a fault and not fit for the purpose of storing data... I am not a lawyer, but I took a laptop back 4 years after buying for a similar reason).

Also, for Windows just maybe worth a look in, I remember seeing a product from Diskeeper, that looks interesting - meant to optimise and extend the life of SSD disks, but I am wondering if it is needed and found several articles doubting it (only linked to one) and goes in to detail about wear and tear. Also, I can not longer see the product on their website, so it must of either been scrapped or built into a different edition.

Related Question