大佬教程收集整理的这篇文章主要介绍了linux – iozone:5个并发线程随机读取300K块比仅使用一个线程更多ops / s,可能是什么原因?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
Command line used: iozone -s 190g -r 300k -O -b test_file OPS Mode. Output is in operations per second. random random bkwd record Stride KB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread 199229440 300 240 234 254 253 58 127 100 6539 91 234 234 254 254
所以对于300K块,使用一个线程的随机读取是58 ops /秒,大约17MB / s.
但是,当我尝试5个线程,每个读取300K块时,我意外地工作得更快,虽然我期望更多的随机访问:
OPS Mode. Output is in operations per second. Command line used: iozone -s 80g -r 300k -O -l5 -u 5 -F test_file1 test_file2 test_file3 test_file4 test_file5 Children see throughput for 5 random readers = 69.27 ops/sec Parent sees throughput for 5 random readers = 69.27 ops/sec Min throughput per process = 13.81 ops/sec Max throughput per process = 13.89 ops/sec Avg throughput per process = 13.85 ops/sec
有谁知道Linux操作系统或硬盘驱动器中的读取/缓存策略使得5个线程读取随机300K块比1个线程读取随机300K块更快?
以上是大佬教程为你收集整理的linux – iozone:5个并发线程随机读取300K块比仅使用一个线程更多ops / s,可能是什么原因?全部内容,希望文章能够帮你解决linux – iozone:5个并发线程随机读取300K块比仅使用一个线程更多ops / s,可能是什么原因?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。