--num-threads --进程的数量
--mutex-num --mutex的数量
--mutex-locks --每次请求的mutex lock的数量
--mutex-loops --申请lock之前执行ok那个循环的次数
[root@localhost sysbench]# ./sysbench --test=mutex --num-threads=12 --mutex-num=10240 --mutex-locks=1000000 --mutex-loops=50000000 run
sysbench 0.5: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 12
Random number generator seed is 0 and will be ignored
Threads started!
General statistics:
total time: 1.6287s
total number of events: 12
total time taken by event execution: 19.1788s
response time:
min: 1465.74ms
avg: 1598.23ms
max: 1624.29ms
approx. 95 percentile: 1623.54ms
Threads fairness:
events (avg/stddev): 1.0000/0.00
execution time (avg/stddev): 1.5982/0.04
使用sysbench对Oracle做基准测试(四) MUTEX
最新推荐文章于 2024-02-06 20:10:23 发布