3 ms·
I'd like to see a proper quantitative analysis done on this subject. When you take money into account, are SSDs really worth it, or should I just buy more RAM?
by akamaka 17y ago
I'd like to see a proper quantitative analysis done on this subject.
When you take money into account, are SSDs really worth it, or should I just buy more RAM?
- cottsak 17y agoFor now, i'd say just buy more ram. Basecamp apparently serve 100% of their data from memory.
- sokoloff 17y agoIf you haven't already maxed the RAM on the server in question, that's generally the first step. When (the active working set) of your DB is much larger than the RAM your server can support, either get a bigger server or put heavy random IO loads on SSDs. You're asking it as an A-xor-B when it's really a case of A-then-B.
- easp 17y agoProperly, Flash is another tier in the storage hierarchy. Faster than disk in important measures, but more expensive. Slower than RAM, but cheaper, lower power, and durable. Unfortunately, the infrastrucure for taking easy advantage of Flash isn't very mature yet. SSDs make flash act like a hard disk, but OSs and applications generally don't allow transparent fined-grained data management to take advantage of it. I guess ZFS is best in this regard, since it can migrate hot data to fast devices, but I haven't seen good options on Linux, and I haven't seen hardware RAID controllers that could fill the gap. In your DB, you can place tables on different devices, or use table partitioning to separate recent data from cold, but that isn't as easy as adding more RAM. Ultimately though, cost effectiveness really depends on your workload. MySpace is apparently finding it cost effective to use SSDs for their cache tier. A few months back James Hamilton linked to a study that suggested that for some common workloads, the case for SSDs had to include both price/performance and performance/watt, since it didn't pencil out for each individually. That'll change though, as prices drop and performance improves.