成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

mysql5.5--innodbbufferpool優(yōu)化-創(chuàng)新互聯(lián)

InnoDB buffer pool 被設(shè)為兩個(gè)SUBLIST:
一個(gè)是存放大部分查詢所需用到的塊;
另一個(gè)是存放小量查詢所需用到的塊;并可以被回收;
[@more@]

The InnoDB buffer pool is divided into two sublists:
A new sublist containing blocks that are heavily used by queries,
and an old sublist containing less-used blocks and from which candidates for eviction are taken.

創(chuàng)新互聯(lián)成都網(wǎng)站建設(shè)按需定制,是成都網(wǎng)站營銷公司,為成都混凝土攪拌站提供網(wǎng)站建設(shè)服務(wù),有成熟的網(wǎng)站定制合作流程,提供網(wǎng)站定制設(shè)計(jì)服務(wù):原型圖制作、網(wǎng)站創(chuàng)意設(shè)計(jì)、前端HTML5制作、后臺程序開發(fā)等。成都網(wǎng)站建設(shè)熱線:13518219792

InnoDB buffer pool 被設(shè)為兩個(gè)SUBLIST:
一個(gè)是存放大部分查詢所需用到的塊;
另一個(gè)是存放小量查詢所需用到的塊;并可以被回收;
In the default operation of the buffer pool,
a block when read in is loaded at the midpoint and then moved immediately to the head of the new sublist as soon as an access occurs.
In the case of a table scan (such as performed for a mysqldump operation),
each block read by the scan ends up moving to the head of the new sublist because multiple rows are accessed from each block.
This occurs even for a one-time scan, where the blocks are not otherwise used by other queries.
Blocks may also be loaded by the read-ahead background thread and then moved to the head of the new sublist by a single access.
These effects can be disadvantageous because they push blocks that are in heavy use by other queries out of the new sublist
to the old sublist where they become subject to eviction.

默認(rèn)情況下,一個(gè)數(shù)據(jù)塊只要被訪問,那么這個(gè)塊將立刻被放到“最新訪問列表”的頭部;
像MYSQLDUMP,需求全表掃描一次,那么BUFFERPOOL里的塊將被重新?lián)Q一次;
這樣做的一個(gè)缺點(diǎn)就是BUFFERPOOL里的塊換進(jìn)換出特別的頻繁,而且有可能把一些熱塊給換出去;最終導(dǎo)致頻繁IO;

InnoDB now provides two system variables that enable LRU algorithm tuning:

innodb_old_blocks_pct
Specifies the approximate percentage of the buffer pool used for the old block sublist.
The range of values is 5 to 95. The default value is 37 (that is, 3/8 of the pool).

innodb_old_blocks_time
Specifies how long in milliseconds (ms) a block inserted into the old sublist must stay there after its first access
before it can be moved to the new sublist.
The default value is 0:
A block inserted into the old sublist moves immediately to the new sublist the first time it is accessed,
no matter how soon after insertion the access occurs. If the value is greater than 0, blocks remain in the old sublist until an access occurs at least that many ms after the first access. For example, a value of 1000 causes blocks to stay in the old sublist for 1 second after the first access before they become eligible to move to the new sublist

BLOCK 被第一次訪問的后,先呆在”old sublist“,的等待”innodb_old_blocks_time“ms后會移到“new sublist”;
這樣一個(gè)大的全表掃描查詢就不會馬上把熱塊給踢出去;
詳見: http://dev.mysql.com/doc/refman/5.5/en/innodb-buffer-pool.html

本文題目:mysql5.5--innodbbufferpool優(yōu)化-創(chuàng)新互聯(lián)
網(wǎng)址分享:http://jinyejixie.com/article8/egoip.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、微信小程序、企業(yè)建站、網(wǎng)站排名、網(wǎng)站制作、營銷型網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)
大方县| 广河县| 兰西县| 孟村| 寿光市| 泰兴市| 北安市| 通道| 武隆县| 三门县| 同德县| 中江县| 普兰店市| 汤原县| 行唐县| 南康市| 湄潭县| 彰武县| 白水县| 交口县| 四子王旗| 甘孜县| 温宿县| 浮山县| 永年县| 卢湾区| 太谷县| 沁水县| 永宁县| 申扎县| 蓝山县| 湛江市| 泰安市| 天峨县| 杨浦区| 奉贤区| 周至县| 栾川县| 塔城市| 武夷山市| 依安县|