10. 10
10
InnoDB/XtraDB Storage Engine
innodb_buffer_pool_size=75G # DRAM allocated to mysql
innodb_use_native_aio=1 # Use Asynchronous I/O
innodb_log_block_size=4096 # XtraDB only, use 4k block for log file. Can add 25% extra performance.
innodb_use_atomic_writes=1 # Fusion-io only, enable atomic I/O. XtraDB only
innodb_log_files_in_group=2 # 2 log files, 4GB each. Recommended setting
innodb_log_file_size=4G
innodb_thread_concurrency=32 # Number of threads allowed inside storage engine
innodb_flush_method = O_DIRECT # Use direct-io, not buffered
innodb_io_capacity=25000 # Indication of much I/O can be submittet
innodb_max_dirty_pages_pct=90 # When to start flush dirty memory pages more aggressively
innodb_adaptive_flushing=1 # Flush dirty pages adaptively
innodb_adaptive_flushing_method=keep_average # use the keep_average algorithm. XtraDB only
innodb_read_ahead=0 # No need for read-ahead on seek-less storage
innodb_flush_neighbor_pages=0 # No need for sequential flushing on seek-less storage
15. 15
MySQL Block I/O? ??
? Queue depth? ?? ?? (8-32)
? Read/ Write? ?? I/O ?? ??? ??? ???..bandwidth(X)
? Block ??? I/O ????? MySQL ?? ??? ?? ???.
MySQL master
Redo Logs
Binary logs
Data
512b buffered sequential sync read/write
512b buffered sequential sync writes
16k direct random a-sync read/write
16. 16
MySQL ????
? ?? 3?? ???? ?? mysql ???? ?? ??
C Sysbench (OLTP, I/O, memory and thread testing)
C tpcc-mysql (TPC-C¨ish workload by Percona)
C Linkbench (Facebook social graph benchmark)
? ??? mysql power group?? ???? script.
17. 17
MySQL ?? ??
DATA? Dram?
???? ??
75% active dataset ?
DRAM? load?, CPU
???? ??
transaction ???
?? ?? ??
??? ???? ??,
?? ????
????? ???,
????? Dram
??? caching ???
spike ??
25. 25
NVMFS access program (???? ???)
? 1.0.2 GA ?? ??
? Atomic Series ?? ????? OK~!
? Atomic/NVM Compression ??? ?? Demo Pool ??
? MariaDB 10.1(Beta, 3?2? C innodb page compression / Atomic write ??)
https://www.youtube.com/watch?v=CS6RrX6VreM
´SX300-1600 io Memory and NVMFS filesystem outran by 2.5 (!) hours
in MySQL replication and Virident is still catching up, I'll know the exact time gap when completed.
26. 26
MySQL resources
? www.percona.com
? www.mariadb.org/
? www.mysql.com/
? www.mysqlperformanceblog.com
? dimitrik.free.fr/blog/
? MySQL welcome kit, best practices guide and case studies:http://www.fusionio.com/solutions/mysql/
? NVMFS Video https://www.youtube.com/watch?v=CS6RrX6VreM ( replication ????)
29. 29
Thank you!
www.sandisk.com | www.fusionio.com
changhoon.song@sandisk.com
? 2014 SanDisk Corporation. All rights reserved. SanDisk is a trademark of SanDisk Corporation, registered in the United States and other countries. ZetaScale is a trademark of SanDisk Enterprise IP LLC.
Other brand names mentioned herein are for identification purposes only and may be the trademarks of their holder(s).