網站首頁 編程語言 正文
一、背景
驗證系統調優對性能的影響,用sysbench做了一些簡單的測試,具體調整方法可見官方文檔
二、特殊說明
1.透明大頁查看
# 查看透明大頁是否開啟,[]在always處表示開啟,[]在never處表示關閉
cat /sys/kernel/mm/transparent_hugepage/enabled
always madvise [never]
2.io查看
io調度方式需要看磁盤類型是否支持,只有ssd和hdd的才能夠支持noop的調度方式,具體可以看大佬的文章
三、結果對比
初步關閉了大頁之后性能有5%左右的提升,但是因為測試環境比較差,測試內容不一定準確
1:
transactions: 2428 (40.45 per sec.)
queries: 48560 (809.03 per sec.)
2:
transactions: 3816 (63.57 per sec.)
queries: 76320 (1271.34 per sec.)
4:
transactions: 5851 (97.47 per sec.)
queries: 117020 (1949.30 per sec.)
8:
transactions: 6918 (115.23 per sec.)
queries: 138360 (2304.62 per sec.)
16:
transactions: 8089 (134.54 per sec.)
queries: 161780 (2690.83 per sec.)
32:
transactions: 9120 (151.51 per sec.)
queries: 182400 (3030.21 per sec.)
64:
transactions: 9153 (151.65 per sec.)
queries: 183060 (3032.96 per sec.)
調整大頁等參數后
1:
transactions: 2599 (43.30 per sec.)
queries: 51980 (865.99 per sec.)
2:
transactions: 4097 (68.24 per sec.)
queries: 81940 (1364.88 per sec.)
4:
transactions: 6166 (102.70 per sec.)
queries: 123320 (2054.04 per sec.)
8:
transactions: 8865 (147.62 per sec.)
queries: 177300 (2952.45 per sec.)
16:
transactions: 9705 (161.57 per sec.)
queries: 194100 (3231.44 per sec.)
32:
transactions: 9805 (163.09 per sec.)
queries: 196100 (3261.73 per sec.)
64:
transactions: 10055 (166.87 per sec.)
queries: 201100 (3337.38 per sec.)
原文鏈接:https://blog.csdn.net/line_on_database/article/details/126505823
相關推薦
- 2022-07-02 SpringBoot-?@SessionAttributes--使用/實例
- 2022-07-12 git同步fork倉庫同步upstream倉庫
- 2022-08-22 pytorch深度神經網絡入門準備自己的圖片數據_python
- 2022-07-08 一文詳解C++中運算符的使用_C 語言
- 2022-06-01 Android自制九宮格解鎖控件_Android
- 2022-11-21 在react中使用windicss的問題_React
- 2022-03-11 .NET6中使用CuteEditor詳解_實用技巧
- 2022-11-21 Pandas數據分析之groupby函數用法實例詳解_python
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支