{"id":8053,"date":"2020-06-22T15:58:43","date_gmt":"2020-06-22T07:58:43","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8053"},"modified":"2020-06-23T20:25:21","modified_gmt":"2020-06-23T12:25:21","slug":"iozone","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/iozone","title":{"rendered":"iozone\u547d\u4ee4 – \u8fdb\u884clinux\u4e0b\u7684\u786c\u76d8\u6027\u80fd\u6d4b\u8bd5"},"content":{"rendered":"\n

iozone\u662f\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\u7684benchmark\u5de5\u5177\uff0c\u53ef\u4ee5\u6d4b\u8bd5\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u6587\u4ef6\u7cfb\u7edf\u7684\u8bfb\u5199\u6027\u80fd\u3002\u53ef\u4ee5\u6d4b\u8bd5Read, write, re-read,re-write, read backwards, readstrided, fread, fwrite, random read, pread, mmap, aio_read,aio_write \u7b49\u7b49\u4e0d\u540c\u7684\u6a21\u5f0f\u4e0b\u7684\u786c\u76d8\u7684\u6027\u80fd\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lozone [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-b<\/td>iozone\u8f93\u51fa\u7ed3\u679c\u65f6\u5c06\u521b\u5efa\u4e00\u4e2a\u517c\u5bb9Excel\u7684\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684\u6587\u4ef6\u3002<\/td><\/tr>
-g<\/td>\u8bbe\u7f6e\u6d4b\u8bd5\u65f6\u6700\u5927\u6587\u4ef6\u5927\u5c0f<\/td><\/tr>
-s<\/td>\u8bbe\u7f6e\u6d4b\u8bd5\u65f6\u6587\u4ef6\u5927\u5c0f<\/td><\/tr>
-f <\/td>\u6307\u5b9a\u6d4b\u8bd5\u6587\u4ef6\u7684\u540d\u5b57,\u5b8c\u6210\u540e\u4f1a\u81ea\u52a8\u5220\u9664(\u8fd9\u4e2a\u6587\u4ef6\u5fc5\u987b\u6307\u5b9a\u4f60\u8981\u6d4b\u8bd5\u7684\u90a3\u4e2a\u786c\u76d8\u4e2d)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u6d4b\u8bd5 \/mnt\/iozone \u5e76\u8f93\u51fa\u8868\u683c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# .\/iozone -a -n 512m -g 4g -i 0 -i 1 -i 5 -f \/mnt\/iozone -Rb .\/iozone.xls<\/pre>\n\n\n\n

\u6307\u5b9a\u5757\u5927\u5c0f\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# .\/iozone -a -i 0 -i 1 -i 2 -s 8g -r 16m -Rb .\/iozone.xls<\/pre>\n\n\n\n

\u6302\u8f7d\u76d8\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# .\/iozone -a -n 1g -g 4g -i 0 -i 1 -f \/mnt\/iozone -Rb .\/iozone.xls<\/pre>\n","protected":false},"excerpt":{"rendered":"

iozone\u662f\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\u7684benchmark\u5de5\u5177\uff0c\u53ef\u4ee5\u6d4b\u8bd5\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u6587\u4ef6\u7cfb\u7edf\u7684\u8bfb\u5199\u6027\u80fd\u3002\u53ef\u4ee5\u6d4b\u8bd5Rea […]<\/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\/8053"}],"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=8053"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8053\/revisions"}],"predecessor-version":[{"id":8103,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8053\/revisions\/8103"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}