{"id":127,"date":"2017-10-31T11:46:51","date_gmt":"2017-10-31T03:46:51","guid":{"rendered":"https:\/\/damogame.cn\/?p=127"},"modified":"2017-10-31T11:46:51","modified_gmt":"2017-10-31T03:46:51","slug":"windows-%e4%bb%bb%e5%8a%a1%e7%ae%a1%e7%90%86%e5%99%a8%e4%b8%ad%e7%9a%84%e5%87%a0%e4%b8%aa%e5%86%85%e5%ad%98%e6%a6%82%e5%bf%b5","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/127","title":{"rendered":"Windows \u4efb\u52a1\u7ba1\u7406\u5668\u4e2d\u7684\u51e0\u4e2a\u5185\u5b58\u6982\u5ff5"},"content":{"rendered":"<div class=\"article_bar clearfix\">\n<div class=\"artical_tag\"><span class=\"original\">\u8f6c\u8f7d<\/span>\u00a0<span class=\"time\">2016\u5e7407\u670830\u65e5 18:34:43<\/span><\/div>\n<ul class=\"right_bar\">\n<li><button class=\"btn-noborder\"><i class=\"icon iconfont icon-read\"><\/i><span class=\"txt\">938<\/span><\/button><\/li>\n<\/ul>\n<\/div>\n<div id=\"article_content\" class=\"article_content csdn-tracking-statistics\" data-mod=\"popu_307\" data-dsm=\"post\">\n<p>\u6211\u4eec\u4f7f\u7528\u7684\u5927\u90e8\u5206 PC \u662f\u57fa\u4e8e Intel\u00a0\u5fae\u5904\u7406\u5668\u7684 x86 \u548c x64 \u67b6\u6784\u8ba1\u7b97\u673a.<\/p>\n<p>\u56e0\u6b64, \u6211\u4eec\u9762\u5bf9\u7684 windows \u907f\u514d\u4e0d\u4e86\u548c Intel \u67b6\u6784\u6709\u4e9b\u8bbe\u8ba1\u4e0a\u7684\u5951\u5408. \u6bd4\u5982\u63a5\u4e0b\u6765\u8981\u8bf4\u5230\u7684\u5185\u5b58\u7ba1\u7406.\u00a0<strong>\u4e3a\u7b80\u5355\u8d77\u89c1, \u6211\u4eec\u53ea\u8ba8\u8bba x86 \u4f53\u7cfb\u67b6\u6784\u7684\u5185\u5b58\u7ba1\u7406. \u4e0d\u8003\u8651\u6362\u9875\u6587\u4ef6\u5f71\u54cd.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u8fdb\u7a0b\u7684\u5185\u5b58<\/p>\n<hr \/>\n<p><img decoding=\"async\" src=\"http:\/\/img.blog.csdn.net\/20160730183304560?watermark\/2\/text\/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv\/font\/5a6L5L2T\/fontsize\/400\/fill\/I0JBQkFCMA==\/dissolve\/70\/gravity\/Center\" alt=\"\" \/><\/p>\n<p><em>\u00a0<\/em>\u56fe 1<em>\u00a0(\u672c\u56fe\u6458\u81ea ref 2)<\/em><\/p>\n<p>\u5bf9\u4e8e\u7cfb\u7edf\u4e2d\u7684\u6bcf\u4e00\u4e2a\u8fdb\u7a0b\u800c\u8a00, \u90fd\u6709 4GB \u7684 &#8220;\u5185\u5b58\u7a7a\u95f4&#8221;. \u4e5f\u5c31\u662f\u6bcf\u4e2a\u8fdb\u7a0b\u90fd\u8ba4\u4e3a\u81ea\u5df1\u6709 4GB \u7684\u5185\u5b58\u53ef\u4ee5\u4f7f\u7528.<\/p>\n<p>\u7cfb\u7edf\u5c06\u6bcf\u4e2a\u8fdb\u7a0b\u7684 4GB \u5730\u5740\u7a7a\u95f4, \u4ece\u903b\u8f91\u4e0a\u5212\u5206\u4e3a\u4e24\u5927\u90e8\u5206:<\/p>\n<p>a)\u00a0\u84dd\u8272\u7684\u662f\u7528\u6237\u7a7a\u95f4, \u6b64\u7a7a\u95f4\u662f\u88ab\u7528\u6237\u7a0b\u5e8f\u6240\u4f7f\u7528\u7684. \u6bd4\u5982\u6211\u5728\u4ee3\u7801\u4e2d\u5199 &#8220;\u5206\u914d 100MB \u5185\u5b58&#8221;, \u5176\u5b9e\u5360\u7528\u7684\u5c31\u662f\u8fd9\u4e00\u90e8\u5206.<\/p>\n<p>b) \u7ea2\u8272\u7684\u662f\u5185\u6838\u7a7a\u95f4, \u6b64\u7a7a\u95f4\u662f\u88ab\u7528\u4f5c\u64cd\u4f5c\u7cfb\u7edf\u6267\u884c\u5fc5\u8981\u7684\u7ebf\u7a0b\u5207\u6362\u4ee5\u53ca\u4ece\u7528\u6237\u6001\u51fd\u6570\u8fdb\u5165\u5185\u6838\u6001\u6267\u884c\u529f\u80fd\u6240\u4fdd\u7559\u7684\u5185\u5b58\u5730\u5740. \u5e94\u7528\u7a0b\u5e8f\u65e0\u6cd5\u64cd\u4f5c\u6b64\u533a\u57df.<\/p>\n<p>&nbsp;<\/p>\n<p>Intel x86 \u4f53\u7cfb\u5185\u5b58\u7ba1\u7406<\/p>\n<hr \/>\n<p>Intel \u89c4\u5b9a, \u4e00\u4e2a\u5728\u8ba1\u7b97\u673a\u5185\u90e8, \u53ef\u4ee5\u4f7f\u7528 &#8220;\u5206\u9875\u673a\u5236&#8221; \u5bf9\u786c\u4ef6\u5185\u5b58\u8fdb\u884c &#8220;\u865a\u62df\u5316&#8221;. \u5176\u6838\u5fc3\u6280\u672f\u5982\u4e0b\u56fe:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/img.blog.csdn.net\/20160730183337843?watermark\/2\/text\/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv\/font\/5a6L5L2T\/fontsize\/400\/fill\/I0JBQkFCMA==\/dissolve\/70\/gravity\/Center\" alt=\"\" \/><\/p>\n<p><em>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/em>\u56fe 2<em>\u00a0(\u672c\u56fe\u4fee\u6539\u81ea ref 1)<\/em><\/p>\n<p>\u9996\u5148, \u5728\u7a0b\u5e8f\u4e2d\u7684\u4e00\u4e2a\u5730\u5740 0x1234, 5678 \u88ab\u8ba1\u7b97\u673a\u7684\u9875\u90e8\u4ef6(\u786c\u4ef6)\u7ecf\u8fc7 1,2,3 \u6b65, \u4ece\u7ebf\u6027\u5730\u5740(\u7a0b\u5e8f\u4e2d\u7684\u5730\u5740) \u8f6c\u53d8\u4e3a\u771f\u6b63\u673a\u5668\u4e0a\u7684\u7269\u7406\u5730\u5740(\u5373\u5b9e\u9645\u5185\u5b58\u7684\u786c\u4ef6\u5730\u5740). \u6bcf\u4e2a\u7ebf\u6027\u5730\u5740\u90fd\u88ab\u5206\u6210 &#8220;\u9875\u76ee\u5f55\u7d22\u5f15(PDE, 10-bit)&#8221;, &#8220;\u9875\u8868\u7d22\u5f15(PTE, 10-bit)&#8221;, &#8220;\u9875\u5185\u504f\u79fb(offset, 12-bit)&#8221; \u4e09\u90e8\u5206.<\/p>\n<p>1) \u5728\u9875\u76ee\u5f55\u4e2d\u6839\u636e PDE \u627e\u5230\u9875\u8868\u7684\u4f4d\u7f6e, \u5373\u901a\u8fc7 0x48 \u627e\u5230 0xa000, 0000.<\/p>\n<p>2) \u6839\u636e\u9875\u8868\u4e2d\u7684 PTE \u627e\u5230\u9875\u5730\u5740, \u5373\u901a\u8fc7 0x345 \u627e\u5230 0x4000, 0000.<\/p>\n<p>3) \u6839\u636e\u504f\u79fb, \u5728\u9875\u4e2d\u627e\u5230\u6211\u4eec\u8981\u7684\u5177\u4f53\u5730\u5740, \u5373\u5df2\u77e5\u9875\u4f4d\u4e8e 0x4000, 0000, \u6211\u4eec\u9700\u8981\u5b58\u53d6\u5176 0x678 \u504f\u79fb\u5904\u7684\u6570\u636e, \u5219\u6211\u4eec\u6240\u9700\u8981\u64cd\u4f5c\u7684\u771f\u662f\u7269\u7406\u5730\u5740\u5c31\u662f 0x4000, 0678.<\/p>\n<p>&nbsp;<\/p>\n<p>\u57fa\u4e8e x86 \u7684 Windows \u5185\u5b58\u7ba1\u7406<\/p>\n<hr \/>\n<p><img decoding=\"async\" src=\"http:\/\/img.blog.csdn.net\/20160730183351092?watermark\/2\/text\/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv\/font\/5a6L5L2T\/fontsize\/400\/fill\/I0JBQkFCMA==\/dissolve\/70\/gravity\/Center\" alt=\"\" \/><\/p>\n<p>\u56fe 3<\/p>\n<p>\u9996\u5148\u6f84\u6e05\u4e24\u4e2a\u6982\u5ff5:<\/p>\n<p>1.\u00a0\u4e00\u4e2a\u8fdb\u7a0b\u4e2d\u7684\u5185\u5b58\u6709\u4e09\u79cd\u5206\u7c7b,\u00a0<strong>\u7a7a\u95f2, \u4fdd\u7559, \u63d0\u4ea4<\/strong>. \u5177\u4f53\u7684\u542b\u4e49\u53ef\u4ee5\u5728\u00a0<em>\u56fe 3<\/em>\u00a0\u4e2d\u627e\u5230\u8bf4\u660e. \u8fd9\u4e09\u79cd\u7c7b\u578b\u7684\u5185\u5b58\u5728\u67d0\u4e00\u65f6\u523b\u53ef\u80fd\u4f4d\u4e8e\u5185\u5b58\u4e2d, \u4e5f\u53ef\u80fd\u4f4d\u4e8e\u4ea4\u6362\u6587\u4ef6\u4e2d.<\/p>\n<p>2.\u00a0\u5de5\u4f5c\u96c6\u5b9a\u4e49:\u00a0The working set of a process is the set of pages in the virtual address space of the process that<strong>\u00a0are currently resident in physical memory<\/strong>. \u5373: \u5b9e\u9645\u5728\u7269\u7406\u5185\u5b58\u4e2d\u7684\u5927\u5c0f.<\/p>\n<p>\u7ed3\u5408\u5b9e\u9645\u7cfb\u7edf, \u4ee5\u6211\u5bb6\u5b89\u88c5\u7684\u00a0win8.1 \u4e3a\u4f8b, \u6253\u5f00\u4efb\u52a1\u7ba1\u7406\u5668, \u53ef\u89c1\u5982\u4e0b:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/img.blog.csdn.net\/20160730183406109?watermark\/2\/text\/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv\/font\/5a6L5L2T\/fontsize\/400\/fill\/I0JBQkFCMA==\/dissolve\/70\/gravity\/Center\" alt=\"\" \/><\/p>\n<p><em>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/em>\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u56fe 4<\/p>\n<p>\u5de5\u4f5c\u96c6(\u5185\u5b58): \u53ef\u4ee5\u8fd9\u4e48\u7406\u89e3, \u6b64\u503c\u5c31\u662f\u8be5\u8fdb\u7a0b\u6240\u5360\u7528\u7684\u603b\u7269\u7406\u5185\u5b58. \u4f46\u662f\u8fd9\u4e2a\u503c\u662f\u7531\u4e24\u90e8\u5206\u7ec4\u6210, \u5373\u00a0<strong>&#8216;\u4e13\u7528\u5de5\u4f5c\u96c6&#8217;<\/strong>\u00a0+\u00a0<strong>&#8216;\u5171\u4eab\u5de5\u4f5c\u96c6&#8217;<\/strong>.<\/p>\n<p>\u5185\u5b58(\u4e13\u7528\u5de5\u4f5c\u96c6): \u8fd9\u5bf9\u4e8e\u4e00\u4e2a\u8fdb\u7a0b\u662f\u6700\u91cd\u8981\u7684, \u5b83\u4ee3\u8868\u4e86\u4e00\u4e2a\u8fdb\u7a0b<strong>\u72ec\u5360<\/strong>\u7528\u4e86\u591a\u5c11\u5185\u5b58.<\/p>\n<p>\u5185\u5b58(\u5171\u4eab\u5de5\u4f5c\u96c6): \u8fd9\u662f\u8be5\u8fdb\u7a0b<strong>\u548c\u522b\u7684\u8fdb\u7a0b\u5171\u4eab<\/strong>\u7684\u5185\u5b58\u91cf. \u901a\u5e38, \u8fd9\u662f\u52a0\u8f7d\u4e00\u4e2a dll \u6240\u5360\u7528\u7684\u5185\u5b58.<\/p>\n<p>\u63d0\u4ea4\u5927\u5c0f: \u5c5e\u4e8e Committed \u90a3\u4e00\u7c7b. \u4f46\u662f<strong>\u4e0d\u4e00\u5b9a\u5728\u7269\u7406\u5185\u5b58\u4e2d<\/strong>, \u6709\u4e9b\u53ef\u80fd\u4f4d\u4e8e\u4ea4\u6362\u6587\u4ef6\u4e2d. \u5982\u679c\u6709\u4e00\u4e2a\u7a0b\u5e8f, \u539f\u672c\u5360 500MB \u5185\u5b58, \u4f46\u662f\u7edd\u5927\u591a\u6570\u5185\u5b58\u90fd\u4e0d\u4f7f\u7528, \u5219\u53ef\u4ee5\u901a\u8fc7 `EmptyWorkingSet` \u5411\u64cd\u4f5c\u7cfb\u7edf\u53d1\u9001\u8bf7\u6c42, \u5c06\u6b64\u8fdb\u7a0b\u7684\u4e0d\u5e38\u7528\u7684\u5185\u5bb9\u4ece\u7269\u7406\u5185\u5b58\u4e2d\u6362\u51fa\u5230\u6362\u9875\u6587\u4ef6\u4e2d\u4fdd\u5b58, \u5982\u4e0b\u56fe:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/img.blog.csdn.net\/20160730183424438?watermark\/2\/text\/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv\/font\/5a6L5L2T\/fontsize\/400\/fill\/I0JBQkFCMA==\/dissolve\/70\/gravity\/Center\" alt=\"\" \/><\/p>\n<p><em>\u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/em>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u56fe 5<\/p>\n<p>&nbsp;<\/p>\n<p>\u5199\u5728\u6700\u540e<\/p>\n<hr \/>\n<p>0. \u5de5\u4f5c\u96c6, \u5373\u5728\u7269\u7406\u5185\u5b58\u4e2d\u7684\u6570\u636e\u7684\u96c6\u5408.<\/p>\n<p>1. \u5de5\u4f5c\u96c6 = \u4e13\u7528 + \u5171\u4eab<\/p>\n<p>2. \u5c06\u6240\u6709\u7684 &#8220;\u5de5\u4f5c\u96c6&#8221; \u76f8\u52a0\u540e\u7684\u503c\u4f1a\u5927\u4e8e\u4efb\u52a1\u7ba1\u7406\u5668\u4e2d\u5185\u5b58\u5360\u7528\u7684\u767e\u5206\u6bd4, \u56e0\u4e3a\u767e\u5206\u6bd4\u5bf9\u5171\u4eab\u5185\u5b58\u8fdb\u884c\u6392\u91cd\u4e86.<\/p>\n<p>3. &#8220;\u63d0\u4ea4\u5927\u5c0f&#8221; \u548c &#8220;\u5de5\u4f5c\u96c6&#8221; \u662f\u4e24\u4e2a\u5c42\u9762\u7684\u6982\u5ff5, \u5927\u90e8\u5206\u6d3b\u8dc3\u8fdb\u7a0b\u7684 &#8220;\u5de5\u4f5c\u96c6&#8221; \u4f1a\u5927\u4e8e &#8220;\u63d0\u4ea4\u5927\u5c0f&#8221;, \u800c\u5927\u90e8\u5206\u975e\u6d3b\u8dc3\u7684\u8fdb\u7a0b &#8220;\u5de5\u4f5c\u96c6&#8221; \u4f1a\u5c0f\u4e8e &#8220;\u63d0\u4ea4\u5927\u5c0f&#8221;, \u4f46\u662f\u4e24\u8005\u6ca1\u6709\u7edd\u5bf9\u5173\u7cfb.<\/p>\n<p>4. \u865a\u62df\u5185\u5b58: \u5c31\u662f\u6362\u9875\u6587\u4ef6.<\/p>\n<p>&nbsp;<\/p>\n<p>references:<\/p>\n<p>1.\u00a0<a href=\"http:\/\/www.mouseos.com\/arch\/paging.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.mouseos.com\/arch\/paging.html<\/a><\/p>\n<p>2.\u00a0<a href=\"http:\/\/blogs.technet.com\/markrussinovich\/archive\/2008\/11\/17\/3155406.aspx\" target=\"_blank\" rel=\"noopener\">Pushing the Limits of Windows: Virtual Memory<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u8f7d\u00a02016\u5e7407\u670830\u65e5 18:34<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[118],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","tag-02-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}