{"id":203158,"date":"2020-10-29T09:02:04","date_gmt":"2020-10-29T01:02:04","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=203158"},"modified":"2020-10-22T13:02:45","modified_gmt":"2020-10-22T05:02:45","slug":"linux5-9-core-fun","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux5-9-core-fun.html","title":{"rendered":"\u4ecb\u7ecdLinux\u5185\u68385.9\u7684\u6700\u91cd\u8981\u529f\u80fd\u53ca\u5b89\u88c5\u65b9\u6cd5"},"content":{"rendered":"
\n\n\n\n
\u5bfc\u8bfb<\/td>\nLinux\u5185\u68385.9\u5e26\u6765\u4e86\u5438\u5f15\u6570\u636e\u4e2d\u5fc3\u7ba1\u7406\u5458\u7684\u8bf8\u591a\u6027\u80fd\u63d0\u5347\u3002\u672c\u6587\u4f5c\u8005\u7740\u91cd\u4ecb\u7ecd\u4e86\u6539\u8fdb\u4e4b\u5904\uff0c\u5e76\u4ecb\u7ecd\u4e86\u5982\u4f55\u5b89\u88c5\u4e3b\u7ebf\u5185\u6838\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n
\n

\"\"<\/a><\/p>\n

\u4e0e5.8\u4e00\u6837\uff0cLinux\u5185\u68385.9\u786e\u5b9e\u6ca1\u6709\u4efb\u4f55\u6539\u53d8\u6e38\u620f\u89c4\u5219\u7684\u529f\u80fd\uff0c\u81f3\u5c11\u5bf9\u666e\u901a\u7528\u6237\u800c\u8a00\u6ca1\u6709\u3002\u7136\u800c\u5982\u679c\u60a8\u662f\u94c1\u6746\u7684IT\u4e13\u4e1a\u4eba\u5458\uff0c\u53ef\u80fd\u6709\u51e0\u9879\u5fc3\u4eea\u7684\u529f\u80fd\u4f1a\u5438\u5f15\u60a8\u5c065.9\u5185\u6838\u5b89\u88c5\u5230\u6570\u636e\u4e2d\u5fc3\u670d\u52a1\u5668\u4e2d(\u7a0d\u540e\u8be6\u7ec6\u4ecb\u7ecd)\u3002<\/p>\n

\u4e0d\u59a8\u770b\u4e00\u4e0b\u6700\u65b0Linux\u5185\u6838\u7684\u4e00\u4e9b\u6bd4\u8f83\u91cd\u8981\u7684\u529f\u80fd\u3002<\/p>\n

Linux\u5185\u68385.9\uff1a\u5927\u5e45\u63d0\u5347\u6027\u80fd<\/strong><\/strong><\/span><\/div>\n

\u91cd\u5927\u65b0\u95fb\u662fLinux\u5185\u68385.9\u4e3aAMD\u67b6\u6784\u548c\u82f1\u7279\u5c14\u67b6\u6784\u5e26\u6765\u4e86\u6027\u80fd\u63d0\u5347\u3002\u57fa\u4e8e\u82f1\u7279\u5c14\u7684\u7cfb\u7edf\u5c06\u901a\u8fc7FSGSBASE\u652f\u6301\u83b7\u5f97\u6027\u80fd\u63d0\u5347\uff0c\u8be5\u7248\u672c\u7ec8\u4e8e\u6709\u4e86\u5b8c\u6574\u652f\u6301\u529f\u80fd\u3002FSGSBASE\u6307\u4ee4\u662f\u968f\u82f1\u7279\u5c14Ivy Bridge CPU\u63a8\u51fa\u7684\uff0c\u53ef\u5728\u4e0a\u4e0b\u6587\u5207\u6362\u4efb\u52a1\u7e41\u91cd\u7684\u60c5\u51b5\u4e0b\u63d0\u5347\u6027\u80fd\u3002\u8be5\u65b0\u6307\u4ee4\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6237\u7a7a\u95f4\u65e0\u9700\u4e0e\u5185\u6838\u8054\u7cfb\u5373\u53ef\u7f16\u5199GSBASE\u3002\u6dfb\u52a0FSGSBASE\u4f1a\u4f7fLinux\u5185\u6838\u5728\u57fa\u51c6\u6d4b\u8bd5\u548c\u5b9e\u9645\u4f7f\u7528\u65b9\u9762\u90fd\u6709\u5927\u5e45\u6539\u8fdb\u3002<\/p>\n

\u5982\u679c\u60a8\u7684\u6570\u636e\u4e2d\u5fc3\u6709ARM\/ARM64\u8bbe\u5907\uff0c\u60a8\u4e0d\u4f1a\u88ab\u629b\u5f03\u3002Linux\u5185\u68385.9\u901a\u8fc7\u4f18\u5316\u7684\u8c03\u5ea6\u7a0b\u5e8f\u5229\u7528\u7387\u4fe1\u606fSchedutil\uff0c\u4e3a\u8be5\u7279\u5b9a\u67b6\u6784\u5e26\u6765\u4e86\u6027\u80fd\u63d0\u5347\u3002\u8fd9\u9879\u65b0\u589e\u529f\u80fd\u7c7b\u4f3c\u82f1\u7279\u5c14P\u72b6\u6001\u63a8\u9001\u3002<\/p>\n

ARM\/ARM64\u67b6\u6784\u8fd8\u83b7\u5f97\u4e86\u65b0\u7684sysfs\u5207\u6362\u529f\u80fd(\u53ef\u63a7\u5236CPU\u80fd\u6e90\u6548\u7387\u4f18\u5316)\u4ee5\u53ca\u8bb8\u591aCPUfreq\u4fee\u590d\u7a0b\u5e8f\u3002<\/p>\n

Linux\u5185\u68385.9\uff1a\u5b58\u50a8\u548c\u6587\u4ef6\u7cfb\u7edf\u7684\u6539\u8fdb<\/strong><\/strong><\/span><\/div>\n

\u8003\u8651\u5230Fedora 33\u6b63\u8fc1\u79fb\u5230Btrfs\uff0c\u65b0\u5185\u6838\u4f3c\u4e4e\u5f88\u5408\u9002\u3002Linux\u5185\u68385.9\u4f7fBtrfs\u83b7\u5f97\u4e86\u6027\u80fd\u4e0a\u7684\u8bf8\u591a\u6539\u8fdb\u3002\u4e3aSSD\u8bbe\u5907\u589e\u6dfb\u52a0\u5927\u652f\u6301NVMe 2.0\u7684\u529b\u5ea6\u540e\uff0c\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u7cfb\u7edf\u6027\u80fd\u4e5f\u4f1a\u5927\u5927\u63d0\u5347\u3002Btrfs\u7684\u4e00\u9879\u91cd\u8981\u63d0\u5347\u662f\u6dfb\u52a0\u4e86\u65b0\u7684\u6551\u63f4\u6302\u8f7d\u9009\u9879\uff0c\u8be5\u9009\u9879\u5c06\u6240\u6709\u7684\u73b0\u6709\u6302\u8f7d\u9009\u9879\u7ec4\u5408\u5728\u4e00\u8d77\uff0c\u786e\u4fdd\u66f4\u53ef\u9760\u7684\u6062\u590d\u3002<\/p>\n

\u5e76\u975e\u53ea\u6709Btrfs\u83b7\u5f97\u8865\u4e01\u3001\u8c03\u6574\u548c\u5404\u79cd\u4f18\u5316\u3002XFS\u3001ext4\u548cF2FS\u5728\u6700\u65b0\u7684Linux\u5185\u6838\u4e2d\u5907\u53d7\u5173\u6ce8\u3002<\/p>\n

Linux\u5185\u68385.9\uff1a\u5176\u4ed6\u6539\u8fdb\u548c\u6dfb\u52a0<\/strong><\/strong><\/span><\/div>\n

\u8fd8\u6709\u5176\u4ed6\u8bb8\u591aLinux\u6570\u636e\u4e2d\u5fc3\u7ba1\u7406\u5458\u4f1a\u89c9\u5f97\u5f88\u91cd\u8981\u7684\u6539\u8fdb\u548c\u6dfb\u52a0\u3002\u4e3b\u8981\u5305\u62ec\u5982\u4e0b\uff1a<\/p>\n

    \n
  • \u66f4\u597d\u7684\u533f\u540d\u5185\u5b58\u7ba1\u7406;<\/li>\n
  • \u65b0\u7684slab\u5185\u5b58\u63a7\u5236\u5668\uff0c\u8fd9\u6709\u671b\u51cf\u5c11\u603b\u7684\u5185\u6838\u5185\u5b58\u4f7f\u7528\u91cf;<\/li>\n
  • \u652f\u6301ZSTD\u538b\u7f29\u7684\u5185\u6838\u3001ramdisk\u548cinitramfs\uff0c\u5c06\u7f29\u77ed\u542f\u52a8\u65f6\u95f4;<\/li>\n
  • USB 4\u89c4\u8303\u83b7\u5f97\u66f4\u591a\u7684\u652f\u6301;<\/li>\n
  • \u652f\u6301IBM POWER10\u5904\u7406\u5668\u65b9\u9762\u505a\u4e86\u521d\u6b65\u5de5\u4f5c;<\/li>\n
  • \u9488\u5bf9\u6240\u6709\u6a21\u5757\u4e0a\u7684\u7ade\u6001\u6761\u4ef6\u548c\u5185\u5b58\u6cc4\u6f0f\u7684\u4fee\u6b63\u7248\u3002<\/li>\n<\/ul>\n
    \u5982\u4f55\u5b89\u88c5Linux\u5185\u68385.9?<\/strong><\/strong><\/span><\/div>\n

    \u5728\u4ecb\u7ecd\u5982\u4f55\u5b89\u88c5\u6700\u65b0\u7684Linux\u5185\u6838\u4e4b\u524d\uff0c\u6211\u77e5\u9053\u60a8\u53ef\u80fd\u4e0d\u4f1a\u8fd9\u4e48\u505a\u3002\u4e3a\u4ec0\u4e48?\u56e0\u4e3a\u652f\u6301\u6570\u636e\u4e2d\u5fc3\u7684Linux\u53d1\u884c\u7248(\u6bd4\u5982Ubuntu\u3001RHEL\u3001SLED\u548cCentOS)\u5e76\u6ca1\u6709\u5c06\u79cd\u79cd\u4f18\u5316\u6dfb\u52a0\u5728\u8be5\u7248\u672c\u4e2d\u3002\u56e0\u6b64\uff0c\u867d\u7136\u60a8\u53ef\u80fd\u83b7\u5f97\u6027\u80fd\u63d0\u5347\u53ca\u5176\u4ed6\u65b0\u529f\u80fd\uff0c\u4f46\u53ef\u80fd\u4f1a\u9519\u8fc7\u575a\u6301\u4f7f\u7528\u53d1\u884c\u7248\u9ed8\u8ba4\u8bbe\u7f6e\u800c\u83b7\u5f97\u7684\u529f\u80fd\u3002<\/p>\n

    \u60a8\u53ef\u80fd\u6709\u5145\u5206\u7684\u7406\u7531\u5347\u7ea7\u5230\u8fd9\u4e2a\u6700\u65b0\u7684Linux\u5185\u6838\uff0c\u6216\u8005\u60a8\u53ef\u80fd\u53ea\u60f3\u5728\u975e\u751f\u4ea7\u7cfb\u7edf\u4e0a\u5bf9\u5176\u8fdb\u884c\u6d4b\u8bd5\u3002\u4e0d\u7ba1\u600e\u6837\uff0c\u5b89\u88c5\u6700\u65b0\u7684Linux\u5185\u6838\u4e0d\u90a3\u4e48\u56f0\u96be(\u81f3\u5c11\u5728\u67d0\u4e9b\u53d1\u884c\u7248\u4e0a\u662f\u8fd9\u6837)\u3002<\/p>\n

    \u6211\u4f1a\u9010\u6b65\u4ecb\u7ecd\u5728Ubuntu Server\u548cCentOS 8\u4e0a\u5b89\u88c5Linux 5.9(\u4e3b\u7ebf)\u5185\u6838\u7684\u8fc7\u7a0b\u3002<\/p>\n

    \u5982\u4f55\u5728Ubuntu Server\u4e0a\u5b89\u88c5Linux\u5185\u68385.9(20.04)?<\/strong><\/strong><\/span><\/div>\n

    \u767b\u5f55\u5230\u670d\u52a1\u5668\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u5fc5\u8981\u7684.deb\u6587\u4ef6\uff1a<\/p>\n

    cd\u00a0\/tmp\r\n\r\nwget\u00a0-c\u00a0https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.9\/amd64\/linux-headers-5.9.0-050900_5.9.0-050900.202010112230_all.deb\r\n\r\nwget\u00a0-c\u00a0https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.9\/amd64\/linux-headers-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.deb\r\n\r\nwget\u00a0-c\u00a0https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.9\/amd64\/linux-image-unsigned-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.deb\r\n\r\nwget\u00a0-c\u00a0https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.9\/amd64\/linux-modules-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.deb\r\n<\/pre>\n

    \u4e00\u65e6\u6240\u6709\u6587\u4ef6\u4e0b\u8f7d\u5b8c\u6bd5\uff0c\u7528\u8be5\u547d\u4ee4\u5b89\u88c5\u5b83\u4eec\uff1a<\/p>\n

    sudo\u00a0dpkg\u00a0-i\u00a0*.deb\r\n<\/pre>\n

    \u5b89\u88c5\u5b8c\u6210\u540e\u91cd\u542f\uff0c\u5e94\u8be5\u5c31\u53ef\u4ee5\u4e86\u3002\u91cd\u65b0\u767b\u5f55\u5230\u7cfb\u7edf\uff0c\u6267\u884c\u547d\u4ee4\uff1a<\/p>\n

    uname\u00a0-r\r\n<\/pre>\n

    \u60a8\u5e94\u8be5\u4f1a\u770b\u5230Ubuntu\u670d\u52a1\u5668\u73b0\u5728\u8fd0\u884c\u5185\u68385.9\u3002<\/p>\n

    \u5982\u4f55\u5728CentOS 8\u4e0a\u5b89\u88c5Linux\u5185\u68385.9?<\/strong><\/strong><\/span><\/div>\n

    \u73b0\u5728\u4e0d\u59a8\u5728CentOS 8\u4e0a\u6267\u884c\u540c\u6837\u7684\u64cd\u4f5c\u3002\u767b\u5f55\u5230\u8be5\u670d\u52a1\u5668\uff0c\u5148\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u5fc5\u8981\u4ee3\u7801\u5e93\u7684GPG\u5bc6\u94a5\uff1a<\/p>\n

    cat\u00a0\/etc\/redhat-release\r\n\r\nuname\u00a0-srv\r\n\r\nsudo\u00a0rpm\u00a0--import\u00a0https:\/\/www.elrepo.org\/RPM-GPG-KEY-elrepo.org<\/span>\r\n<\/pre>\n

    \u4f7f\u7528\u8be5\u547d\u4ee4\u5b89\u88c5\u4ee3\u7801\u5e93\uff1a<\/p>\n

    sudo\u00a0dnf\u00a0install\u00a0https:\/\/www.elrepo.org\/elrepo-release-8.0-2.el8.elrepo.noarch.rpm\r\n<\/pre>\n

    \u4f7f\u7528\u8be5\u547d\u4ee4\u5b89\u88c5\u4e3b\u7ebf(5.9)\u5185\u6838\uff1a<\/p>\n

    sudo\u00a0dnf\u00a0--enablerepo=elrepo-kernel\u00a0install\u00a0kernel-ml<\/span>\r\n<\/pre>\n

    \u91cd\u542fCentOS\u7cfb\u7edf\u3002\u4e00\u65e6\u60a8\u91cd\u65b0\u767b\u5f55\u8fdb\u53bb\uff0c\u6267\u884c\u547d\u4ee4\uff1a<\/p>\n

    uname\u00a0-r\r\n<\/pre>\n

    \u60a8\u5e94\u8be5\u4f1a\u770b\u5230Linux 5.9\u5185\u6838\u5df2\u5217\u51fa\u3002<\/p>\n

    \u606d\u559c!\u60a8\u5df2\u5728Ubuntu Server\u548cCentOS 8\u4e0a\u90fd\u6210\u529f\u5b89\u88c5\u4e865.9 Linux\u5185\u6838\u3002\u5728\u6d4b\u8bd5\u673a\u5668\u6216\u865a\u62df\u673a\u4e0a\u6267\u884c\u8fd9\u756a\u64cd\u4f5c\uff0c\u770b\u770b\u8fd9\u4e2a\u6700\u65b0\u5185\u6838\u7684\u6027\u80fd\u63d0\u5347\u662f\u5426\u540d\u526f\u5176\u5b9e\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

    \u4e0e5.8\u4e00\u6837\uff0cLinux\u5185\u68385.9\u786e\u5b9e\u6ca1\u6709\u4efb\u4f55\u6539\u53d8\u6e38\u620f\u89c4\u5219\u7684\u529f\u80fd\uff0c\u81f3\u5c11\u5bf9\u666e\u901a\u7528\u6237\u800c\u8a00\u6ca1\u6709\u3002\u7136\u800c\u5982\u679c\u60a8\u662f\u94c1\u6746\u7684I […]<\/p>\n","protected":false},"author":643,"featured_media":203198,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-203158","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/203158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/643"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=203158"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/203158\/revisions"}],"predecessor-version":[{"id":203437,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/203158\/revisions\/203437"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/203198"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=203158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=203158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=203158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}