I have been told that you can get a longer lifespan of an SSD if you buy a bigger capacity SSD. The reasoning goes that newer SSDs have wear leveling and thus should sustain the same amount of writing whether you spread this writing on the (logical) disk or not. And if you get an SSD that is twice the size of what you need, then you have twice the capacity to do wear leveling on.
Is there any truth to that?
This is true, and it was one of the key motivation to backing the switch from SLC (fast and durable flash cells, but small capacity) to MLC (slower and less durable flash cells, but bigger capacity). To give you some ballpark numbers (on old 34nm tech):
As you can see, while the MLC drive as less than 1/3 the P/E endurance, due to its bigger size, its total endurance (in Terabyte Written) is 60% of the SLC drive (rather than the expected 30%). An even higher endurance can be achieved with sufficient overprovisioning, bringing relative parity between the two disks.
That said, SSDs rarely die due to NAND wear. Rather, controller and FLT (flash translation layer) bugs are what kill, or brick, flash-based solid state drives. Choosing an SSD, I would put a priority on these things:
SSDs wear out when you use up their block erase cycles. Each block can only be erased so many times. Larger SSDs have more blocks, so that means more block erase cycles. All other things being equal, you can write twice as many TB to a 1TB SSD as you can to a 512GB SSD before it wears out.
Frankly, I wouldn't buy a bigger SSD to get a longer life though. A bigger SSD will cost more. And it's quite likely that you'd prefer to replace that SSD with a newer, bigger, faster, cheaper one when it wears out. Actually reaching the wear out point of a modern SSD takes a long time under most realistic use patterns.
Yes, larger SSDs have higher endurance.
There's a couple of factors involved here, and it's not as simple as it appears:
For most consumer or client workloads, endurance isn't generally something you need to worry about, unless you write lots of data to the drive on a daily basis. However, if you're buying a drive for datacenter workloads like OLTP or databases, then you'll need to pay attention to the endurance ratings, determine how much I/O you expect to put on the drive, and select drives that meet your requirements.
I did a rather large SSD qualification a few years ago for the database fleet of a video website you may have used today. Static Wear leveling wasn't around at the time so I overprovisioned. (manually set max lba to 80% of the drive size). This avoided the pathological edge case where the drive filled up and could not perform wear leveling. People are now mentioning that static wear leveling can avoid that problem. I haven't dug into this, but I'd guess that then you'll want to avoid filling up the drive.
If your choice is between
Go with option 2. Buy from a known manufacturer and plan to not fill it up. I'd just go 20%-50% larger than I know I'll need.
In my qual, my no-name drives failed spectacularly and quite often (controller crashes, total controller failure, drive showing up as 1mb instead of real drive size). After deployment only one drive experienced noticeable NAND wear-out (in a high write production environment with thousands of drives). Drives with the Sanforce controller performed best. Drives with Intel NAND were the gold standard.
This is definitely true. The reason for this is because bigger SSDs have more “area” to spread the wear over. Since bigger SSDs have more “blocks” to use, each block doesn’t get used as much. Like if you had 10 cars instead of 1, and you drive a different car every day, each one would take longer to need oil changes and such.
That's definitely true.
Also be aware those devices (typically) work better (faster and with lower write amplification, which is the ratio between what you write and the amount of data actually written in the NAND) when they have enough free space (typically 10%, more is better).
As others suggested, the money you save buying what you really need will let you buy a bigger and faster SSD sooner since price per terabyte falls over time.
This is true, however to really maximize SSD durability, you must choose professional series which allow you to explicitly reduce the available capacity to augment durability. That's why professional SSDs are listed with a range of FWPD values.
The actual underlying value that you care about is not the disk size but rather its TBW (TerraBytes Written). The guarantee by the vendor is either in TBW or in WPD (Writes Per Day) for a period of time (usually 5 years). The two are interchangeable as TBW=DiskSizeInTB*WPD*5*365.
When a disk is specified with WPD you can have a disk of 1TB with 0.3WPD or a 0.1TB with 10WPD. The smaller disk has a TBW of 1825 and the larger disk has TBW of 547 so the smaller disk has more endurance.
You really want to know what you expect to be the worst case of your usage in terms of TBW and see that the disk holds itself against that with some spares.
TL;DR: Disk size is not full measure of endurance, look or calculate TBW measure and use that for your endurance.