SlideShare una empresa de Scribd logo
1 de 16
Descargar para leer sin conexión
EXEM technical report no.012 Ver. 1
2016.07.28
Performance Schema
Configuration In MySQL 5.6
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance Schema 세부설정
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 설정
Performance Schema의 세부적인 설정을 위한 테이블 목록
setup_actors : 모니터링 대상 유저 설정
setup_consumers : 모니터링 데이터 테이블 설정
setup_instruments : 모니터링 지표 설정
setup_objects : 모니터링 대상 오브젝트 설정
setup_timers : 모니터링 타이머 값(단위) 설정
PS 설정 테이블 목록
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 설정
select * from performance_schema.setup_consumers;
1. setup_consumers 기본 설정 값 확인
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 설정
update performance_schema.setup_consumers set enabled='no' where name not in ('global_instrumentation','thread_instrumentation');
update performance_schema.setup_consumers set enabled='yes' where name in ('events_waits_current');
select * from performance_schema.setup_consumers;
2. setup_consumer 설정
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 설정
select substr(name,1,instr(concat(name,'/%/'),'/'))
instrument_type ,enabled,timed, count(*)
from performance_schema.setup_instruments
group by 1,2,3;
3. setup_instruments 기본 설정 값 확인
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 설정
update performance_schema.setup_instruments set
enabled='no', timed='no';
update performance_schema.setup_instruments set
enabled='yes', timed='yes' where name like 'wait%';
4. setup_instruments 초기화 후 필요한 지표만 설정
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance Schema
select substr(name,1,instr(concat(name,'/%/'),'/'))
instrument_type ,enabled,timed, count(*)
from performance_schema.setup_instruments
group by 1,2,3;
Performance_schema 설정
5. setup_instruments 설정 값 확인
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 설정
6. Wait Event class 별 설정
[ wait event 클래스 ]
set @mutex='wait/synch/mutex%';
set @rwlock='wait/synch/rwlock%';
set @cond='wait/synch/cond%';
set @iofile='wait/io/file%';
[ 클래스 단위 설정 ]
update performance_schema.setup_instruments
set enabled='[yes|no]', timed=‘[yes|no]‘
[where name like @클래스명];
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance_schema 설정에 따른 벤치마크
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 벤치마크
[테스트 환경]
performance_schema = OFF
[테스트 결과]
OLTP test statistics:
queries performed:
read: 7002324
write: 2000202
other: 1000166
total: 10002692
transactions: 500000 (2401.68 per sec.)
read/write requests: 9002526 (43242.40 per sec.)
other operations: 1000166 (4804.16 per sec.)
ignored errors: 166 (0.80 per sec.)
reconnects: 0 (0.00 per sec.)
General statistics:
total time: 208.1875s
total number of events: 500000
total time taken by event execution: 20817.1200s
response time:
min: 3.08ms
avg: 41.63ms
max: 2122.08ms
approx. 95 percentile: 79.18ms
Threads fairness:
events (avg/stddev): 5000.0000/88.49
execution time (avg/stddev): 208.1712/0.00
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 벤치마크
[테스트 환경]
performance_schema = ON
setup_instruments => NO
[테스트 결과]
OLTP test statistics:
queries performed:
read: 7002856
write: 2000230
other: 1000204
total: 10003290
transactions: 500000 (2365.31 per sec.)
read/write requests: 9003086 (42590.25 per sec.)
other operations: 1000204 (4731.59 per sec.)
ignored errors: 204 (0.97 per sec.)
reconnects: 0 (0.00 per sec.)
General statistics:
total time: 211.3884s
total number of events: 500000
total time taken by event execution: 21137.0707s
response time:
min: 2.64ms
avg: 42.27ms
max: 1174.11ms
approx. 95 percentile: 80.76ms
Threads fairness:
events (avg/stddev): 5000.0000/92.69
execution time (avg/stddev): 211.3707/0.01
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 벤치마크
[테스트 환경]
performance_schema = ON
setup_instruments => YES
[테스트 결과]
OLTP test statistics:
queries performed:
read: 7002562
write: 2000219
other: 1000183
total: 10002964
transactions: 500000 (2064.60 per sec.)
read/write requests: 9002781 (37174.36 per sec.)
other operations: 1000183 (4129.96 per sec.)
ignored errors: 183 (0.76 per sec.)
reconnects: 0 (0.00 per sec.)
General statistics:
total time: 242.1771s
total number of events: 500000
total time taken by event execution: 24216.1743s
response time:
min: 3.36ms
avg: 48.43ms
max: 1427.58ms
approx. 95 percentile: 99.74ms
Threads fairness:
events (avg/stddev): 5000.0000/82.17
execution time (avg/stddev): 242.1617/0.00
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 벤치마크
[테스트 환경]
performance_schema = ON
setup_instruments => YES (only wait event)
[테스트 결과]
OLTP test statistics:
queries performed:
read: 7002604
write: 2000215
other: 1000186
total: 10003005
transactions: 500000 (2298.90 per sec.)
read/write requests: 9002819 (41393.07 per sec.)
other operations: 1000186 (4598.65 per sec.)
ignored errors: 186 (0.86 per sec.)
reconnects: 0 (0.00 per sec.)
General statistics:
total time: 217.4958s
total number of events: 500000
total time taken by event execution: 21746.9148s
response time:
min: 2.83ms
avg: 43.49ms
max: 1069.45ms
approx. 95 percentile: 83.11ms
Threads fairness:
events (avg/stddev): 5000.0000/80.40
execution time (avg/stddev): 217.4691/0.01
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Performance SchemaPerformance_schema 벤치마크
Performance_schema Setup_Instruments TPS Response time (AVG) Total time
OFF - 2401.68 41.63ms 208.1875s
ON NO 2365.31 (-1.51%) 42.27ms (+1.54%) 211.3884s
ON YES 2064.60 (-14.04%) 48.43ms (+16.33%) 242.1771s
ON Wait events only 2298.90 (-4.28%) 43.49ms (+4.47%) 217.4958s
[테스트 환경]
OS Memory : 8GB
OS Processors : 8
DB Version : MySQL 5.6.14
Benchmark Tool : SysBench(OLTP)
Transactions : 500000
Threads : 100
NAVER http://cafe.naver.com/playexem
ITPUB (中) http://blog.itpub.net/31135309/
Wordpress https://playexem.wordpress.com/
Slideshare http://www.slideshare.net/playexem
교육 문의: 연구컨텐츠팀 김숙진
edu@ex-em.com
• Research & Contents Team
© Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved.
Youtube https://www.youtube.com/channel/UC5wKR_-
A0eL_Pn_EMzoauJg
Tudou (中) http://www.tudou.com/home/maxgauge/

Más contenido relacionado

La actualidad más candente

你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能
maclean liu
 
MySQL replication & cluster
MySQL replication & clusterMySQL replication & cluster
MySQL replication & cluster
elliando dias
 
【Maclean liu技术分享】拨开oracle cbo优化器迷雾,探究histogram直方图之秘 0321
【Maclean liu技术分享】拨开oracle cbo优化器迷雾,探究histogram直方图之秘 0321【Maclean liu技术分享】拨开oracle cbo优化器迷雾,探究histogram直方图之秘 0321
【Maclean liu技术分享】拨开oracle cbo优化器迷雾,探究histogram直方图之秘 0321
maclean liu
 
oracle cloud with 2 nodes processing
oracle cloud with 2 nodes processingoracle cloud with 2 nodes processing
oracle cloud with 2 nodes processing
mahdi ahmadi
 

La actualidad más candente (20)

你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能
 
MySQL Document Store
MySQL Document StoreMySQL Document Store
MySQL Document Store
 
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert VanderkelenOSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
 
Mvcc in postgreSQL 권건우
Mvcc in postgreSQL 권건우Mvcc in postgreSQL 권건우
Mvcc in postgreSQL 권건우
 
MySQL replication & cluster
MySQL replication & clusterMySQL replication & cluster
MySQL replication & cluster
 
【Maclean liu技术分享】拨开oracle cbo优化器迷雾,探究histogram直方图之秘 0321
【Maclean liu技术分享】拨开oracle cbo优化器迷雾,探究histogram直方图之秘 0321【Maclean liu技术分享】拨开oracle cbo优化器迷雾,探究histogram直方图之秘 0321
【Maclean liu技术分享】拨开oracle cbo优化器迷雾,探究histogram直方图之秘 0321
 
New features in Performance Schema 5.7 in action
New features in Performance Schema 5.7 in actionNew features in Performance Schema 5.7 in action
New features in Performance Schema 5.7 in action
 
Introduction to Parallel Execution
Introduction to Parallel ExecutionIntroduction to Parallel Execution
Introduction to Parallel Execution
 
Advanced Replication
Advanced ReplicationAdvanced Replication
Advanced Replication
 
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud PlatformPostgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free Migration
 
Replica Sets (NYC NoSQL Meetup)
Replica Sets (NYC NoSQL Meetup)Replica Sets (NYC NoSQL Meetup)
Replica Sets (NYC NoSQL Meetup)
 
Performance tuning a quick intoduction
Performance tuning   a quick intoductionPerformance tuning   a quick intoduction
Performance tuning a quick intoduction
 
Dbms plan - A swiss army knife for performance engineers
Dbms plan - A swiss army knife for performance engineersDbms plan - A swiss army knife for performance engineers
Dbms plan - A swiss army knife for performance engineers
 
oracle cloud with 2 nodes processing
oracle cloud with 2 nodes processingoracle cloud with 2 nodes processing
oracle cloud with 2 nodes processing
 
Troubleshooting MySQL Performance
Troubleshooting MySQL PerformanceTroubleshooting MySQL Performance
Troubleshooting MySQL Performance
 
My sql fabric ha and sharding solutions
My sql fabric ha and sharding solutionsMy sql fabric ha and sharding solutions
My sql fabric ha and sharding solutions
 
MySQLinsanity
MySQLinsanityMySQLinsanity
MySQLinsanity
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsi
 
Using Apache Spark and MySQL for Data Analysis
Using Apache Spark and MySQL for Data AnalysisUsing Apache Spark and MySQL for Data Analysis
Using Apache Spark and MySQL for Data Analysis
 

Destacado

제 5회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 5회 엑셈 수요 세미나 자료 연구컨텐츠팀제 5회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 5회 엑셈 수요 세미나 자료 연구컨텐츠팀
EXEM
 
2009년 시무식 Apm
2009년 시무식 Apm2009년 시무식 Apm
2009년 시무식 Apm
EXEM
 
PostgreSQL Performance Tuning
PostgreSQL Performance TuningPostgreSQL Performance Tuning
PostgreSQL Performance Tuning
elliando dias
 

Destacado (20)

Oracle Deep Internal 2 (ver.2)
Oracle Deep Internal 2 (ver.2)Oracle Deep Internal 2 (ver.2)
Oracle Deep Internal 2 (ver.2)
 
Oracle Deep Internal 3 (ver.2)
Oracle Deep Internal 3 (ver.2)Oracle Deep Internal 3 (ver.2)
Oracle Deep Internal 3 (ver.2)
 
제 9회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 9회 엑셈 수요 세미나 자료 연구컨텐츠팀제 9회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 9회 엑셈 수요 세미나 자료 연구컨텐츠팀
 
제 7회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 7회 엑셈 수요 세미나 자료 연구컨텐츠팀제 7회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 7회 엑셈 수요 세미나 자료 연구컨텐츠팀
 
Oracle Deep Internal 4 (ver.2)
Oracle Deep Internal 4 (ver.2)Oracle Deep Internal 4 (ver.2)
Oracle Deep Internal 4 (ver.2)
 
【中文】 odi no.004 analysis of oracle performance degradation caused by ineffi...
【中文】   odi no.004 analysis of oracle performance degradation caused by ineffi...【中文】   odi no.004 analysis of oracle performance degradation caused by ineffi...
【中文】 odi no.004 analysis of oracle performance degradation caused by ineffi...
 
제 10회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 10회 엑셈 수요 세미나 자료 연구컨텐츠팀제 10회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 10회 엑셈 수요 세미나 자료 연구컨텐츠팀
 
제 5회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 5회 엑셈 수요 세미나 자료 연구컨텐츠팀제 5회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 5회 엑셈 수요 세미나 자료 연구컨텐츠팀
 
PostgreSQL Deep Internal
PostgreSQL Deep InternalPostgreSQL Deep Internal
PostgreSQL Deep Internal
 
test
testtest
test
 
[MySQL 스터디] 기타기능
[MySQL 스터디] 기타기능[MySQL 스터디] 기타기능
[MySQL 스터디] 기타기능
 
2009년 시무식 Apm
2009년 시무식 Apm2009년 시무식 Apm
2009년 시무식 Apm
 
밋업발표
밋업발표밋업발표
밋업발표
 
Oracle Deep Internal 1 (ver.2)
Oracle Deep Internal 1 (ver.2)Oracle Deep Internal 1 (ver.2)
Oracle Deep Internal 1 (ver.2)
 
Oracle Deep Internal 3 (ver.2)
Oracle Deep Internal 3 (ver.2)Oracle Deep Internal 3 (ver.2)
Oracle Deep Internal 3 (ver.2)
 
XDebug For php debugging
XDebug For php debuggingXDebug For php debugging
XDebug For php debugging
 
The Great Debate: PostgreSQL vs MySQL
The Great Debate: PostgreSQL vs MySQLThe Great Debate: PostgreSQL vs MySQL
The Great Debate: PostgreSQL vs MySQL
 
Apache tomcat 로드밸런싱 김태호-20140808
Apache tomcat 로드밸런싱 김태호-20140808Apache tomcat 로드밸런싱 김태호-20140808
Apache tomcat 로드밸런싱 김태호-20140808
 
PostgreSQL Performance Tuning
PostgreSQL Performance TuningPostgreSQL Performance Tuning
PostgreSQL Performance Tuning
 
『프로젝트 성패를 결정짓는 데이터 모델링 이야기』 - 미리보기
『프로젝트 성패를 결정짓는 데이터 모델링 이야기』 - 미리보기『프로젝트 성패를 결정짓는 데이터 모델링 이야기』 - 미리보기
『프로젝트 성패를 결정짓는 데이터 모델링 이야기』 - 미리보기
 

Similar a Performance schema 설정

Profiling ruby
Profiling rubyProfiling ruby
Profiling ruby
nasirj
 
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
yishengxi
 
stackconf 2023 | How to reduce expenses on monitoring with VictoriaMetrics by...
stackconf 2023 | How to reduce expenses on monitoring with VictoriaMetrics by...stackconf 2023 | How to reduce expenses on monitoring with VictoriaMetrics by...
stackconf 2023 | How to reduce expenses on monitoring with VictoriaMetrics by...
NETWAYS
 

Similar a Performance schema 설정 (20)

Performance
PerformancePerformance
Performance
 
MySQL Performance Schema : fossasia
MySQL Performance Schema : fossasiaMySQL Performance Schema : fossasia
MySQL Performance Schema : fossasia
 
Where the wild things are - Benchmarking and Micro-Optimisations
Where the wild things are - Benchmarking and Micro-OptimisationsWhere the wild things are - Benchmarking and Micro-Optimisations
Where the wild things are - Benchmarking and Micro-Optimisations
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
Monitoring services at scale.
Monitoring services at scale.Monitoring services at scale.
Monitoring services at scale.
 
MySQL Troubleshooting with the Performance Schema
MySQL Troubleshooting with the Performance SchemaMySQL Troubleshooting with the Performance Schema
MySQL Troubleshooting with the Performance Schema
 
Sherlock holmes for dba’s
Sherlock holmes for dba’sSherlock holmes for dba’s
Sherlock holmes for dba’s
 
C010241521
C010241521C010241521
C010241521
 
EAI Performance Analysis Web-Methods | Torry Harris Whitepaper
EAI Performance Analysis Web-Methods | Torry Harris WhitepaperEAI Performance Analysis Web-Methods | Torry Harris Whitepaper
EAI Performance Analysis Web-Methods | Torry Harris Whitepaper
 
Recent my sql_performance Test detail
Recent my sql_performance Test detailRecent my sql_performance Test detail
Recent my sql_performance Test detail
 
Performance and how to measure it - ProgSCon London 2016
Performance and how to measure it - ProgSCon London 2016Performance and how to measure it - ProgSCon London 2016
Performance and how to measure it - ProgSCon London 2016
 
Profiling ruby
Profiling rubyProfiling ruby
Profiling ruby
 
NoCOUG Presentation on Oracle RAT
NoCOUG Presentation on Oracle RATNoCOUG Presentation on Oracle RAT
NoCOUG Presentation on Oracle RAT
 
MySQL-Performance Schema- What's new in MySQL-5.7 DMRs
MySQL-Performance Schema- What's new in MySQL-5.7 DMRsMySQL-Performance Schema- What's new in MySQL-5.7 DMRs
MySQL-Performance Schema- What's new in MySQL-5.7 DMRs
 
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
 
Performance eng prakash.sahu
Performance eng prakash.sahuPerformance eng prakash.sahu
Performance eng prakash.sahu
 
stackconf 2023 | How to reduce expenses on monitoring with VictoriaMetrics by...
stackconf 2023 | How to reduce expenses on monitoring with VictoriaMetrics by...stackconf 2023 | How to reduce expenses on monitoring with VictoriaMetrics by...
stackconf 2023 | How to reduce expenses on monitoring with VictoriaMetrics by...
 
MySQL8.0_performance_schema.pptx
MySQL8.0_performance_schema.pptxMySQL8.0_performance_schema.pptx
MySQL8.0_performance_schema.pptx
 
Aspects of 10 Tuning
Aspects of 10 TuningAspects of 10 Tuning
Aspects of 10 Tuning
 
QSpiders - Installation and Brief Dose of Load Runner
QSpiders - Installation and Brief Dose of Load RunnerQSpiders - Installation and Brief Dose of Load Runner
QSpiders - Installation and Brief Dose of Load Runner
 

Más de EXEM

Más de EXEM (6)

Amazon aurora 2
Amazon aurora 2Amazon aurora 2
Amazon aurora 2
 
[KOR] ODI no.004 analysis of oracle performance degradation caused by ineffic...
[KOR] ODI no.004 analysis of oracle performance degradation caused by ineffic...[KOR] ODI no.004 analysis of oracle performance degradation caused by ineffic...
[KOR] ODI no.004 analysis of oracle performance degradation caused by ineffic...
 
[ODI] chapter3 What is Max CR DBA(Max length)?
[ODI] chapter3 What is Max CR DBA(Max length)? [ODI] chapter3 What is Max CR DBA(Max length)?
[ODI] chapter3 What is Max CR DBA(Max length)?
 
[ODI] chapter2 what is "undo record chaining"?
[ODI] chapter2 what is "undo record chaining"?[ODI] chapter2 what is "undo record chaining"?
[ODI] chapter2 what is "undo record chaining"?
 
[ODI] chapter1 When Update statement is executed, How does oracle undo work?
[ODI] chapter1 When Update statement is executed,  How does oracle undo work?[ODI] chapter1 When Update statement is executed,  How does oracle undo work?
[ODI] chapter1 When Update statement is executed, How does oracle undo work?
 
[Practical owi] lock & latch
[Practical owi] lock & latch[Practical owi] lock & latch
[Practical owi] lock & latch
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Performance schema 설정

  • 1. EXEM technical report no.012 Ver. 1 2016.07.28 Performance Schema Configuration In MySQL 5.6
  • 2. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance Schema 세부설정
  • 3. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 설정 Performance Schema의 세부적인 설정을 위한 테이블 목록 setup_actors : 모니터링 대상 유저 설정 setup_consumers : 모니터링 데이터 테이블 설정 setup_instruments : 모니터링 지표 설정 setup_objects : 모니터링 대상 오브젝트 설정 setup_timers : 모니터링 타이머 값(단위) 설정 PS 설정 테이블 목록
  • 4. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 설정 select * from performance_schema.setup_consumers; 1. setup_consumers 기본 설정 값 확인
  • 5. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 설정 update performance_schema.setup_consumers set enabled='no' where name not in ('global_instrumentation','thread_instrumentation'); update performance_schema.setup_consumers set enabled='yes' where name in ('events_waits_current'); select * from performance_schema.setup_consumers; 2. setup_consumer 설정
  • 6. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 설정 select substr(name,1,instr(concat(name,'/%/'),'/')) instrument_type ,enabled,timed, count(*) from performance_schema.setup_instruments group by 1,2,3; 3. setup_instruments 기본 설정 값 확인
  • 7. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 설정 update performance_schema.setup_instruments set enabled='no', timed='no'; update performance_schema.setup_instruments set enabled='yes', timed='yes' where name like 'wait%'; 4. setup_instruments 초기화 후 필요한 지표만 설정
  • 8. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance Schema select substr(name,1,instr(concat(name,'/%/'),'/')) instrument_type ,enabled,timed, count(*) from performance_schema.setup_instruments group by 1,2,3; Performance_schema 설정 5. setup_instruments 설정 값 확인
  • 9. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 설정 6. Wait Event class 별 설정 [ wait event 클래스 ] set @mutex='wait/synch/mutex%'; set @rwlock='wait/synch/rwlock%'; set @cond='wait/synch/cond%'; set @iofile='wait/io/file%'; [ 클래스 단위 설정 ] update performance_schema.setup_instruments set enabled='[yes|no]', timed=‘[yes|no]‘ [where name like @클래스명];
  • 10. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance_schema 설정에 따른 벤치마크
  • 11. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 벤치마크 [테스트 환경] performance_schema = OFF [테스트 결과] OLTP test statistics: queries performed: read: 7002324 write: 2000202 other: 1000166 total: 10002692 transactions: 500000 (2401.68 per sec.) read/write requests: 9002526 (43242.40 per sec.) other operations: 1000166 (4804.16 per sec.) ignored errors: 166 (0.80 per sec.) reconnects: 0 (0.00 per sec.) General statistics: total time: 208.1875s total number of events: 500000 total time taken by event execution: 20817.1200s response time: min: 3.08ms avg: 41.63ms max: 2122.08ms approx. 95 percentile: 79.18ms Threads fairness: events (avg/stddev): 5000.0000/88.49 execution time (avg/stddev): 208.1712/0.00
  • 12. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 벤치마크 [테스트 환경] performance_schema = ON setup_instruments => NO [테스트 결과] OLTP test statistics: queries performed: read: 7002856 write: 2000230 other: 1000204 total: 10003290 transactions: 500000 (2365.31 per sec.) read/write requests: 9003086 (42590.25 per sec.) other operations: 1000204 (4731.59 per sec.) ignored errors: 204 (0.97 per sec.) reconnects: 0 (0.00 per sec.) General statistics: total time: 211.3884s total number of events: 500000 total time taken by event execution: 21137.0707s response time: min: 2.64ms avg: 42.27ms max: 1174.11ms approx. 95 percentile: 80.76ms Threads fairness: events (avg/stddev): 5000.0000/92.69 execution time (avg/stddev): 211.3707/0.01
  • 13. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 벤치마크 [테스트 환경] performance_schema = ON setup_instruments => YES [테스트 결과] OLTP test statistics: queries performed: read: 7002562 write: 2000219 other: 1000183 total: 10002964 transactions: 500000 (2064.60 per sec.) read/write requests: 9002781 (37174.36 per sec.) other operations: 1000183 (4129.96 per sec.) ignored errors: 183 (0.76 per sec.) reconnects: 0 (0.00 per sec.) General statistics: total time: 242.1771s total number of events: 500000 total time taken by event execution: 24216.1743s response time: min: 3.36ms avg: 48.43ms max: 1427.58ms approx. 95 percentile: 99.74ms Threads fairness: events (avg/stddev): 5000.0000/82.17 execution time (avg/stddev): 242.1617/0.00
  • 14. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 벤치마크 [테스트 환경] performance_schema = ON setup_instruments => YES (only wait event) [테스트 결과] OLTP test statistics: queries performed: read: 7002604 write: 2000215 other: 1000186 total: 10003005 transactions: 500000 (2298.90 per sec.) read/write requests: 9002819 (41393.07 per sec.) other operations: 1000186 (4598.65 per sec.) ignored errors: 186 (0.86 per sec.) reconnects: 0 (0.00 per sec.) General statistics: total time: 217.4958s total number of events: 500000 total time taken by event execution: 21746.9148s response time: min: 2.83ms avg: 43.49ms max: 1069.45ms approx. 95 percentile: 83.11ms Threads fairness: events (avg/stddev): 5000.0000/80.40 execution time (avg/stddev): 217.4691/0.01
  • 15. © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Performance SchemaPerformance_schema 벤치마크 Performance_schema Setup_Instruments TPS Response time (AVG) Total time OFF - 2401.68 41.63ms 208.1875s ON NO 2365.31 (-1.51%) 42.27ms (+1.54%) 211.3884s ON YES 2064.60 (-14.04%) 48.43ms (+16.33%) 242.1771s ON Wait events only 2298.90 (-4.28%) 43.49ms (+4.47%) 217.4958s [테스트 환경] OS Memory : 8GB OS Processors : 8 DB Version : MySQL 5.6.14 Benchmark Tool : SysBench(OLTP) Transactions : 500000 Threads : 100
  • 16. NAVER http://cafe.naver.com/playexem ITPUB (中) http://blog.itpub.net/31135309/ Wordpress https://playexem.wordpress.com/ Slideshare http://www.slideshare.net/playexem 교육 문의: 연구컨텐츠팀 김숙진 edu@ex-em.com • Research & Contents Team © Copyrights 2001~2016, EXEM CO.,LTD. All Rights Reserved. Youtube https://www.youtube.com/channel/UC5wKR_- A0eL_Pn_EMzoauJg Tudou (中) http://www.tudou.com/home/maxgauge/