{"id":8452,"date":"2020-07-28T19:24:58","date_gmt":"2020-07-28T11:24:58","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8452"},"modified":"2020-07-28T19:25:23","modified_gmt":"2020-07-28T11:25:23","slug":"blktrace","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/blktrace","title":{"rendered":"blktrace\u547d\u4ee4 – \u5206\u6790\u78c1\u76d8IO"},"content":{"rendered":"\n

\u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u67e5\u770b\u78c1\u76d8\u7684\u8d1f\u8f7d\u60c5\u51b5\uff0c\u54b1\u4eec\u4e00\u822c\u4f7f\u7528iostat\u76d1\u63a7\u5de5\u5177\u3002\u5176\u4e2d\u5f88\u91cd\u8981\u7684\u53c2\u6570\u5c31\u662fawait\uff0cawait\u8868\u793a\u5355\u4e2aI\/O\u6240\u9700\u7684\u5e73\u5747\u65f6\u95f4\uff0c\u4f46\u5b83\u540c\u65f6\u5305\u542b\u4e86I\/O Scheduler\u6240\u6d88\u8017\u7684\u65f6\u95f4\u548c\u786c\u4ef6\u6240\u6d88\u8017\u7684\u65f6\u95f4\uff0c\u6240\u4ee5\u4e0d\u80fd\u4f5c\u4e3a\u786c\u4ef6\u6027\u80fd\u7684\u6307\u6807\u3002\u90a3\u5982\u4f55\u624d\u80fd\u5206\u8fa8\u4e00\u4e2aio\u4ece\u4e0b\u53d1\u5230\u8fd4\u56de\u6574\u4e2a\u65f6\u95f4\u4e0a\uff0c\u662f\u786c\u4ef6\u5c42\u8017\u65f6\u591a\u8fd8\u662f\u5728io\u8c03\u5ea6\u4e0a\u8017\u65f6\u591a\u5462\uff1f\u5982\u4f55\u67e5\u770bio\u5728\u5404\u4e2a\u65f6\u95f4\u6bb5\u6240\u6d88\u8017\u7684\u65f6\u95f4\u5462\uff1f\u90a3\u4e48\uff0cblktrace\u5728\u8fd9\u79cd\u573a\u5408\u5c31\u80fd\u6d3e\u4e0a\u7528\u573a\uff0c\u56e0\u4e3a\u5b83\u80fd\u8bb0\u5f55I\/O\u6240\u7ecf\u5386\u7684\u5404\u4e2a\u6b65\u9aa4\uff0c\u4ece\u4e2d\u53ef\u4ee5\u5206\u6790\u662fIO Scheduler\u6162\u8fd8\u662f\u786c\u4ef6\u54cd\u5e94\u6162\uff0c\u4ee5\u53ca\u5404\u4e2a\u65f6\u95f4\u6bb5\u6240\u7528\u65f6\u95f4\u3002<\/p>\n\n\n\n

blktrace\u7684\u539f\u7406\uff1a<\/p>\n\n\n\n

\u4e00\u4e2aI\/O\u8bf7\u6c42\u8fdb\u5165block layer\u4e4b\u540e\uff0c\u53ef\u80fd\u4f1a\u7ecf\u5386\u4e0b\u9762\u7684\u8fc7\u7a0b\uff1a<\/p>\n\n\n\n