<em>Mac</em>Book项目 2009年学校开始实施<em>Mac</em>Book项目,所有师生配备一本<em>Mac</em>Book,并同步更新了校园无线网络。学校每周进行电脑技术更新,每月发送技术支持资料,极大改变了教学及学习方式。因此2011
2021-06-01 09:32:01
負責將緩衝池中的資料非同步重新整理到磁碟,保證資料的一致性。
負責IO請求的回撥處理。
1.0版本之前有4個IO Thread,負責write、read、insert buffer和log IO Thread
1.0.x開始,read thread和write thread分別增加到4個,不再使用innodb_file_io_threads引數,而是使用innodb_read_io_threads和innodb_write_io_threads
mysql> show variables like 'innodb_version'G *************************** 1. row *************************** Variable_name: innodb_version Value: 5.6.25 1 row in set (0.00 sec) mysql> show variables like 'innodb_%io_threads'G *************************** 1. row *************************** Variable_name: innodb_read_io_threads Value: 4 *************************** 2. row *************************** Variable_name: innodb_write_io_threads Value: 4 2 rows in set (0.00 sec) mysql> show engine innodb statusG *************************** 1. row *************************** Type: InnoDB Name: Status: ===================================== 2015-12-20 21:53:50 7fcaccfe8700 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 11 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 93 srv_active, 0 srv_shutdown, 26243 srv_idle srv_master_thread log flush and writes: 26336 ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 393 OS WAIT ARRAY INFO: signal count 347 Mutex spin waits 297, rounds 8910, OS waits 281 RW-shared spins 53, rounds 1590, OS waits 50 RW-excl spins 13, rounds 1860, OS waits 57 Spin rounds per wait: 30.00 mutex, 30.00 RW-shared, 143.08 RW-excl ------------ TRANSACTIONS ------------ Trx id counter 2545 Purge done for trx's n:o < 2540 undo n:o < 0 state: running but idle History list length 22 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION 0, not started MySQL thread id 5, OS thread handle 0x7fcaccfe8700, query id 491 localhost root init show engine innodb status -------- FILE I/O -------- I/O thread 0 state: waiting for i/o request (insert buffer thread) I/O thread 1 state: waiting for i/o request (log thread) I/O thread 2 state: waiting for i/o request (read thread) I/O thread 3 state: waiting for i/o request (read thread) I/O thread 4 state: waiting for i/o request (read thread) I/O thread 5 state: waiting for i/o request (read thread) I/O thread 6 state: waiting for i/o request (write thread) I/O thread 7 state: waiting for i/o request (write thread) I/O thread 8 state: waiting for i/o request (write thread) I/O thread 9 state: waiting for i/o request (write thread) Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] , ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0 Pending flushes (fsync) log: 0; buffer pool: 0 915 OS file reads, 1496 OS file writes, 1089 OS fsyncs 0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s ------------------------------------- INSERT BUFFER AND ADAPTIVE HASH INDEX ------------------------------------- Ibuf: size 1, free list len 0, seg size 2, 0 merges merged operations: insert 0, delete mark 0, delete 0 discarded operations: insert 0, delete mark 0, delete 0 Hash table size 276671, node heap has 2 buffer(s) 0.00 hash searches/s, 0.00 non-hash searches/s --- LOG --- Log sequence number 369664448 Log flushed up to 369664448 Pages flushed up to 369664448 Last checkpoint at 369664448 0 pending log writes, 0 pending chkp writes 356 log i/o's done, 0.00 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total memory allocated 137363456; in additional pool allocated 0 Dictionary memory allocated 96365 Buffer pool size 8191 Free buffers 53 Database pages 8136 Old database pages 2983 Modified db pages 0 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 9747, not young 4864716 0.00 youngs/s, 0.00 non-youngs/s Pages read 4212, created 12449, written 13322 0.00 reads/s, 0.00 creates/s, 0.00 writes/s No buffer pool page gets since the last printout Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 8136, unzip_LRU len: 0 I/O sum[0]:cur[0], unzip sum[0]:cur[0] -------------- ROW OPERATIONS -------------- 0 queries inside InnoDB, 0 queries in queue 0 read views open inside InnoDB Main thread process no. 2345, id 140508950664960, state: sleeping Number of rows inserted 3919015, updated 0, deleted 0, read 8532141 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT ============================ 1 row in set (0.00 sec) mysql>
事務提交後,purge thread執行緒回收已經分配並被使用的undo頁。
innodb 1.2開始,支援多個purge thread。
purge thread離散地讀取undo頁。
mysql> show variables like 'innodb_purge_threads'; +----------------------+-------+ | Variable_name | Value | +----------------------+-------+ | innodb_purge_threads | 1 | +----------------------+-------+ 1 row in set (0.00 sec) mysql>
1.2.x版本中引入的。將之前版本中髒頁的重新整理操作都放入到單獨的執行緒中來完成。減輕master thread的工作。
到此這篇關於Innodb儲存引擎中後臺執行緒的文章就介紹到這了,更多相關Innodb後臺執行緒內容請搜尋it145.com以前的文章或繼續瀏覽下面的相關文章希望大家以後多多支援it145.com!
相關文章
<em>Mac</em>Book项目 2009年学校开始实施<em>Mac</em>Book项目,所有师生配备一本<em>Mac</em>Book,并同步更新了校园无线网络。学校每周进行电脑技术更新,每月发送技术支持资料,极大改变了教学及学习方式。因此2011
2021-06-01 09:32:01
综合看Anker超能充系列的性价比很高,并且与不仅和iPhone12/苹果<em>Mac</em>Book很配,而且适合多设备充电需求的日常使用或差旅场景,不管是安卓还是Switch同样也能用得上它,希望这次分享能给准备购入充电器的小伙伴们有所
2021-06-01 09:31:42
除了L4WUDU与吴亦凡已经多次共事,成为了明面上的厂牌成员,吴亦凡还曾带领20XXCLUB全队参加2020年的一场音乐节,这也是20XXCLUB首次全员合照,王嗣尧Turbo、陈彦希Regi、<em>Mac</em> Ova Seas、林渝植等人全部出场。然而让
2021-06-01 09:31:34
目前应用IPFS的机构:1 谷歌<em>浏览器</em>支持IPFS分布式协议 2 万维网 (历史档案博物馆)数据库 3 火狐<em>浏览器</em>支持 IPFS分布式协议 4 EOS 等数字货币数据存储 5 美国国会图书馆,历史资料永久保存在 IPFS 6 加
2021-06-01 09:31:24
开拓者的车机是兼容苹果和<em>安卓</em>,虽然我不怎么用,但确实兼顾了我家人的很多需求:副驾的门板还配有解锁开关,有的时候老婆开车,下车的时候偶尔会忘记解锁,我在副驾驶可以自己开门:第二排设计很好,不仅配置了一个很大的
2021-06-01 09:30:48
不仅是<em>安卓</em>手机,苹果手机的降价力度也是前所未有了,iPhone12也“跳水价”了,发布价是6799元,如今已经跌至5308元,降价幅度超过1400元,最新定价确认了。iPhone12是苹果首款5G手机,同时也是全球首款5nm芯片的智能机,它
2021-06-01 09:30:45