MySQL and SSD
Gea-Suan Lin
[email protected]
PIXNET Digital Media Corporation
Slide 2
Slide 2 text
Outline
Introduction to MySQL and SSD
SSD Spec
Comparsion in Speed and Price
Something interesting...
Conculsion
Slide 3
Slide 3 text
MySQL and SSD
MySQL
Open source database
Very popular to Web-based company
SSD
Solid-state drive
2006~2007
Very fast random access (in theory)
Fit database characteristic
Slide 4
Slide 4 text
Conculsion First!
Don't Use SSD to run database
At least MySQL...
Unless
I/O bound
Enough Budget
Test in real environment
Linux 2.6.18 (Debian, testing)
XFS, noatime, nodiratime
MySQL 5.1.{21,22,23}, MyISAM
Replication (Slave)
Data size: my boss said we cannot talk about
real database size, so don't ask.
Slide 8
Slide 8 text
Test
Warm up speed
Write speed (Replication write)
Read speed (Query)
Slide 9
Slide 9 text
Comparsion
Mtron MSP-7000, Memoright MR25.2
RAID1+0 15KRPM SAS (4 disks)
RAID0 15KRPM SAS (2 disks)
Mtron MSD-3000
Mtron MSD-1000
RAID0 10KRPM SATA (2 disks)
Others... (RiData and Transcend)
Slide 10
Slide 10 text
Something interesting...
No, these won't appear in this slide.
Slide 11
Slide 11 text
Suggestion Again!
Don't use SSD in Master server.
Don't use SSD in Slave servers unless need.
I/O bound that RAID cannot solve
In most cases, you need to buy books to optimize your
query statements, not buy SSD.
In some cases, you need to reconstruct your architecture.
Budget