Has anyone done any performance testing for MySQL testing what effect using a fast SATA III SSD for the system SWAP space on transaction throughput?
That is, configure a test system with 8GBs of RAM and 56GBs of SWAP (on a dedicated SSD). The test system should have a second SSD for holding the entire test database (hopefully, much larger than 64GBs). And, then configure MySQL to run a benchmark so that it uses around 48-64GBs of virtual memory for the duration of the benchmark. Then, install 64GBs of RAM (disabling SWAP) in the test system and rerun the benchmark. Finally, go back to 8GBs of RAM, disable SWAP, and rerun the benchmark so that MySQL only uses around 8GBs of virtual memory and the database SSD.
This would result in 3 sets of performance data which should indicate whether using SWAP on a dedicated boot SSD would be any faster than just using a fast SSD to hold the database.
My thinking is that SWAP (aka virtual memory) might be noticeably faster than just using an SSD for the database. And, I wonder how much slower SWAP on SSD is than all RAM. For my servers, RAM is around $10/GB but SSD storage is around $1/GB. Rather than adding the expensive RAM to squeeze out more performance, I'd like to expand the DB servers with SWAP on SSD.
Maybe this is a dumb idea, but I haven't read anything about using SWAP on SSD for servers. Most articles I have read on setting up DB servers discourage having any SWAP at all, but I'm thinking SSDs might be fast enough to use for virtual memory over paying 10 times as much to load up the servers with RAM. I know my iPhone uses SSD for virtual memory and only has a small amount of RAM, so I'm hoping this isn't a dumb idea.