In comp.sys.raspberry-pi R.Wieser <addr…@is.invalid> wrote:
> Theo, >
> > If you keep some amount like 10% of the SSD zeroed then the > > controller can use those blocks to improve the wear lifetime > > ('over provisioning').
> > Do you mean unpartitioned, or would something special (zeroed?) be needed ?
'Empty'. When you delete a file, typically filesystems tell the device that the blocks are no longer used (this is called 'TRIM') and it can put them back into the empty block pool. The more empty blocks there are, the more breathing space the SSD has to use when parts of the flash wear out. If you zero blocks, the SSD can also decide they're 'empty'. If you leave parts unpartitioned but still containing data from the last time it was used, the SSD is still contractually obliged to keep the data in case you need it another time and so it can't reallocate them to cover wear. Just making a big file and then deleting it is usually enough to trigger TRIM of the blocks, but also zeroing the SSD and then leaving 10% (or whatever) unpartitioned works too. This can also help with 'performance consistency': if you want to write but the SSD has to do a lot of juggling to find an empty block, maybe erasing and shuffling some other blocks, then you can get erratic performance under heavy load. But that's only really an issue with big write workloads like database servers, not domestic desktop use. Theo