Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

MySQLによってタフになる会12章

on

  • 1,666 views

 

Statistics

Views

Total Views
1,666
Views on SlideShare
1,571
Embed Views
95

Actions

Likes
4
Downloads
11
Comments
0

4 Embeds 95

http://d.hatena.ne.jp 58
http://brfrn169.hatenablog.com 28
http://paper.li 8
http://207.46.192.232 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

MySQLによってタフになる会12章 MySQLによってタフになる会12章 Presentation Transcript

  • MySQL 12
  • MySQL CPU I/O
  • MySQL SQL - - SQL - CPU - -
  • MySQL 1 MySQL
  • CPU×CPU× CPU - ➡ - MySQL ➡ 4 8
  • CPU× CPU ( ) - 1.6GHz CPU4 3.2GHz CPU2 ➡ 2 - MySQL SQL
  • CPU×CPU - /proc/interrupts mpstat intr/s - Linux(CentOS 4.6) irqbalance CPU
  • CPU- CPU
  • CPUSQL- MySQL SQL SQL- MySQL
  • CPUNFS CPU- MySQL- ➡ NFS ➡ DWH SQL
  • 32 OS--
  • -- swapoff /etc/fstab
  • -- dd mkswap
  • -- OS /proc/sys/ vm/swappiness- MySQL my.cnf [mysqld] memlock
  • ,CPU (MySQL 5.1 )Hugepages-- Hugepages 4KB- TLB- TLB- P.367( 1GB )
  • I/O MyISAM InnoDB (O_DIRECT )- MyISAM OS- InnoDB- InnoDB OS (MyISAM ) ➡ innodb_flash_method = O_DIRECT OS- MyISAM InnoDB skip-innodb
  • I/O RAID- RAID5, RAID6-- RAID5 + RAID1+0
  • I/ORAID- RAID RAID- 8KB 64KB 2-
  • I/O MLC SSD- pdflush-
  • I/OeSATA iSCSI- ( )- Adaptec RAID 5085 + eSATA + eSATA- Supermicro 2U + + Open-iSCSI + iSCSI
  • I/OSymlink- MyISAM innodb_file_per_table InnoDB- I/O
  • I/OpdflushMySQL- pdflush- ➡ man mkfs.ext3, mkfs.xfs, mount-
  • I/OI/O- I/O I/O- CentOS4.6 Complete Fair Queuing(cfq), Deadline, Anticipatory(as), noop 4 IO- Deadline ( )- CentOS5
  • I/O-- MyISAM- InnoDB XtraDB Google v3
  • I/O readahead- MySQL ➡ ➡ ➡ ➡ readahead( )
  • I/OBLACKHOLEMASTER_POS_WAIT()- I/O ➡ BLACKHOLE MASTER_POS_WAIT()- MASTER_POS_WAIT()
  • I/O- --replicate-ignore-table, --replicate-wild-do-table, --replicate- do-db--
  • Federated BLOB- Federated-
  • - MySQL- my.cnf [mysqld] slave_compressed_protocol = 1- CPU
  • - MySQL-- ➡ net.ipv4.tcp_rmem ➡ net.ipv4.tcp_wmem- net.ipv4.tcp_tw_recycle TIME_WAIT- netstat -s
  • ( )- ( )-
  • RDBMS- RDBMS- Key-Value- ➡ Key-Value ➡ RDBMS
  • - ( )--
  • MySQL- MySQL ( )- MySQL
  • - MySQL (MySQL5.1 )‣ InnoDB MyISAM(MEMORY) ➡‣ ➡
  • update‣ ➡ ➡ ➡ SQL
  • - memcached, Oracle Coherence, OSCache- ‣ ‣ I/O- ( ) ‣ ‣ ‣
  • - ‣ • ID ID • ID ID- ‣- ‣ join ‣