{"id":15580,"date":"2024-11-18T13:26:10","date_gmt":"2024-11-18T05:26:10","guid":{"rendered":"https:\/\/fwq.ai\/blog\/15580\/"},"modified":"2024-11-18T13:26:10","modified_gmt":"2024-11-18T05:26:10","slug":"linux-4g%e5%86%85%e5%ad%98%e4%b8%ba%e4%bb%80%e4%b9%88%e5%8f%aa%e8%af%86%e5%88%ab%e4%ba%863-0","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/15580\/","title":{"rendered":"linux 4g\u5185\u5b58\u4e3a\u4ec0\u4e48\u53ea\u8bc6\u522b\u4e863.0"},"content":{"rendered":"<blockquote><p>\n  linux 4g\u5185\u5b58\u53ea\u8bc6\u522b\u4e863g\u539f\u56e0\u662f\uff1a1\u3001\u5185\u5b58\u5bfb\u5740\u7a7a\u95f4\u9650\u5236\uff0c32\u4f4d\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5982\u65e9\u671f\u7248\u672c\u7684linux\uff0c\u5177\u67094gb\u7684\u5185\u5b58\u5bfb\u5740\u7a7a\u95f4\u9650\u5236\uff0c\u5176\u4e2d\u4e00\u90e8\u5206\u5185\u5b58\u5730\u5740\u7a7a\u95f4\u88ab\u4fdd\u7559\u7ed9\u5176\u4ed6\u786c\u4ef6\u8bbe\u5907\uff1b2\u3001\u5185\u5b58\u6620\u5c04io\u533a\u57df\uff0c\u4e00\u4e9b\u786c\u4ef6\u8bbe\u5907\u9700\u8981\u4f7f\u7528\u4e00\u90e8\u5206\u5185\u5b58\u5730\u5740\u7a7a\u95f4\u8fdb\u884c\u5185\u5b58\u6620\u5c04i\/o\u64cd\u4f5c\uff0c\u8fd9\u4e9b\u533a\u57df\u88ab\u4fdd\u7559\u5e76\u5206\u914d\u7ed9\u8fd9\u4e9b\u8bbe\u5907\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202306\/29\/2023062910042766386.jpg\" class=\"aligncenter\" title=\"linux 4g\u5185\u5b58\u4e3a\u4ec0\u4e48\u53ea\u8bc6\u522b\u4e863.0\u63d2\u56fe\" alt=\"linux 4g\u5185\u5b58\u4e3a\u4ec0\u4e48\u53ea\u8bc6\u522b\u4e863.0\u63d2\u56fe\" \/><\/p>\n<p>\u672c\u6559\u7a0b\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux5.18.14\u7cfb\u7edf\u3001Dell G3\u7535\u8111\u3002<\/p>\n<p>\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u5982\u679c\u4f60\u7684\u8ba1\u7b97\u673a\u5177\u67094GB\u5185\u5b58\uff0c\u4f46\u53ea\u663e\u793a\u4e3a3.0GB\u53ef\u7528\uff0c\u8fd9\u53ef\u80fd\u662f\u7531\u4e8e\u4ee5\u4e0b\u51e0\u4e2a\u539f\u56e0\u5bfc\u81f4\u7684\uff1a<\/p>\n<p><strong>1\u3001\u5185\u5b58\u5bfb\u5740\u7a7a\u95f4\u9650\u5236\uff1a<\/strong><\/p>\n<p>32\u4f4d\u7684\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982\u65e9\u671f\u7248\u672c\u7684Linux\uff09\u5177\u67094GB\u7684\u5185\u5b58\u5bfb\u5740\u7a7a\u95f4\u9650\u5236\u3002\u5176\u4e2d\uff0c\u4e00\u90e8\u5206\u5185\u5b58\u5730\u5740\u7a7a\u95f4\u88ab\u4fdd\u7559\u7ed9\u5176\u4ed6\u786c\u4ef6\u8bbe\u5907\uff0c\u5982\u663e\u5361\u3001\u58f0\u5361\u7b49\u3002\u56e0\u6b64\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4ec5\u80fd\u4f7f\u7528\u5269\u4f59\u7684\u5730\u5740\u7a7a\u95f4\u6765\u5bfb\u5740\u5185\u5b58\uff0c\u800c\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u67d0\u4e9b\u5185\u5b58\u65e0\u6cd5\u88ab\u5b8c\u5168\u8bc6\u522b\u548c\u4f7f\u7528\u3002<\/p>\n<p><strong>2\u3001\u5185\u5b58\u6620\u5c04IO (MMIO) \u533a\u57df\uff1a<\/strong><\/p>\n<p>\u4e00\u4e9b\u786c\u4ef6\u8bbe\u5907\uff08\u5982\u663e\u5361\uff09\u9700\u8981\u4f7f\u7528\u4e00\u90e8\u5206\u5185\u5b58\u5730\u5740\u7a7a\u95f4\u8fdb\u884c\u5185\u5b58\u6620\u5c04 I\/O \u64cd\u4f5c\u3002\u8fd9\u4e9b\u533a\u57df\u88ab\u4fdd\u7559\u5e76\u5206\u914d\u7ed9\u8fd9\u4e9b\u8bbe\u5907\uff0c\u56e0\u6b64\u8be5\u90e8\u5206\u5185\u5b58\u65e0\u6cd5\u88ab\u64cd\u4f5c\u7cfb\u7edf\u7528\u4e8e\u7cfb\u7edf\u5185\u5b58\u3002<\/p>\n<p>\u4ee5\u4e0a\u60c5\u51b5\u5bfc\u81f4\u4e86\u4e00\u90e8\u5206\u5185\u5b58\u65e0\u6cd5\u88ab\u7cfb\u7edf\u4f7f\u7528\uff0c\u4ece\u800c\u5bfc\u81f4\u5b9e\u9645\u53ef\u7528\u5185\u5b58\u5c0f\u4e8e\u603b\u5185\u5b58\u5bb9\u91cf\u3002\u8fd9\u53ef\u80fd\u5bf9\u7cfb\u7edf\u6027\u80fd\u4ea7\u751f\u4e00\u5b9a\u5f71\u54cd\uff0c\u4f8b\u5982\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7cfb\u7edf\u8fd0\u884c\u8f83\u6162\u6216\u65e0\u6cd5\u540c\u65f6\u8fd0\u884c\u5927\u578b\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>\n<p>\u5347\u7ea7\u523064\u4f4d\u64cd\u4f5c\u7cfb\u7edf\uff1a\u5982\u679c\u4f60\u7684\u8ba1\u7b97\u673a\u786c\u4ef6\u652f\u630164\u4f4d\u64cd\u4f5c\u7cfb\u7edf\uff0c\u53ef\u4ee5\u8003\u8651\u5347\u7ea7\u523064\u4f4d\u7684Linux\u53d1\u884c\u7248\u300264\u4f4d\u64cd\u4f5c\u7cfb\u7edf\u80fd\u591f\u66f4\u597d\u5730\u5229\u7528\u5927\u5bb9\u91cf\u5185\u5b58\uff0c\u5145\u5206\u8bc6\u522b\u548c\u4f7f\u75284GB\u4ee5\u4e0a\u7684\u5185\u5b58\u3002<\/p>\n<\/li>\n<li>\n<p>\u5185\u6838\u53c2\u6570\u8bbe\u7f6e\uff1a\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u901a\u8fc7\u4fee\u6539Linux\u5185\u6838\u53c2\u6570\u6765\u89e3\u51b3\u5185\u5b58\u9650\u5236\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5728\u542f\u52a8\u65f6\u901a\u8fc7GRUB\u6216sysctl\u8bbe\u7f6e\u4e2d\u589e\u52a0\u6216\u4fee\u6539&nbsp;mem&nbsp;\u6216&nbsp;memmap&nbsp;\u53c2\u6570\uff0c\u4ee5\u4fbf\u7cfb\u7edf\u6b63\u786e\u8bc6\u522b\u548c\u4f7f\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002\u5177\u4f53\u7684\u8bbe\u7f6e\u65b9\u6cd5\u9700\u8981\u6839\u636e\u4f60\u4f7f\u7528\u7684Linux\u7248\u672c\u548c\u5185\u6838\u800c\u5b9a\uff0c\u5efa\u8bae\u67e5\u9605\u76f8\u5173\u6587\u6863\u6216\u8bba\u575b\u4ee5\u83b7\u53d6\u66f4\u51c6\u786e\u7684\u6307\u5bfc\u3002<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u786c\u4ef6\u548cBIOS\u8bbe\u7f6e\uff1a\u786e\u4fdd\u8ba1\u7b97\u673a\u786c\u4ef6\u548cBIOS\u8bbe\u7f6e\u6ca1\u6709\u4efb\u4f55\u9650\u5236\u6216\u4fdd\u7559\u5185\u5b58\u7684\u8bbe\u7f6e\u3002\u67d0\u4e9b\u8ba1\u7b97\u673a\u53ef\u80fd\u5177\u6709\u7279\u5b9a\u7684BIOS\u9009\u9879\uff0c\u7528\u4e8e\u914d\u7f6e\u5185\u5b58\u5927\u5c0f\u548c\u5206\u914d\u7ed9\u8bbe\u5907\u7684\u5730\u5740\u7a7a\u95f4\u3002\u68c0\u67e5\u8fd9\u4e9b\u9009\u9879\u5e76\u8fdb\u884c\u76f8\u5e94\u8c03\u6574\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7cfb\u7edf\u66f4\u597d\u5730\u8bc6\u522b\u548c\u5229\u7528\u5185\u5b58\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u8bf7\u6ce8\u610f\uff0c\u5728\u8fdb\u884c\u4efb\u4f55\u66f4\u6539\u4e4b\u524d\uff0c\u8bf7\u5907\u4efd\u91cd\u8981\u6570\u636e\uff0c\u5e76\u786e\u4fdd\u4f60\u5bf9\u7cfb\u7edf\u8bbe\u7f6e\u548c\u914d\u7f6e\u6709\u8db3\u591f\u7684\u4e86\u89e3\u3002\u5982\u679c\u4f60\u4e0d\u786e\u5b9a\u5982\u4f55\u64cd\u4f5c\uff0c\u5efa\u8bae\u54a8\u8be2\u4e13\u4e1a\u4eba\u58eb\u6216\u53c2\u8003\u76f8\u5173\u6587\u6863\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f 4g\u5185\u5b58\u4e3a\u4ec0\u4e48\u53ea\u8bc6\u522b\u4e863.0\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux 4g\u5185\u5b58\u53ea\u8bc6\u522b\u4e863g\u539f\u56e0\u662f\uff1a1\u3001\u5185\u5b58\u5bfb\u5740\u7a7a\u95f4\u9650\u5236\uff0c32\u4f4d\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5982\u65e9\u671f\u7248\u672c\u7684linux\uff0c\u5177\u67094gb\u7684\u5185\u5b58\u5bfb\u5740\u7a7a\u95f4\u9650\u5236\uff0c\u5176\u4e2d\u4e00\u90e8\u5206\u5185\u5b58\u5730\u5740\u7a7a\u95f4\u88ab\u4fdd\u7559\u7ed9\u5176\u4ed6\u786c\u4ef6\u8bbe\u5907\uff1b2\u3001\u5185\u5b58\u6620\u5c04io\u533a\u57df\uff0c\u4e00\u4e9b\u786c\u4ef6\u8bbe\u5907\u9700\u8981\u4f7f\u7528\u4e00\u90e8\u5206\u5185\u5b58\u5730\u5740\u7a7a\u95f4\u8fdb\u884c\u5185\u5b58\u6620\u5c04i\/o\u64cd\u4f5c\uff0c\u8fd9\u4e9b\u533a\u57df\u88ab\u4fdd\u7559\u5e76\u5206\u914d\u7ed9\u8fd9\u4e9b\u8bbe\u5907\u3002 \u672c\u6559\u7a0b\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux5.18.14\u7cfb\u7edf\u3001Dell G3\u7535\u8111\u3002 \u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u5982\u679c\u4f60\u7684\u8ba1\u7b97\u673a\u5177\u67094GB\u5185\u5b58\uff0c\u4f46\u53ea\u663e\u793a\u4e3a3.0GB\u53ef\u7528\uff0c\u8fd9\u53ef\u80fd\u662f\u7531\u4e8e\u4ee5\u4e0b\u51e0\u4e2a\u539f\u56e0\u5bfc\u81f4\u7684\uff1a 1\u3001\u5185\u5b58\u5bfb\u5740\u7a7a\u95f4\u9650\u5236\uff1a 32\u4f4d\u7684\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982\u65e9\u671f\u7248\u672c\u7684Linux\uff09\u5177\u67094GB\u7684\u5185\u5b58\u5bfb\u5740\u7a7a\u95f4\u9650\u5236\u3002\u5176\u4e2d\uff0c\u4e00\u90e8\u5206\u5185\u5b58\u5730\u5740\u7a7a\u95f4\u88ab\u4fdd\u7559\u7ed9\u5176\u4ed6\u786c\u4ef6\u8bbe\u5907\uff0c\u5982\u663e\u5361\u3001\u58f0\u5361\u7b49\u3002\u56e0\u6b64\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4ec5\u80fd\u4f7f\u7528\u5269\u4f59\u7684\u5730\u5740\u7a7a\u95f4\u6765\u5bfb\u5740\u5185\u5b58\uff0c\u800c\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u67d0\u4e9b\u5185\u5b58\u65e0\u6cd5\u88ab\u5b8c\u5168\u8bc6\u522b\u548c\u4f7f\u7528\u3002 2\u3001\u5185\u5b58\u6620\u5c04IO (MMIO) \u533a\u57df\uff1a \u4e00\u4e9b\u786c\u4ef6\u8bbe\u5907\uff08\u5982\u663e\u5361\uff09\u9700\u8981\u4f7f\u7528\u4e00\u90e8\u5206\u5185\u5b58\u5730\u5740\u7a7a\u95f4\u8fdb\u884c\u5185\u5b58\u6620\u5c04 I\/O \u64cd\u4f5c\u3002\u8fd9\u4e9b\u533a\u57df\u88ab\u4fdd\u7559\u5e76\u5206\u914d\u7ed9\u8fd9\u4e9b\u8bbe\u5907\uff0c\u56e0\u6b64\u8be5\u90e8\u5206\u5185\u5b58\u65e0\u6cd5\u88ab\u64cd\u4f5c\u7cfb\u7edf\u7528\u4e8e\u7cfb\u7edf\u5185\u5b58\u3002 \u4ee5\u4e0a\u60c5\u51b5\u5bfc\u81f4\u4e86\u4e00\u90e8\u5206\u5185\u5b58\u65e0\u6cd5\u88ab\u7cfb\u7edf\u4f7f\u7528\uff0c\u4ece\u800c\u5bfc\u81f4\u5b9e\u9645\u53ef\u7528\u5185\u5b58\u5c0f\u4e8e\u603b\u5185\u5b58\u5bb9\u91cf\u3002\u8fd9\u53ef\u80fd\u5bf9\u7cfb\u7edf\u6027\u80fd\u4ea7\u751f\u4e00\u5b9a\u5f71\u54cd\uff0c\u4f8b\u5982\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7cfb\u7edf\u8fd0\u884c\u8f83\u6162\u6216\u65e0\u6cd5\u540c\u65f6\u8fd0\u884c\u5927\u578b\u5e94\u7528\u7a0b\u5e8f\u3002 \u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u65b9\u6cd5\uff1a \u5347\u7ea7\u523064\u4f4d\u64cd\u4f5c\u7cfb\u7edf\uff1a\u5982\u679c\u4f60\u7684\u8ba1\u7b97\u673a\u786c\u4ef6\u652f\u630164\u4f4d\u64cd\u4f5c\u7cfb\u7edf\uff0c\u53ef\u4ee5\u8003\u8651\u5347\u7ea7\u523064\u4f4d\u7684Linux\u53d1\u884c\u7248\u300264\u4f4d\u64cd\u4f5c\u7cfb\u7edf\u80fd\u591f\u66f4\u597d\u5730\u5229\u7528\u5927\u5bb9\u91cf\u5185\u5b58\uff0c\u5145\u5206\u8bc6\u522b\u548c\u4f7f\u75284GB\u4ee5\u4e0a\u7684\u5185\u5b58\u3002 \u5185\u6838\u53c2\u6570\u8bbe\u7f6e\uff1a\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u901a\u8fc7\u4fee\u6539Linux\u5185\u6838\u53c2\u6570\u6765\u89e3\u51b3\u5185\u5b58\u9650\u5236\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5728\u542f\u52a8\u65f6\u901a\u8fc7GRUB\u6216sysctl\u8bbe\u7f6e\u4e2d\u589e\u52a0\u6216\u4fee\u6539&nbsp;mem&nbsp;\u6216&nbsp;memmap&nbsp;\u53c2\u6570\uff0c\u4ee5\u4fbf\u7cfb\u7edf\u6b63\u786e\u8bc6\u522b\u548c\u4f7f\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002\u5177\u4f53\u7684\u8bbe\u7f6e\u65b9\u6cd5\u9700\u8981\u6839\u636e\u4f60\u4f7f\u7528\u7684Linux\u7248\u672c\u548c\u5185\u6838\u800c\u5b9a\uff0c\u5efa\u8bae\u67e5\u9605\u76f8\u5173\u6587\u6863\u6216\u8bba\u575b\u4ee5\u83b7\u53d6\u66f4\u51c6\u786e\u7684\u6307\u5bfc\u3002 \u68c0\u67e5\u786c\u4ef6\u548cBIOS\u8bbe\u7f6e\uff1a\u786e\u4fdd\u8ba1\u7b97\u673a\u786c\u4ef6\u548cBIOS\u8bbe\u7f6e\u6ca1\u6709\u4efb\u4f55\u9650\u5236\u6216\u4fdd\u7559\u5185\u5b58\u7684\u8bbe\u7f6e\u3002\u67d0\u4e9b\u8ba1\u7b97\u673a\u53ef\u80fd\u5177\u6709\u7279\u5b9a\u7684BIOS\u9009\u9879\uff0c\u7528\u4e8e\u914d\u7f6e\u5185\u5b58\u5927\u5c0f\u548c\u5206\u914d\u7ed9\u8bbe\u5907\u7684\u5730\u5740\u7a7a\u95f4\u3002\u68c0\u67e5\u8fd9\u4e9b\u9009\u9879\u5e76\u8fdb\u884c\u76f8\u5e94\u8c03\u6574\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7cfb\u7edf\u66f4\u597d\u5730\u8bc6\u522b\u548c\u5229\u7528\u5185\u5b58\u3002 \u8bf7\u6ce8\u610f\uff0c\u5728\u8fdb\u884c\u4efb\u4f55\u66f4\u6539\u4e4b\u524d\uff0c\u8bf7\u5907\u4efd\u91cd\u8981\u6570\u636e\uff0c\u5e76\u786e\u4fdd\u4f60\u5bf9\u7cfb\u7edf\u8bbe\u7f6e\u548c\u914d\u7f6e\u6709\u8db3\u591f\u7684\u4e86\u89e3\u3002\u5982\u679c\u4f60\u4e0d\u786e\u5b9a\u5982\u4f55\u64cd\u4f5c\uff0c\u5efa\u8bae\u54a8\u8be2\u4e13\u4e1a\u4eba\u58eb\u6216\u53c2\u8003\u76f8\u5173\u6587\u6863\u3002 \u4ee5\u4e0a\u5c31\u662f 4g\u5185\u5b58\u4e3a\u4ec0\u4e48\u53ea\u8bc6\u522b\u4e863.0\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-15580","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/15580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=15580"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/15580\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=15580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=15580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=15580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}