3 ms·
I love my consumer SSD backed database, but don't get visions of 380,000 IOPS on a real workload quite yet. Like any radical performance increase on just one co
by bcoates 14y ago
I love my consumer SSD backed database, but don't get visions of 380,000 IOPS on a real workload quite yet. Like any radical performance increase on just one component it's more likely to just reveal a non-disk latency bottleneck somewhere else in your system.
Be aware that the performance characteristics of flash are very unlike spinning disks, and vary widely between models. You will see things like weird stalls, wide latency variance, and write performance being all over the place during sustained operations and depending on disk fullness. I chose Intel 520s because they performed better on MySqlPerformanceBlog benchmarks than the then-current Samsung offering [1] and because of OCZ's awful rep [2]. I hit about 5K write IOPS spread across two SSDs before my load becomes CPU-bound, which is nowhere near benchmark numbers but pretty sweet for a sub-$1k disk investment.
It's also my understanding that non-server flash drives like recommended by the article do not obey fsync and are suspect from a ACID standpoint. RAID mirroring does not fix this--if integrity across sudden power loss is critical you might not be able to use these at all and will have to find a more expensive server SSD.
[1] http://www.mysqlperformanceblog.com/2012/04/25/testing-samsung-ssd-sata-256gb-830-not-all-ssd-created-equal/ http://www.mysqlperformanceblog.com/2012/04/25/testing-samsu...
[2] http://www.behardware.com/articles/881-7/components-returns-rates-7.html http://www.behardware.com/articles/881-7/components-returns-...
p.s. the RAM benefits the article mentions are real and potentially huge. My query and insert performance has gone from having heavy RAM scalability issues to it hardly mattering at all. This is all on MariaDB on a non-virtualized server; I'm looking forward to better SSD-tuned databases in the future doing even better.
- jdcryans 14y agoThe "weird stalls" can be attributed to GC on lower end SSDs: http://en.wikipedia.org/wiki/Garbage_collection_(SSD)#Garbage_collection http://en.wikipedia.org/wiki/Garbage_collection_(SSD)#Garbag...
- baruch 14y agoThere are several background operations that happen on ssds, low or high end doesn't matter they all need them. I've seen quite a few supposedly high-end ssds that show abysmal behavior with wide variations in performance across time. SSD qualification is a tedious job. It's not even just about performance of the SSD the other points to care about are non-trivial if you intend to use lots of SSDs for important tasks. I collected some questions to consider at http://disksurvey.org/blog/2012/11/26/considerations-when-choosing-ssd-storage/ http://disksurvey.org/blog/2012/11/26/considerations-when-ch...
- zokier 14y agoAnandtechs recent article on SSD IOPS consistency touches on this topic, and has some links for further info: http://www.anandtech.com/show/6489/playing-with-op http://www.anandtech.com/show/6489/playing-with-op