当前位置:网站首页>MySQL table cache most detailed notes
MySQL table cache most detailed notes
2022-06-13 07:36:00 【Fish is not fish】
Parameters :
table_open_cache
File handle , The descriptor fd,table_definition_cache
Metadata ,.frm file , Load once during initialization .
The status value :
Open_tables
. Number of currently open tables , By command show open tables see . The system tables will be cached for the first time .Opened_tables
adopt my_open() Number of tables opened by function Open_table_definitions
The number of definitions of the currently open table , cache .frm file Opened_table_definitions
. Total number of definitions of open tables
Table_open_cache_hits
Table_open_cache_misses
About equal to Opened_tablesTable_open_cache_overflows
Monitoring item
table_open_cache shooting
: Table_open_cache_hits/(Table_open_cache_hits+Table_open_cache_misses) But it must be calculated from the beginning
table cache Operation process
1. for the first time open file , Will file fd Load into table cache
2. Next, you need to open When you file , First judge whether you are open_cache in , If you are Table_open_cache_hits +1 If not Table_open_cache_misses +1 Will apply for fd Put it in the kernel cache
3. If table cache The number of caches in it has reached table_open_cache Value , Need to be eliminated , If it is eliminated Table_open_cache_overflows +1
Definition
table cache: Table total cache
table_open_cache: Limit the number of openings inside , File match
Mode of expulsion
1.cache Full of , The table opened by the new connection is not in it ,
2.cache The number of table_open_cache value , Then when the table inside is no longer used
3.flush tables Will table_open_cache table_def_cache Expel all
cache Full of eviction principle :
1. Unused tables LRU
边栏推荐
- [log framework] add user-defined parameters to the MDC implementation log
- Performance tuning can't just depend on tapping the brain
- Number of detection cycles "142857“
- [log4j2 log framework] modify dump log file permissions
- Simple understanding of basic language of C language
- How to stop PHP FPM service in php7
- 2021-10-08
- P6154 wandering (memory search
- [Yu Yue education] econometrics reference materials of Jiujiang University
- JMeter encryption interface test
猜你喜欢
Make cer/pfx public and private key certificates and export CFCA application certificates
Redis learning journey - cache exceptions (CACHE penetration, cache avalanche, cache breakdown)
JMeter encryption interface test
powerdisgner逆向生成oracle数据模型
Paper notes: multi label learning bp-mll
MySQL summary
C # related knowledge points
Oracle problem: the data in the field is separated by commas. Take the data on both sides of the comma
Un des backtraders du cadre de quantification lit l'analyseur
redis-3. Redis list, set, hash, sorted_ set、skiplist
随机推荐
Compare advantages and disadvantages of DFS and BFS and name vocabulary
C语言:如何给全局变量起一个别名?
How idea breaks point debugging
Related operations under Oracle Database
Ticdc introduction
Redis persistence -- AOF
2021-10-08
Calculate running total / running balance
MySQL query timeout control
Distributed transaction learning (I) preliminary understanding
A solution to the problem that there is always a newline character when C merges multiple RichTextBox contents
redis-6. Redis master-slave replication, cap, Paxos, cluster sharding cluster 01
Index push down (ICP) for mysql5.6
Logback log framework learning and problems
Sorting of numbers and strings
Time field comparison time size in MySQL
8. process status and transition
11.29 Li Kou swipes questions every day
The management practice of leading enterprises has proved that what is the core of sustainable development of enterprises?
P6154 wandering (memory search