国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

mysql 5.5信息--innodb_read write _io_threads

2024-07-24 12:32:22
字體:
來源:轉載
供稿:網友
        # 在5.1版本上,這FILE_IO這一塊MYSQL只用了4個線程來處理IO;
        # 但在5.5上,隨著對多線程的更強支持;INNODB也加強了對IO讀寫線程的支持;更多發揮多線程的優勢 ;
        # IO線程默認增加到了10個;(配太多也沒用,因為IO能力有限,需要配合特殊機型)
        # 其實這個在5.5.0就已經增強了,不過在這里講也不晚;[@more@]
 
      ### 5.1
# innodb_file_io_threads
# The number of file I/O threads in InnoDB.
# Normally, this should be left at the default value of 4, but disk I/O on Windows may benefit from a larger number.
# On Unix, increasing the number has no effect; InnoDB always uses the default value.
 
     ### 5.5
innodb_read_io_threads=4 # (default)
innodb_write_io_threads=4 # (default)
 
--------------------------------------------
root@127.0.0.1 : (none) 10:46:59> show variables like 'innodb_%io%threads';
+-------------------------+-------+
| Variable_name | Value |
+-------------------------+-------+
| innodb_read_io_threads | 4 |
| innodb_write_io_threads | 4 |
+-------------------------+-------+
2 rows in set (0.00 sec)
 
root@127.0.0.1 : (none) 10:47:09> select version();
+--------------+
| version() |
+--------------+
| 5.5.7-rc-log |
+--------------+
1 row in set (0.00 sec)
 
 
##### show engine innodb status on V 5.5
 
###
FILE I/O
--------
I/O thread 0 state: waiting for completed aio requests (insert buffer thread)
I/O thread 1 state: waiting for completed aio requests (log thread)
I/O thread 2 state: waiting for completed aio requests (read thread)
I/O thread 3 state: waiting for completed aio requests (read thread)
I/O thread 4 state: waiting for completed aio requests (read thread)
I/O thread 5 state: waiting for completed aio requests (read thread)
I/O thread 6 state: waiting for completed aio requests (write thread)
I/O thread 7 state: waiting for completed aio requests (write thread)
I/O thread 8 state: waiting for completed aio requests (write thread)
I/O thread 9 state: waiting for completed aio requests (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
153 OS file reads, 3 OS file writes, 3 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
 
##### show engine innodb status on V5.1
 
--------
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 (write thread)
Pending normal aio reads: 0, aio writes: 0,
ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0
Pending flushes (fsync) log: 0; buffer pool: 0
24 OS file reads, 138506 OS file writes, 6249 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
 
 
#我們發現,
#在5.1的4個FILE_iO 線程包括:
insert buffer thread
log thread
read thread
write thread
 
#而在5.5, 總共有10個FILE_IO線程
(insert buffer thread) * 1
(log thread) * 1
(read thread) * 4
(write thread) * 4
 
有了更多讀寫線程的支持,也相應地增加了INNODB更大的并發能力;
期待5.5版本的更快成熟;

(編輯:武林網)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 富源县| 平乡县| 十堰市| 五峰| 沙洋县| 霍邱县| 双鸭山市| 台湾省| 高平市| 宁波市| 陕西省| 湘西| 盘锦市| 长治市| 阿拉善左旗| 玛纳斯县| 托克逊县| 平阴县| 屏东县| 湘西| 同德县| 墨玉县| 尚义县| 泽库县| 阜新| 徐闻县| 宜宾市| 漯河市| 宿迁市| 旺苍县| 东阿县| 云霄县| 桓台县| 抚州市| 大英县| 临清市| 丰城市| 绥化市| 龙胜| 连南| 五大连池市|