{"id":8055,"date":"2020-06-22T15:57:33","date_gmt":"2020-06-22T07:57:33","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8055"},"modified":"2022-05-24T20:19:32","modified_gmt":"2022-05-24T12:19:32","slug":"fio","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/fio","title":{"rendered":"fio\u547d\u4ee4 – \u5bf9\u78c1\u76d8\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5"},"content":{"rendered":"\n
fio\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201dFlexible IO Tester\u201c\u7684\u7f29\u5199\uff0c \u5176\u529f\u80fd\u662f\u7528\u4e8e\u5bf9\u78c1\u76d8\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5\u3002\u786c\u76d8I\/O\u541e\u5410\u7387\u662f\u6027\u80fd\u7684\u91cd\u8981\u6307\u6807\u4e4b\u4e00\uff0c\u8fd0\u7ef4\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528fio\u547d\u4ee4\u5bf9\u5176\u8fdb\u884c\u6d4b\u8bd5\uff0c\u6d4b\u8bd5\u53c8\u53ef\u4ee5\u7ec6\u5206\u4e3a\u987a\u5e8f\u8bfb\u5199\u548c\u968f\u673a\u8bfb\u5199\u4e24\u5927\u7c7b\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>fio [\u53c2\u6570] <\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u8fdb\u884c\u968f\u673a\u8bfb\u53d6\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n \u8fdb\u884c\u968f\u673a\u5199\u5165\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n \u8fdb\u884c\u987a\u5e8f\u5199\u5165\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n fio\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201dFlexible IO Tester\u201c\u7684\u7f29\u5199\uff0c \u5176\u529f\u80fd\u662f\u7528\u4e8e\u5bf9\u78c1\u76d8\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5\u3002\u786c\u76d8 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8055"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8055"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8055\/revisions"}],"predecessor-version":[{"id":10006,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8055\/revisions\/10006"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}filename<\/td> \u6d4b\u8bd5\u6587\u4ef6\u540d\u79f0\uff0c\u901a\u5e38\u9009\u62e9\u9700\u8981\u6d4b\u8bd5\u7684\u76d8\u7684data\u76ee\u5f55<\/td><\/tr> rw=randwrite <\/td> \u6d4b\u8bd5\u968f\u673a\u5199\u7684I\/O<\/td><\/tr> rw=randrw <\/td> \u6d4b\u8bd5\u968f\u673a\u5199\u548c\u8bfb\u7684I\/O<\/td><\/tr> bs<\/td> \u6307\u5b9a\u5355\u6b21io\u7684\u5757\u6587\u4ef6\u5927\u5c0f<\/td><\/tr> bsrange<\/td> \u63d0\u5b9a\u6570\u636e\u5757\u7684\u5927\u5c0f\u8303\u56f4<\/td><\/tr> size<\/td> \u6307\u5b9a\u6bcf\u4e2a\u7ebf\u7a0b\u8bfb\u5199\u7684\u6570\u636e\u91cf<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# fio -filename=linuxcool -direct=1 -iodepth 1 -thread -rw=read -ioengine=psync -bs=16k -size=10G -numjobs=10 -runtime=100 -group_reporting -name=mytest<\/strong>\r<\/pre>\n\n\n\n
[root@linuxcool ~]# fio -filename=linuxcool -direct=1 -iodepth 1 -thread -rw=randwrite -ioengine=psync -bs=16k -size=200G -numjobs=30 -runtime=1000 -group_reporting -name=mytest<\/strong>\r<\/pre>\n\n\n\n
[root@linuxcool ~]# fio -filename=linuxcool -direct=1 -iodepth 1 -thread -rw=write -ioengine=psync -bs=16k -size=200G -numjobs=30 -runtime=1000 -group_reporting -name=mytest<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"