{"id":8055,"date":"2020-06-22T15:57:33","date_gmt":"2020-06-22T07:57:33","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8055"},"modified":"2024-01-07T02:05:30","modified_gmt":"2024-01-06T18:05:30","slug":"fio","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/fio","title":{"rendered":"fio\u547d\u4ee4 &#8211; \u5bf9\u78c1\u76d8\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5"},"content":{"rendered":"\n<p>fio\u547d\u4ee4\u6765\u81ea\u82f1\u6587\u8bcd\u7ec4flexible I\/O tester\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u5bf9\u78c1\u76d8\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5\u3002\u786c\u76d8I\/O\u541e\u5410\u7387\u662f\u5176\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<p><strong>\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>fio \u53c2\u6570 \u8bbe\u5907\u540d<\/p>\n\n\n\n<p><strong>\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>--bandwidth-log<\/td><td>\u751f\u6210\u6bcf\u4e2a\u4f5c\u4e1a\u7684\u5e26\u5bbd\u65e5\u5fd7<\/td><td rowspan=\"7\">&nbsp;<\/td><td>--max-jobs<\/td><td>\u8bbe\u7f6e\u6700\u5927\u652f\u6301\u7684\u4f5c\u4e1a\u6570<\/td><\/tr><tr><td>--client<\/td><td>\u8bbe\u7f6e\u8981\u5b8c\u6210\u4f5c\u4e1a\u7684\u4e3b\u673a\u4fe1\u606f<\/td><td>--minimal<\/td><td>\u4f7f\u7528\u7b80\u6d01\u683c\u5f0f\u663e\u793a\u7edf\u8ba1\u4fe1\u606f<\/td><\/tr><tr><td>--daemonize<\/td><td>\u6307\u5b9a\u8981\u5c06PID\u4fe1\u606f\u5199\u5165\u5230\u7684\u6587\u4ef6<\/td><td>--output<\/td><td>\u8bbe\u7f6e\u8f93\u51fa\u6587\u4ef6\u540d<\/td><\/tr><tr><td>--debug<\/td><td>\u4f7f\u7528\u8c03\u8bd5\u6a21\u5f0f<\/td><td>--runtime<\/td><td>\u9650\u5236\u8fd0\u884c\u65f6\u95f4<\/td><\/tr><tr><td>--eta<\/td><td>\u8bbe\u7f6e\u4f55\u65f6\u8f93\u51faETA\u8bc4\u4f30\u503c<\/td><td>--readonly<\/td><td>\u542f\u7528\u53ea\u8bfb\u5b89\u5168\u68c0\u67e5<\/td><\/tr><tr><td>--help<\/td><td>\u663e\u793a\u5e2e\u52a9\u4fe1\u606f<\/td><td>--version<\/td><td>\u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr><tr><td>--latency-log<\/td><td>\u751f\u6210\u6bcf\u4e2a\u4f5c\u4e1a\u7684\u5ef6\u8fdf\u65e5\u5fd7<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u5e38\u7528\u5143\u7d20\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>bs<\/td><td>\u6307\u5b9a\u5355\u6b21I\/O\u7684\u5757\u6587\u4ef6\u5927\u5c0f<\/td><td rowspan=\"3\">&nbsp;<\/td><td>rw=randwrite<\/td><td>\u6d4b\u8bd5\u968f\u673a\u5199\u7684I\/O<\/td><\/tr><tr><td>bsrange<\/td><td>\u63d0\u5b9a\u6570\u636e\u5757\u7684\u5927\u5c0f\u8303\u56f4<\/td><td>rw=randrw<\/td><td>\u6d4b\u8bd5\u968f\u673a\u5199\u548c\u8bfb\u7684I\/O<\/td><\/tr><tr><td>filename<\/td><td>\u6d4b\u8bd5\u6587\u4ef6\u540d\u79f0<\/td><td>size<\/td><td>\u6307\u5b9a\u6bcf\u4e2a\u7ebf\u7a0b\u8bfb\u5199\u7684\u6570\u636e\u91cf<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u53c2\u8003\u793a\u4f8b<\/strong><\/p>\n\n\n\n<p>\u8fdb\u884c\u968f\u673a\u8bfb\u53d6\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# fio -filename=File -direct=1 -iodepth 1 -thread -rw=read -ioengine= psync -bs=16k -size=10G -numjobs=10 -runtime=100 -group_reporting -name=mytest <\/pre>\n\n\n\n<p>\u8fdb\u884c\u968f\u673a\u5199\u5165\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# fio -filename=File -direct=1 -iodepth 1 -thread -rw=randwrite -ioengine=psync -bs=16k -size=200G -numjobs=30 -runtime=1000 -group_reporting -name=mytest<\/pre>\n\n\n\n<p>\u8fdb\u884c\u987a\u5e8f\u5199\u5165\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# fio -filename=File -direct=1 -iodepth 1 -thread -rw=write -ioengine=psync -bs=16k -size=200G -numjobs=30 -runtime=1000 -group_reporting -name=mytest<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>fio\u547d\u4ee4\u6765\u81ea\u82f1\u6587\u8bcd\u7ec4flexible I\/O tester\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u5bf9\u78c1\u76d8\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5\u3002\u786c\u76d8I\/O\u541e\u5410 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-8055","post","type-post","status-publish","format-standard","hentry","category-disk"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8055","targetHints":{"allow":["GET"]}}],"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":12,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8055\/revisions"}],"predecessor-version":[{"id":17110,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8055\/revisions\/17110"}],"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}]}}