• Like

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.

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

  • 1,386 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,386
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
11
Comments
0
Likes
4

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \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

Transcript

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