{"id":1054,"date":"2015-03-02T11:06:08","date_gmt":"2015-03-02T03:06:08","guid":{"rendered":"http:\/\/imhy.zbyzbyzby.com\/wordpress\/?p=1054"},"modified":"2015-03-02T11:06:08","modified_gmt":"2015-03-02T03:06:08","slug":"%e3%80%90android%e3%80%91%e8%b0%83%e6%95%99%e5%86%85%e6%a0%b8%e4%b8%ad%e7%9a%84cpu%e5%92%8cio%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/?p=1054","title":{"rendered":"\u3010Android\u3011\u8c03\u6559\u5185\u6838\u4e2d\u7684CPU\u548cI\/O\u8bbe\u7f6e"},"content":{"rendered":"<p>#\u8bf4\u662f\u5b89\u5353\u7684\u5185\u6838\uff0c\u5176\u5b9e\u5e94\u8be5Linux\u7cfb\u7edf\u90fd\u6709\u76f8\u5173\u7684\u8bbe\u7f6e\u7684\u5427<\/p>\n<p>#\u6587\u7ae0\u5185\u5bb9\u90e8\u5206\u6458\u5f55\u4e8e<a href=\"http:\/\/www.chenyue404.tk\/?p=56\" target=\"_blank\">http:\/\/www.chenyue404.tk\/?p=56<\/a><\/p>\n<p>\u6700\u8fd1\u5728<a title=\"\u5185\u6838\u8c03\u6559\" href=\"http:\/\/www.coolapk.com\/apk\/com.grarak.kerneladiutor\" target=\"_blank\">\u8fd9\u91cc<\/a>\u4e0b\u8f7d\u5230\u4e86\u4e00\u4e2a\u8c03\u6559\u5b89\u5353\u5185\u6838\u7684\u5e94\u7528\uff0c\u770b\u7740\u5404\u79cd\u53c2\u6570\u771f\u7684\u8d76\u811a\u4e0d\u660e\u89c9\u5389\u3002\u59d1\u4e14\u7b97\u662f\u7ed3\u5408\u7f51\u4e0a\u7684\u6587\u7ae0\u6539\u4e86\u51e0\u4e2a\u53c2\u6570~\u4e0d\u540c\u624b\u673a\u53ef\u9009\u62e9\u7684\u5185\u6838\u53c2\u6570\u4e0d\u540c\uff0c\u6587\u7ae0\u4ee5\u6e23\u7c733w\u4e3a\u4f8b~<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong>\u5148\u6765\u770b\u770b\u5173\u4e8eCPU\u7684\u8bbe\u7f6e<\/strong><\/p>\n<p>\u5176\u4e2d\u6709\u4e00\u4e2a\u633a\u6709\u610f\u601d\u7684\u8bbe\u7f6e\u662f[CPU Governor]\uff0c\u6839\u636e\u7f51\u7edc\u4e0a\u7684\u6587\u7ae0\uff0c\u5404\u79cd\u9009\u9879\u6709\u5982\u4e0b\u89e3\u91ca<\/p>\n<p>\u3010ondemand\u3011\u6309\u9700\u6a21\u5f0f:<br \/>\n\u2192\u6309\u9700\u8c03\u8282cpu\u9891\u7387,\u4e0d\u64cd\u4f5c\u624b\u673a\u7684\u65f6\u5019\u63a7\u5236\u5728\u6700\u4f4e\u9891\u7387,\u6ed1\u5c4f\u6216\u8fdb\u5165\u5e94\u7528\u540e\u4f1a\u8fc5\u901f\u63d0\u5347\u81f3\u6700\u9ad8\u9891\u7387,\u5f53\u7a7a\u95f2\u65f6\u8fc5\u901f\u964d\u4f4e\u9891\u7387,\u6027\u80fd\u8f83\u7a33\u5b9a,\u4f46\u56e0\u9891\u7387\u53d8\u5316\u5e45\u5ea6\u8fc7\u5927,\u7701\u7535\u65b9\u9762\u53ea\u6709\u4e00\u822c\u7684\u6c34\u5e73\u3002\u662f\u4e00\u79cd\u5728\u7535\u6c60\u548c\u6027\u80fd\u4e4b\u95f4\u8d8b\u5411\u5e73\u8861\u7684\u9ed8\u8ba4\u6a21\u5f0f,\u4f46\u662f\u5bf9\u4e8e\u667a\u80fd\u624b\u673a\u6765\u8bf4,ondemand\u5728\u6027\u80fd\u8868\u73b0\u65b9\u9762\u7565\u6709\u6b20\u7f3a\u3002<\/p>\n<p>\u3010interactive\u3011\u4ea4\u4e92\u6a21\u5f0f:<br \/>\n\u2192\u548condemand\u76f8\u4f3c,\u89c4\u5219\u662f\u201c\u5feb\u5347\u6162\u964d\u201d,\u6ce8\u91cd\u54cd\u5e94\u901f\u5ea6\u3001\u6027\u80fd,\u5f53\u6709\u9ad8\u9700\u6c42\u65f6\u8fc5\u901f\u8df3\u5230\u9ad8\u9891\u7387,\u5f53\u4f4e\u9700\u6c42\u65f6\u9010\u6e10\u964d\u4f4e\u9891\u7387,\u76f8\u6bd4ondemand\u8d39\u7535\u3002\u8fd9\u8d27\u7adf\u7136\u662f\u6e23\u7c73\u7684\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u770b\u6765\u65f6\u4e0d\u65f6\u53d1\u53d1\u70e7\u4e5f\u662f\u6709\u7406\u7531\u7684\u3002<\/p>\n<p>\u3010conservative\u3011\u4fdd\u5b88\u6a21\u5f0f:<br \/>\n\u2192\u548condemand\u76f8\u4f3c,\u89c4\u5219\u662f\u201c\u6162\u5347\u5feb\u964d\u201d,\u6ce8\u91cd\u7701\u7535,\u5f53\u6709\u9ad8\u9700\u6c42\u65f6\u9010\u6e10\u63d0\u9ad8\u9891\u7387,\u5f53\u4f4e\u9700\u6c42\u8fc5\u901f\u8df3\u81f3\u4f4e\u9891\u7387\u3002<\/p>\n<p>\u3010userspace\u3011\u7528\u6237\u6a21\u5f0f:<br \/>\n\u2192\u4efb\u4f55\u60c5\u51b5\u4e0b\u90fd\u4f1a\u63a7\u5236CPU\u8fd0\u884c\u5728\u914d\u7f6e\u7684\u9891\u7387\u8303\u56f4\u5185,\u914d\u7f6e\u4e2d\u7684\u7528\u6237\u81ea\u5df1\u6dfb\u52a0\u7684\u7701\u7535\u8bbe\u7f6e\u3002\u5728\u6b64\u60c5\u666f\u6a21\u5f0f\u4e0b,\u964d\u4f4eCPU\u6700\u5927\u8fd0\u884c\u9891\u7387\u53ef\u4ee5\u5ef6\u957f\u7535\u6c60\u5f85\u673a\u65f6\u95f4,\u4f46\u540c\u65f6\u4e5f\u4f1a\u964d\u4f4e\u673a\u5668\u7684\u5524\u9192\u901f\u5ea6\u3002\u561b\uff0c\u53cd\u6b63\u6211\u662f\u61d2\u5f97\u8c03\u53c2\u6570\u4e86\uff0c\u8fd9\u4e2a\u4f30\u8ba1\u6211\u7528\u4e0d\u7740~<\/p>\n<p>\u3010powersave\u3011\u7701\u7535\u6a21\u5f0f:<br \/>\n\u2192\u6309\u8bbe\u5b9a\u6700\u4f4e\u9891\u7387\u8fd0\u884c,\u65e5\u5e38\u6ca1\u6709\u4f7f\u7528\u4ef7\u503c,\u9664\u975e\u914d\u5408setcpu\u60c5\u666f\u6a21\u5f0f,\u5173\u5c4f\u7761\u7720\u65f6\u4f7f\u7528\u6b64\u8c03\u8282\u6a21\u5f0f,\u7701\u7535\u4f46\u7cfb\u7edf\u54cd\u5e94\u901f\u5ea6\u6162\u3002\u5f88\u7c7b\u4f3cWindows\u91cc\u9762\u7684[\u8282\u80fd]\u561b\u3002<\/p>\n<p>\u3010performance\u3011\u9ad8\u6027\u80fd\u6a21\u5f0f:<br \/>\n\u2192\u9ad8\u6027\u80fd\u6a21\u5f0f,\u6309\u4f60\u8bbe\u5b9a\u8303\u56f4\u7684\u6700\u9ad8\u9891\u7387\u8fd0\u884c,\u5373\u4f7f\u7cfb\u7edf\u8d1f\u8f7d\u975e\u5e38\u4f4ecpu\u7684\u9891\u7387\u4e5f\u4e3a\u6700\u9ad8\u3002\u6027\u80fd\u5f88\u597d,\u56e0\u4e3aCPU\u672c\u8eab\u4e0d\u9700\u8981\u8d44\u6e90\u53bb\u8c03\u6574\u9891\u7387,\u4f46\u662f\u7535\u91cf\u6d88\u8017\u8f83\u5feb,\u6e29\u5ea6\u4e5f\u9ad8\u4e00\u4e9b\u3002\u6e23\u7c73\u53d1\u70e7\u53cb\u5fc5\u5907233333<\/p>\n<p>\u770b\u8fc7\u8fd9\u4e9b\u89e3\u91ca\u4e4b\u540e\uff0c\u6211\u9009\u62e9\u4e86\u4fdd\u5b88\u6a21\u5f0f\u3002\u53ef\u4ee5\u8fbe\u5230CPU\u7684\u9700\u6c42\uff0c\u4e5f\u80fd\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u8282\u7535\u561b~<\/p>\n<p>&nbsp;<\/p>\n<p>\u8fd8\u6709\u4e00\u4e2a\u8bbe\u7f6e\u53eb[Multicore Power Saving]\uff0c\u591a\u6838\u8282\u7535\u5904\u7406\u3002<\/p>\n<p>\u539f\u7406\u662f\u5c3d\u91cf\u5c06\u5904\u7406\u4efb\u52a1\u4ea4\u7ed9\u5c3d\u53ef\u80fd\u5c11\u7684\u5904\u7406\u6838\u5fc3\u5904\u7406\u3002\u8bf4\u5b9e\u8bdd\u6211\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u8fd9\u80fd\u8282\u7535\uff0c\u65e2\u7136\u540d\u79f0\u662f\u8fd9\u6837\u4e86\uff0c\u5c31\u7ed9\u6253\u5f00\u4e86~<\/p>\n<p>&nbsp;<\/p>\n<p>BTW\uff0c\u8fd9\u4e2a\u8f6f\u4ef6\u6709\u4e00\u4e2a[Frequency Table]\u4fe1\u606f\uff0c\u80fd\u67e5\u770bCPU\u5728\u5404\u9891\u7387\u5de5\u4f5c\u7684\u65f6\u95f4\u3002\u901a\u8fc7\u5b83\u53ef\u4ee5\u770b\u5230\uff0c\u6e23\u7c733w\u7684CPU\u5747\u8861\u6a21\u5f0f\u628a\u56db\u6838CPU\u7684\u6700\u9ad8\u9891\u7387\u964d\u5230\u4e86960MHz\uff0c\u6700\u9ad8\u9891\u7387\u7684\u4e00\u822c\u5466~<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong>\u7136\u540e\u662fI\/O\u8c03\u5ea6\u7684\u8bbe\u7f6e\u6a21\u5757<\/strong><\/p>\n<p>\u91cc\u9762\u6709\u4e00\u4e2a\u633a\u6709\u610f\u601d\u7684\u8bbe\u7f6e\u662f[Internal Storage Scheduler]\uff0c\u7528\u6765\u8bbe\u7f6e\u8bbe\u5907\u7684\u5904\u7406I\/O\u8bf7\u6c42\u7684\u7b97\u6cd5\u7684~\u6709\u4ee5\u4e0b\u9009\u9879\uff1a<\/p>\n<p>\u3010noop\u3011<br \/>\n\u8fd9\u4e2a\u8c03\u5ea6\u6a21\u5f0f\u4f1a\u628a\u6240\u6709\u7684\u6570\u636e\u8bf7\u6c42\u76f4\u63a5\u5408\u5e76\u5230\u4e00\u4e2a\u7b80\u5355\u7684\u961f\u5217\u91cc\u3002\u4e0d\u9002\u5408\u6709\u673a\u68b0\u7ed3\u6784\u7684\u5b58\u50a8\u5668\uff0c\u56e0\u4e3a\u6ca1\u6709\u4f18\u5316\u987a\u5e8f\uff0c\u4f1a\u589e\u52a0\u989d\u5916\u7684\u5bfb\u9053\u65f6\u95f4\u3002\u5c5e\u4e8e\u6700\u7b80\u5355\u7684\u4e00\u4e2a\u8c03\u5ea6\u6a21\u5f0f\uff0c\u65e0\u89c6io\u64cd\u4f5c\u4f18\u5148\u7ea7\u548c\u590d\u6742\u6027\uff0c\u6267\u884c\u5b8c\u4e00\u4e2a\u518d\u6267\u884c\u4e00\u4e2a\uff0c\u5982\u679c\u8bfb\u5199\u64cd\u4f5c\u7e41\u591a\u7684\u8bdd\uff0c\u5c31\u4f1a\u9020\u6210\u6548\u7387\u964d\u4f4e\u3002<\/p>\n<p>\u3010deadline\u3011<br \/>\n\u987e\u540d\u601d\u4e49\uff0c\u7528\u8fc7\u671f\u65f6\u95f4\u6765\u6392\u5e8fio\u64cd\u4f5c\u987a\u5e8f\uff0c\u4fdd\u8bc1\u5148\u51fa\u73b0\u7684io\u8bf7\u6c42\u6709\u6700\u77ed\u7684\u5ef6\u8fdf\u65f6\u95f4\uff0c\u76f8\u5bf9\u4e8e\u5199\u64cd\u4f5c\uff0c\u7ed9\u8bfb\u64cd\u4f5c\u66f4\u4f18\u5148\u7684\u7ea7\u522b\u3002\u662f\u6bd4\u8f83\u597d\u7684\u4e00\u4e2a\u8c03\u5ea6\u6a21\u5f0f\u3002<\/p>\n<p>\u3010cfq\u3011<br \/>\n\u5b8c\u5168\u516c\u5e73\u961f\u5217\uff0c\u662fanticipatory\u6a21\u5f0f\u7684\u66ff\u4ee3\u54c1\uff0c\u6ca1\u6709\u8fc7\u591a\u7684\u505a\u9884\u6d4b\u6027\u8c03\u5ea6\uff0c\u800c\u662f\u6839\u636e\u7ed9\u5b9a\u7684\u8fdb\u7a0bio\u4f18\u5148\u7ea7\uff0c\u76f4\u63a5\u6765\u5206\u914d\u64cd\u4f5c\u7684\u987a\u5e8f\u3002\u8fd9\u4e2a\u6a21\u5f0f\u5728linux\u4e0a\u8868\u73b0\u826f\u597d\uff0c\u4f46\u4e5f\u8bb8\u5e76\u4e0d\u662f\u6700\u9002\u5408android\u7684io\u8c03\u5ea6\u6a21\u5f0f\uff0c\u592a\u5f3a\u8c03\u5747\u8861\uff0c\u800c\u964d\u4f4e\u4e86\u8fde\u7eed\u8bfb\u5199\u6570\u636e\u7684\u6027\u80fd\u3002<\/p>\n<p>\u6b64\u5916\u8fd8\u6709\u3010row\u3011\u548c\u3010test-iosched\u3011\uff0c\u7b49\u6211\u627e\u5230\u8d44\u6599\u540e\u518d\u8865\u4e0a\u89e3\u91ca~<\/p>\n<p>\u6839\u636e\u63cf\u8ff0\uff0c\u6211\u5c31Happy\u5730\u8bbe\u7f6e\u4e3a\u4e86deadline~<\/p>\n<hr \/>\n<p>\u8bf4\u53e5\u9898\u5916\u8bdd\uff0c\u6211\u53d1\u73b0\u6e23\u7c73\u5728\u53cc\u6e05\u4e4b\u540e\uff0c\u7cfb\u7edf\u5feb\uff01\u4e86\uff01\u5f88\uff01\u591a\uff01\u6bd4\u4efb\u4f55\u4f18\u5316\u8f6f\u4ef6\u90fd\u5f3a\u3002\u53ea\u4e0d\u8fc7\u6211\u7684\u6570\u636eToT\u3002<\/p>\n<p>\u4f30\u8ba1\u53cc\u6e05\u7684\u65f6\u5019\u6e05\u695a\u4e86\u597d\u591a\u4e71\u4e03\u516b\u7cdf\u8f6f\u4ef6\u5efa\u7acb\u7684\u65e0\u7528\u6587\u4ef6\u5939\u5427\u3002\u6e05\u6e05\u66f4\u5065\u5eb7~<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style1 like-1054 jlk' href='javascript:void(0)' data-task='like' data-post_id='1054' data-nonce='04e6d4f724' rel='nofollow'><img class='wti-pixel' src='https:\/\/imhy.zbyzbyzby.com\/wordpress\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-1054 lc'>+2<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style1 unlike-1054 jlk' href='javascript:void(0)' data-task='unlike' data-post_id='1054' data-nonce='04e6d4f724' rel='nofollow'><img class='wti-pixel' src='https:\/\/imhy.zbyzbyzby.com\/wordpress\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Unlike' \/><span class='unlc-1054 unlc'>0<\/span><\/a><\/div> <\/div> <div class='status-1054 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>#\u8bf4\u662f\u5b89\u5353\u7684\u5185\u6838\uff0c\u5176\u5b9e\u5e94\u8be5Linux\u7cfb\u7edf\u90fd\u6709\u76f8\u5173\u7684\u8bbe\u7f6e\u7684\u5427 #\u6587\u7ae0\u5185\u5bb9\u90e8\u5206\u6458\u5f55\u4e8e &#8230; <a class=\"more-link\" href=\"https:\/\/imhy.zbyzbyzby.com\/wordpress\/?p=1054\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[88],"class_list":["post-1054","post","type-post","status-publish","format-standard","hentry","category-android","tag-android"],"_links":{"self":[{"href":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1054"}],"version-history":[{"count":3,"href":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1054\/revisions"}],"predecessor-version":[{"id":1057,"href":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1054\/revisions\/1057"}],"wp:attachment":[{"href":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imhy.zbyzbyzby.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}