{"id":217967,"date":"2021-05-20T08:40:04","date_gmt":"2021-05-20T00:40:04","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=217967"},"modified":"2021-05-04T10:22:11","modified_gmt":"2021-05-04T02:22:11","slug":"seven-linux-cpu","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/seven-linux-cpu.html","title":{"rendered":"7\u79cdLinux\u4e2d\u83b7\u53d6CPU\u901f\u5ea6\u7684\u65b9\u6cd5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u901a\u5e38\uff0c\u66f4\u9ad8\u7684\u65f6\u949f\u901f\u5ea6\u610f\u5473\u7740\u66f4\u5feb\u7684CPU\u3002\u4f46\u662f\uff0c\u8fd8\u6709\u8bb8\u591a\u5176\u4ed6\u56e0\u7d20\u5728\u8d77\u4f5c\u7528\u3002\u60a8\u7684CPU\u6bcf\u79d2\u5904\u7406\u6765\u81ea\u4e0d\u540c\u7a0b\u5e8f\u7684\u8bb8\u591a\u6307\u4ee4\uff08\u4f4e\u7ea7\u8ba1\u7b97\uff0c\u4f8b\u5982\u7b97\u672f\u8fd0\u7b97\uff09\u3002\u65f6\u949f\u901f\u5ea6\u8861\u91cfCPU\u6bcf\u79d2\u6267\u884c\u7684\u5468\u671f\u6570\uff0c\u4ee5GHz\uff08\u5343\u5146\u8d6b\uff09\u4e3a\u5355\u4f4d\u3002\u4ece\u6280\u672f\u4e0a\u8bb2\uff0c\u201c\u5468\u671f\u201d\u662f\u7531\u5185\u90e8\u632f\u8361\u5668\u540c\u6b65\u7684\u8109\u51b2\uff0c\u4f46\u662f\u51fa\u4e8e\u6211\u4eec\u7684\u76ee\u7684\uff0c\u5b83\u4eec\u662f\u5e2e\u52a9\u7406\u89e3CPU\u901f\u5ea6\u7684\u57fa\u672c\u5355\u4f4d\u3002\u5728\u6bcf\u4e2a\u5468\u671f\u4e2d\uff0c\u5904\u7406\u5668\u5185\u6570\u5341\u4ebf\u4e2a\u6676\u4f53\u7ba1\u6253\u5f00\u548c\u5173\u95ed\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5728Linux\u4e0a\uff0c\u6709\u8bb8\u591a\u547d\u4ee4\u53ef\u7528\u4e8e\u83b7\u53d6\u5904\u7406\u5668\u7684CPU\u901f\u5ea6\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u4e00\u4e9b\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684\u547d\u4ee4\u6765\u83b7\u53d6\u6709\u5173CPU\u7684CPU\u901f\u5ea6\u3002<\/p>\n

\u65b9\u6cd51\uff1a\u4f7f\u7528hardinfo<\/strong><\/div>\n

Hardinfo\u662f\u4e00\u4e2a\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u5de5\u5177\uff0c\u53ef\u751f\u6210\u6709\u5173\u5404\u79cd\u786c\u4ef6\u7ec4\u4ef6\u7684\u62a5\u544a\u3002\u5b83\u662f\u7528Gtk\u7f16\u5199\u7684\u3002\u4f46\u662f\uff0c\u5982\u679c\u6ca1\u6709\u53ef\u7528\u7684GUI\u663e\u793a\uff0c\u4e5f\u53ef\u4ee5\u4ece\u547d\u4ee4\u884c\u8fd0\u884c\u5b83\u3002<\/p>\n

$ hardinfo | less<\/pre>\n

\"\"<\/p>\n

\u65b9\u6cd52\uff1a\u4ece\/ proc \/ cpuinfo<\/strong><\/div>\n

\/ proc \/ cpuinfo\u7cfb\u7edf\u6587\u4ef6\u5217\u51fa\u4e86\u6bcf\u4e2aCPU\u5185\u6838\u3002\u7cfb\u7edf\u7684\u4e2a\u522b\u901f\u5ea6\u3002<\/p>\n

$ cat \/ proc \/ cpuinfo | grep MHz<\/pre>\n

\"\"<\/p>\n

\u65b9\u6cd53\uff1a\u4f7f\u7528Inxi\u811a\u672c<\/strong><\/div>\n

Inxi\u662f\u4e00\u4e2aLinux\u811a\u672c\uff0c\u53ef\u8ba9\u60a8\u6253\u5370\u7cfb\u7edf\u7684\u786c\u4ef6\u8be6\u7ec6\u4fe1\u606f\u3002\u8981\u6253\u5370\u4e0e\u5904\u7406\u5668\u76f8\u5173\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u4f7f\u7528\u5e26\u6709'-C'\u9009\u9879\u7684inxi\u547d\u4ee4\uff1a<\/p>\n

$ sudo inxi -C<\/pre>\n

\"\"<\/p>\n

\u65b9\u6cd54\uff1a\u4f7f\u7528hwinfo<\/strong><\/div>\n

\u5728Linux\u4e2d\uff0chwinfo\u547d\u4ee4\u663e\u793a\u6709\u5173\u6bcf\u4e2a\u786c\u4ef6\u5355\u5143\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n

$ sudo hwinfo --cpu<\/pre>\n

\"\"<\/p>\n

\u65b9\u6cd55\uff1a\u4f7f\u7528lscpu<\/strong><\/div>\n

Lscpu\u662f\u4e00\u4e2aLinux\u547d\u4ee4\uff0c\u663e\u793aCPU\u67b6\u6784\u8be6\u7ec6\u4fe1\u606f\u3002util-linux\u8f6f\u4ef6\u5305\u4e2d\u5305\u542b\u6b64\u6307\u4ee4\u3002<\/p>\n

$ sudo lscpu<\/pre>\n

\"\"<\/p>\n

\u65b9\u6cd56\uff1a\u4f7f\u7528Dmesg<\/strong><\/div>\n

Dmesg\u663e\u793a\u6765\u81ea\u5185\u6838\u73af\u5f62\u7f13\u51b2\u533a\u7684\u6d88\u606f\uff0c\u5e76\u5c06\u5176\u8f6c\u50a8\u5230Linux\u4e2d\u7684\/ var \/ log \/ messages\u4e2d\u3002<\/p>\n

$ sudo dmesg | grep MHz<\/pre>\n

\"\"<\/p>\n

\u65b9\u6cd57\uff1a\u4f7f\u7528i7z<\/strong><\/div>\n

i7z\u662f\u7528\u4e8e\u663e\u793a\u57fa\u4e8eIntel i3\uff0ci5\u548ci7\u7684CPU\u4e0a\u7684\u5904\u7406\u5668\u72b6\u6001\u7684\u4e13\u7528\u5de5\u5177\u3002<\/p>\n

$ sudo i7z<\/pre>\n

\"\"<\/p>\n

\u5728\u57fa\u4e8eLinux\u7684\u7cfb\u7edf\uff08\u4f8b\u5982Ubuntu\uff0cFedora\uff0cDebian\uff0cCentOS\u7b49\uff09\u4e0a\uff0c\u8fd9\u4e9b\u547d\u4ee4\u53ef\u7528\u4e8e\u68c0\u67e5CPU\u901f\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728Linux\u4e0a\uff0c\u6709\u8bb8\u591a\u547d\u4ee4\u53ef\u7528\u4e8e\u83b7\u53d6\u5904\u7406\u5668\u7684CPU\u901f\u5ea6\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u4e00\u4e9b\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684\u547d\u4ee4\u6765\u83b7\u53d6\u6709\u5173CP […]<\/p>\n","protected":false},"author":310,"featured_media":217982,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-217967","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\/217967","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\/310"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=217967"}],"version-history":[{"count":8,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/217967\/revisions"}],"predecessor-version":[{"id":218102,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/217967\/revisions\/218102"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/217982"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=217967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=217967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=217967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}