{"id":75613,"date":"2023-12-31T18:13:49","date_gmt":"2023-12-31T10:13:49","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=75613"},"modified":"2023-12-31T18:13:49","modified_gmt":"2023-12-31T10:13:49","slug":"xnncjz","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/75613.html","title":{"rendered":"\u865a\u62df\u5185\u5b58\u673a\u5236"},"content":{"rendered":"
\u865a\u62df\u5185\u5b58\u662f\u73b0\u4ee3\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u7684\u4e00\u4e2a\u6838\u5fc3\u6982\u5ff5\uff0c\u5b83\u901a\u8fc7\u5c06\u8ba1\u7b97\u673a\u7684\u7269\u7406\u5185\u5b58\u4e0e\u786c\u76d8\u7a7a\u95f4\u7ed3\u5408\u8d77\u6765\uff0c\u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u5730\u5740\u7a7a\u95f4\u548c\u66f4\u7075\u6d3b\u7684\u5185\u5b58\u7ba1\u7406\u65b9\u5f0f\u3002\u4eca\u5929\u6211\u4eec\u5c06\u4ecb\u7ecd\u865a\u62df\u5185\u5b58\u673a\u5236\u7684\u539f\u7406\u3001\u4f5c\u7528\u548c\u5b9e\u73b0\u65b9\u6cd5\uff0c\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u8fd9\u4e00\u5173\u952e\u6280\u672f\u3002<\/p>\n
\u865a\u62df\u5185\u5b58\u673a\u5236\u57fa\u4e8e\u8ba1\u7b97\u673a\u4f53\u7cfb\u7ed3\u6784\u4e2d\u7684\u5730\u5740\u8f6c\u6362\u539f\u7406\u3002\u5b83\u5141\u8bb8\u64cd\u4f5c\u7cfb\u7edf\u4f7f\u7528\u786c\u76d8\u7a7a\u95f4\u4f5c\u4e3a\u8f85\u52a9\u5185\u5b58\uff0c\u4ee5\u6ee1\u8db3\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684\u5185\u5b58\u9700\u6c42\u3002\u5728\u865a\u62df\u5185\u5b58\u7684\u5de5\u4f5c\u539f\u7406\u4e2d\uff0c\u6bcf\u4e2a\u8fdb\u7a0b\u90fd\u88ab\u5206\u914d\u4e86\u4e00\u5757\u8fde\u7eed\u7684\u865a\u62df\u5730\u5740\u7a7a\u95f4\uff0c\u8fd9\u4e9b\u865a\u62df\u5730\u5740\u7a7a\u95f4\u88ab\u6620\u5c04\u5230\u7269\u7406\u5185\u5b58\u6216\u8f85\u52a9\u5b58\u50a8\u5668\u4e2d\u3002\u5f53\u7a0b\u5e8f\u8bbf\u95ee\u865a\u62df\u5185\u5b58\u65f6\uff0c\u865a\u62df\u5185\u5b58\u7ba1\u7406\u5355\u5143\uff08MMU\uff09\u8d1f\u8d23\u5c06\u865a\u62df\u5730\u5740\u8f6c\u6362\u4e3a\u7269\u7406\u5730\u5740\u6216\u8005\u5904\u7406\u9875\u9762\u7f6e\u6362\uff0c\u4ee5\u4fdd\u8bc1\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n
\u5728\u865a\u62df\u5185\u5b58\u673a\u5236\u4e2d\uff0c\u9875\u9762\u7f6e\u6362\u7b97\u6cd5\u8d77\u7740\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\u3002\u5f53\u7269\u7406\u5185\u5b58\u4e0d\u8db3\u65f6\uff0c\u64cd\u4f5c\u7cfb\u7edf\u9700\u8981\u9009\u62e9\u54ea\u4e9b\u9875\u9762\u4ece\u7269\u7406\u5185\u5b58\u4e2d\u7f6e\u6362\u51fa\u53bb\u4ee5\u4fbf\u4e3a\u65b0\u7684\u9875\u9762\u817e\u51fa\u7a7a\u95f4\u3002\u5e38\u89c1\u7684\u9875\u9762\u7f6e\u6362\u7b97\u6cd5\u6709\u6700\u4f73\uff08OPT\uff09\u3001\u5148\u8fdb\u5148\u51fa\uff08FIFO\uff09\u3001\u6700\u8fd1\u6700\u5c11\u4f7f\u7528\uff08LRU\uff09\u7b49\u3002\u4e0d\u540c\u7684\u7b97\u6cd5\u5bf9\u7cfb\u7edf\u6027\u80fd\u6709\u7740\u4e0d\u540c\u7684\u5f71\u54cd\uff0c\u64cd\u4f5c\u7cfb\u7edf\u9700\u8981\u6839\u636e\u5177\u4f53\u5e94\u7528\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u7b97\u6cd5\u6765\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u3002<\/p>\n
\u9875\u9762\u8868\u662f\u865a\u62df\u5185\u5b58\u7ba1\u7406\u4e2d\u7684\u91cd\u8981\u6570\u636e\u7ed3\u6784\uff0c\u5b83\u8bb0\u5f55\u4e86\u865a\u62df\u9875\u9762\u4e0e\u7269\u7406\u9875\u9762\u7684\u6620\u5c04\u5173\u7cfb\u3002\u5f53\u7a0b\u5e8f\u8bbf\u95ee\u67d0\u4e2a\u865a\u62df\u5730\u5740\u65f6\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u6839\u636e\u9875\u9762\u8868\u627e\u5230\u5bf9\u5e94\u7684\u7269\u7406\u5730\u5740\uff0c\u4ece\u800c\u5b8c\u6210\u5730\u5740\u8f6c\u6362\u3002\u9875\u9762\u8868\u7684\u5927\u5c0f\u548c\u8bbf\u95ee\u6548\u7387\u76f4\u63a5\u5f71\u54cd\u4e86\u7cfb\u7edf\u7684\u6027\u80fd\uff0c\u56e0\u6b64\u9875\u9762\u8868\u7684\u8bbe\u8ba1\u548c\u7ba1\u7406\u65b9\u5f0f\u4e5f\u662f\u865a\u62df\u5185\u5b58\u673a\u5236\u4e2d\u7684\u5173\u952e\u95ee\u9898\u4e4b\u4e00\u3002<\/p>\n
\u865a\u62df\u5185\u5b58\u673a\u5236\u7684\u5f15\u5165\u5e26\u6765\u4e86\u591a\u65b9\u9762\u7684\u76ca\u5904\u3002\u9996\u5148\uff0c\u5b83\u5141\u8bb8\u6bcf\u4e2a\u7a0b\u5e8f\u4f7f\u7528\u6bd4\u5b9e\u9645\u7269\u7406\u5185\u5b58\u66f4\u5927\u7684\u5730\u5740\u7a7a\u95f4\uff0c\u4ece\u800c\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u63d0\u9ad8\u4e86\u5185\u5b58\u8d44\u6e90\u7684\u5229\u7528\u7387\u3002\u5176\u6b21\uff0c\u865a\u62df\u5185\u5b58\u4f7f\u5f97\u7a0b\u5e8f\u8bbe\u8ba1\u66f4\u52a0\u7075\u6d3b\uff0c\u7a0b\u5e8f\u5458\u4e0d\u518d\u9700\u8981\u5173\u5fc3\u5b9e\u9645\u7269\u7406\u5185\u5b58\u7684\u5206\u914d\u548c\u7ba1\u7406\uff0c\u800c\u662f\u53ef\u4ee5\u4e13\u6ce8\u4e8e\u7a0b\u5e8f\u903b\u8f91\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\u3002\u6b64\u5916\uff0c\u865a\u62df\u5185\u5b58\u8fd8\u63d0\u9ad8\u4e86\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u5b89\u5168\u6027\uff0c\u907f\u514d\u4e86\u7a0b\u5e8f\u4e4b\u95f4\u76f8\u4e92\u5e72\u6270\uff0c\u63d0\u9ad8\u4e86\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u3002<\/p>\n
\u865a\u62df\u5185\u5b58\u673a\u5236\u5141\u8bb8\u64cd\u4f5c\u7cfb\u7edf\u5728\u6bcf\u4e2a\u8fdb\u7a0b\u7684\u865a\u62df\u5730\u5740\u7a7a\u95f4\u4e4b\u95f4\u8fdb\u884c\u9694\u79bb\u548c\u4fdd\u62a4\u3002\u4e0d\u540c\u8fdb\u7a0b\u4e4b\u95f4\u7684\u5185\u5b58\u7a7a\u95f4\u662f\u76f8\u4e92\u72ec\u7acb\u7684\uff0c\u4e00\u4e2a\u8fdb\u7a0b\u4e0d\u80fd\u975e\u6cd5\u8bbf\u95ee\u53e6\u4e00\u4e2a\u8fdb\u7a0b\u7684\u5185\u5b58\u6570\u636e\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027\u3002\u6b64\u5916\uff0c\u865a\u62df\u5185\u5b58\u8fd8\u53ef\u4ee5\u5bf9\u7279\u5b9a\u7684\u5185\u5b58\u533a\u57df\u8fdb\u884c\u8bfb\u5199\u6743\u9650\u7684\u63a7\u5236\uff0c\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u9632\u6b62\u4e86\u7a0b\u5e8f\u7684\u9519\u8bef\u64cd\u4f5c\u5bf9\u7cfb\u7edf\u9020\u6210\u7684\u7834\u574f\u3002<\/p>\n
\u865a\u62df\u5185\u5b58\u7684\u5f15\u5165\u8fd8\u5e26\u6765\u4e86\u4ea4\u6362\u7a7a\u95f4\uff08Swap Space\uff09\u7684\u6982\u5ff5\u3002\u5f53\u7269\u7406\u5185\u5b58\u7d27\u7f3a\u65f6\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u5c06\u4e0d\u5e38\u4f7f\u7528\u7684\u5185\u5b58\u9875\u9762\u7f6e\u6362\u5230\u786c\u76d8\u4e2d\uff0c\u4ece\u800c\u4e3a\u65b0\u7684\u5185\u5b58\u9700\u6c42\u817e\u51fa\u7a7a\u95f4\u3002\u4ea4\u6362\u7a7a\u95f4\u7684\u5927\u5c0f\u548c\u7ba1\u7406\u5bf9\u7cfb\u7edf\u7684\u6027\u80fd\u6709\u7740\u91cd\u8981\u7684\u5f71\u54cd\uff0c\u64cd\u4f5c\u7cfb\u7edf\u9700\u8981\u5408\u7406\u5730\u914d\u7f6e\u4ea4\u6362\u7a7a\u95f4\uff0c\u4ee5\u6700\u5927\u7a0b\u5ea6\u5730\u63d0\u9ad8\u7cfb\u7edf\u7684\u54cd\u5e94\u901f\u5ea6\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n
\u865a\u62df\u5185\u5b58\u7684\u5b9e\u73b0\u65b9\u5f0f\u591a\u79cd\u591a\u6837\uff0c\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u786c\u4ef6\u5e73\u53f0\u5e38\u5e38\u4f1a\u91c7\u7528\u4e0d\u540c\u7684\u65b9\u6848\u6765\u5b9e\u73b0\u865a\u62df\u5185\u5b58\u673a\u5236\u3002\u5e38\u89c1\u7684\u5b9e\u73b0\u65b9\u5f0f\u5305\u62ec\u5206\u9875\u5f0f\uff08Paging\uff09\u548c\u5206\u6bb5\u5f0f\uff08Segmentation\uff09\uff0c\u5b83\u4eec\u6709\u7740\u5404\u81ea\u7684\u7279\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u64cd\u4f5c\u7cfb\u7edf\u9700\u8981\u6839\u636e\u5b9e\u9645\u9700\u6c42\u7075\u6d3b\u4f7f\u7528\u8fd9\u4e9b\u6280\u672f\u624b\u6bb5\u3002<\/p>\n
\u5206\u9875\u5f0f\u865a\u62df\u5185\u5b58\u5c06\u865a\u62df\u5730\u5740\u7a7a\u95f4\u548c\u7269\u7406\u5730\u5740\u7a7a\u95f4\u5212\u5206\u4e3a\u56fa\u5b9a\u5927\u5c0f\u7684\u9875\u9762\uff0c\u6bcf\u4e2a\u9875\u9762\u5728\u7269\u7406\u5185\u5b58\u548c\u786c\u76d8\u7a7a\u95f4\u4e2d\u90fd\u6709\u5bf9\u5e94\u7684\u4f4d\u7f6e\u3002\u5f53\u7a0b\u5e8f\u9700\u8981\u8bbf\u95ee\u67d0\u4e2a\u865a\u62df\u5730\u5740\u65f6\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u6839\u636e\u9875\u9762\u8868\u5c06\u8be5\u5730\u5740\u6620\u5c04\u5230\u5bf9\u5e94\u7684\u7269\u7406\u5730\u5740\uff0c\u5982\u679c\u8be5\u9875\u9762\u4e0d\u5728\u7269\u7406\u5185\u5b58\u4e2d\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u8fdb\u884c\u9875\u9762\u7f6e\u6362\u64cd\u4f5c\u3002<\/p>\n
TLB\u662f\u4e00\u79cd\u786c\u4ef6\u52a0\u901f\u6280\u672f\uff0c\u5b83\u7528\u4e8e\u7f13\u5b58\u9875\u9762\u8868\u4e2d\u7684\u90e8\u5206\u6620\u5c04\u4fe1\u606f\uff0c\u4ee5\u63d0\u9ad8\u5730\u5740\u8f6c\u6362\u7684\u901f\u5ea6\u3002TLB\u7684\u5f15\u5165\u663e\u8457\u63d0\u9ad8\u4e86\u5206\u9875\u5f0f\u865a\u62df\u5185\u5b58\u7684\u8bbf\u95ee\u6027\u80fd\uff0c\u51cf\u5c11\u4e86\u5bf9\u5185\u5b58\u7684\u9891\u7e41\u8bbf\u95ee\uff0c\u63d0\u9ad8\u4e86\u7cfb\u7edf\u7684\u6574\u4f53\u6548\u7387\u3002<\/p>\n
\u5206\u6bb5\u5f0f\u865a\u62df\u5185\u5b58\u5c06\u865a\u62df\u5730\u5740\u7a7a\u95f4\u548c\u7269\u7406\u5730\u5740\u7a7a\u95f4\u5212\u5206\u4e3a\u591a\u4e2a\u4e0d\u540c\u957f\u5ea6\u7684\u6bb5\uff0c\u6bcf\u4e2a\u6bb5\u5177\u6709\u72ec\u7acb\u7684\u57fa\u5740\u548c\u754c\u9650\u4fe1\u606f\u3002\u8fd9\u79cd\u673a\u5236\u66f4\u9002\u5408\u4e8e\u652f\u6301\u52a8\u6001\u53d8\u5316\u7684\u5185\u5b58\u9700\u6c42\u548c\u7a0b\u5e8f\u8bbe\u8ba1\u6a21\u5f0f\uff0c\u540c\u65f6\u4e5f\u66f4\u7075\u6d3b\u5730\u652f\u6301\u7a0b\u5e8f\u4e4b\u95f4\u5171\u4eab\u548c\u5206\u79bb\u7684\u9700\u6c42\u3002<\/p>\n
\u865a\u62df\u5185\u5b58\u673a\u5236\u4f5c\u4e3a\u73b0\u4ee3\u8ba1\u7b97\u673a\u7cfb\u7edf\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u4e3a\u7cfb\u7edf\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u5185\u5b58\u7ba1\u7406\u65b9\u5f0f\u548c\u66f4\u5927\u7684\u5730\u5740\u7a7a\u95f4\u3002<\/strong>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u8bfb\u8005\u5bf9\u865a\u62df\u5185\u5b58\u7684\u539f\u7406\u3001\u4f5c\u7528\u548c\u5b9e\u73b0\u65b9\u5f0f\u6709\u4e86\u66f4\u6df1\u5165\u7684\u4e86\u89e3\uff0c\u76f8\u4fe1\u80fd\u591f\u66f4\u597d\u5730\u638c\u63e1\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u8fd9\u4e00\u5173\u952e\u6280\u672f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u865a\u62df\u5185\u5b58\u662f\u73b0\u4ee3\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u7684\u4e00\u4e2a\u6838\u5fc3\u6982\u5ff5\uff0c\u5b83\u901a\u8fc7\u5c06\u8ba1\u7b97\u673a\u7684\u7269\u7406\u5185\u5b58\u4e0e\u786c\u76d8\u7a7a\u95f4\u7ed3\u5408\u8d77\u6765\uff0c\u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u5730\u5740\u7a7a\u95f4\u548c\u66f4\u7075\u6d3b\u7684\u5185\u5b58\u7ba1\u7406\u65b9\u5f0f\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u865a\u62df\u5185\u5b58\u673a\u5236\u7684\u539f\u7406\u3001\u4f5c\u7528\u548c\u5b9e\u73b0<\/p>\n","protected":false},"author":1,"featured_media":64183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-75613","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/75613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=75613"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/75613\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=75613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=75613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=75613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}