日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

InnoDB Spin rounds per wait在32位机器上可能为负

發布時間:2023/12/20 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 InnoDB Spin rounds per wait在32位机器上可能为负 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

今天發現一個系統innodb的spin rounds per wait為負,感覺很奇怪,原來是個bug:

For example (output from PS but we have no patches here),---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 19811539060 OS WAIT ARRAY INFO: signal count 8333711487 Mutex spin waits 192857078576, rounds 290389036704, OS waits 1568180069 RW-shared spins 19747848205, rounds 565755834160, OS waits 14799492482 RW-excl spins 7774140570, rounds 144578121130, OS waits 3188338144 Spin rounds per wait: -697.30 mutex, -327.60 RW-shared, -177.22 RW-exclThis is caused by(double) mutex_spin_round_count /(mutex_spin_wait_count ? mutex_spin_wait_count : 1),conditional operator part: mutex_spin_wait_count is not an integral type var but a C++ object with type conversion operator to ib_int64_t. 1 is a constant of type (signed) int. Now C++ language rules somehow decide (credit to my colleague Igor Solodovnikov) that the type of the result of conditional operator is int too. This can also be confirmed by disassembling sync_print_wait_info:...leaq __ZL21mutex_spin_wait_count(%rip), %r15 # mutex_spin_wait_count.this to R15 ...addq 264(%rcx,%r15), %rdx # counter sum to RDX (only the final add shown, RCX = 0) ...cvtsi2sdl %edx, %xmm1 # EDX not RDX! opcode is also for "doubleword integer" ...divsd %xmm1, %xmm0The bug was introduced together with ib_counter_t introduction. Before, the counter variables being plain integers were working OK (thus 5.5 is not affected)How to repeat: Code analysis, running server long enough, then looking at the status.Suggested fix: Probably the easiest fix is s/1/1ULL/g in the conditional operators. But at the same time observe that each counter object mention causes a fresh summation for the counter. Thus better to introduce local vars and to sum each counter only once. Also get rid of redundant typecasts in the first printf, and resolve the ib_int64_t / ib_uint64_t mismatch. [18 Dec 2015 14:09] Laurynas Biveinis Bug 79703 fix for 5.6(*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.Contribution: bug79703.patch (application/octet-stream, text), 3.17 KiB. [18 Dec 2015 14:11] Laurynas Biveinis With proposed patch integer to double conversion uses cvtsi2sdq %rax, %xmm2, which looks correct. [29 Feb 20:52] Staffan Flink We've also hit this bug but it seems that the correct numbers for 'Spin rounds per wait' can be retrieved from I_S.INNODB_METRICS.snippet output from 'SHOW ENGINE INNODB STATUS\G': *************************** 1. row *************************** Type: InnoDB Name: Status: ===================================== 2016-02-29 17:04:50 7f1613cb2700 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 59 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 27828639 srv_active, 0 srv_shutdown, 552 srv_idle srv_master_thread log flush and writes: 27829190 ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 562748487 OS WAIT ARRAY INFO: signal count 4440218264 Mutex spin waits 4031631980, rounds 19046728943, OS waits 221855330 RW-shared spins 1337835479, rounds 10346069330, OS waits 159065324 RW-excl spins 436493896, rounds 12607401587, OS waits 149384138 Spin rounds per wait: -72.33 mutex, 7.73 RW-shared, 28.88 RW-exclOutput from I_S.INNODB_METRICS: mysql> use information_schema; Database changed mysql> select name,count,max_count,avg_count from INNODB_METRICS where name like '%spin%'; +-----------------------------+-------------+-------------+--------------------+ | name | count | max_count | avg_count | +-----------------------------+-------------+-------------+--------------------+ | innodb_rwlock_s_spin_waits | 1338920718 | 1338920718 | 48.02786821549153 | | innodb_rwlock_x_spin_waits | 436953500 | 436953500 | 15.673777268638679 | | innodb_rwlock_s_spin_rounds | 10353523860 | 10353523860 | 371.3869483301454 | | innodb_rwlock_x_spin_rounds | 12620856222 | 12620856222 | 452.7174844992445 | +-----------------------------+-------------+-------------+--------------------+ 4 rows in set (0.00 sec)This would suggests that it's 'SHOW ENGINE INNODB STATUS' that interprets the numbers incorrectly.For information, we're running 5.6.23.

?

轉載于:https://www.cnblogs.com/sunss/p/5535871.html

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的InnoDB Spin rounds per wait在32位机器上可能为负的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 天堂网成人 | 日本精品在线播放 | 亚洲v欧美v另类v综合v日韩v | 欧美色鬼| 国产伊人网 | 69久人妻无码精品一区 | 最近的中文字幕 | 国产精品2区 | 久久久久在线 | 美国美女群体交乱 | 成人精品视频一区二区 | 成人天堂| 欧美顶级毛片在线播放 | 日本激情在线 | 少妇太紧太爽又黄又硬又爽 | 亚洲一区成人在线 | 日韩a级一片 | 国产三级av在线播放 | 婷婷国产一区 | 777精品伊人久久久久大香线蕉 | 修女也疯狂3免费观看完整版 | 色综合视频 | 国产一级淫片免费 | 午夜在线不卡 | 国产精品资源在线 | 欧美精品久久久久久久久久 | 国产第100页| 国产字幕av | 国产高潮在线观看 | 日本精品中文字幕 | 日韩精品一区二 | 男人的天堂2019 | 午夜偷拍福利 | 日韩免费在线视频观看 | 非洲黑人毛片 | 黑人3p波多野结衣在线观看 | 亚洲涩视频 | 国产精品无码无卡无需播放器 | 日韩在线播放视频 | 黄色男女网站 | 91丨porny丨成人蝌蚪 | 无码人妻丰满熟妇区96 | 国产综合亚洲精品一区二 | 性高潮久久久久久久 | 久久99成人 | 国产调教一区 | 免费a网址 | 久久久久久国产免费a片 | 99免费在线观看视频 | 免费av一级 | 激情六月天婷婷 | 亚洲av色区一区二区三区 | 国产欧美一区二区精品性色 | 密臀av在线| 无码人妻精品一区二区三 | 九九影视理伦片 | 福利视频在线 | 秋霞黄色片 | 奇米影视第四色777 波多野结衣一区二区三区免费视频 | 成人午夜视频免费 | 亚洲一区二区不卡视频 | 成人久久久久久久 | 污污免费视频 | 国产午夜精品一区二区三区四区 | 狠狠躁天天躁夜夜躁婷婷 | 免费的毛片 | 激情五月激情综合网 | 男女床上拍拍拍 | 午夜一二三区 | 成人av动漫 | 懂色一区二区 | 亚洲福利久久 | www好男人| 国产chinese男男gaygay视频 | 中文字幕超清在线免费观看 | 午夜福利电影一区 | 亚洲3p| 波多野结衣中文字幕在线 | 欧美在线小视频 | 美女的奶胸大爽爽大片 | 免费毛片在线播放 | 亚洲性欧美色 | 精品一区二区久久久久久久网站 | 人人舔人人插 | 黄色一级一片 | avtt2015| 插少妇视频 | 五月婷婷七月丁香 | 爱爱一区 | 爱吃波客今天最新视频 | 国产精品久久久久久久久免费 | 国产精品作爱 | 久草国产在线视频 | 少妇又紧又深又湿又爽视频 | 高清不卡一区 | 亚洲国产日韩一区 | 天天干网站 | 自由 日本语 热 亚洲人 | 悟空影视大全免费高清观看在线 |