</pre><pre name="code" class="sql">sysbench threads的测试
--感觉这个测试的是操作系统内核的效率。
--测试大致思想就是创建一些线程并把它放到执行队列中去 ,
--每个线程发出request request内容大体是申请mutex -释放CPU-释放mutex
--由于是基准测试,只需要使用相同的参数,在不同的机器上运行即可
--test=threads --指明测试内容为tread
--num-threads=20 --创建多少个进程
--thread-yields=500 --每次请求的压力 官方文档是说 锁定-释放CPU-解锁 但是这个yelid没搞清楚是什么操作
--thread-locks= 222 --需要创建的mutex的数量
[root@localhost sysbench]# ./sysbench --test=threads --num-threads=20 --thread-yields=500 --thread-locks=2222 run
sysbench 0.5: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 20
Random number generator seed is 0 and will be ignored
Threads started!
General statistics:
total time: 3.0081s
total number of events: 10000
total time taken by event execution: 59.9833s
r
使用sysbench对Oracle做基准测试(三) THREADS
最新推荐文章于 2024-07-15 08:00:00 发布
本文介绍了如何使用sysbench进行Oracle数据库的多线程基准测试。通过设置不同数量的线程、线程让步次数和互斥锁,评估操作系统内核效率。测试结果显示了总时间、事件数、响应时间和线程公平性等关键指标。
摘要由CSDN通过智能技术生成