{"id":4328,"date":"2019-07-27T00:20:32","date_gmt":"2019-07-26T16:20:32","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4328"},"modified":"2023-05-01T15:24:26","modified_gmt":"2023-05-01T07:24:26","slug":"lscpu","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lscpu","title":{"rendered":"lscpu\u547d\u4ee4 &#8211; \u663e\u793aCPU\u67b6\u6784\u4fe1\u606f"},"content":{"rendered":"\n<p>lscpu\u547d\u4ee4\u6765\u81ea\u82f1\u6587\u8bcd\u7ec4\u201clist the CPU architecture\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u663e\u793aCPU\u67b6\u6784\u4fe1\u606f\u3002lscpu\u547d\u4ee4\u4f1a\u4ece\/proc\/cpuinfo\u6587\u4ef6\u4e2d\u6536\u96c6\u6709\u5173\u672c\u673aCPU\u67b6\u6784\u7684\u4fe1\u606f\uff0c\u5e76\u6574\u7406\u6210\u6613\u8bfb\u7684\u683c\u5f0f\u8f93\u51fa\u5230Shell\u7ec8\u7aef\uff0c\u8fd0\u7ef4\u4eba\u5458\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u4e86\u89e3\u5230\u672c\u673aCPU\u6570\u91cf\u3001\u67b6\u6784\u3001\u7ebf\u7a0b\u3001\u6838\u5fc3\u3001\u5957\u63a5\u5b57\u7b49\u91cd\u8981\u6307\u6807\u4fe1\u606f~<\/p>\n\n\n\n<p><strong>\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lscpu [\u53c2\u6570]<\/p>\n\n\n\n<p><strong>\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>-a<\/td><td>\u663e\u793a\u5168\u90e8\u7684CPU\u4fe1\u606f<\/td><\/tr><tr><td>-b<\/td><td>\u4ec5\u663e\u793a\u5728\u7ebfCPU\u4fe1\u606f<\/td><\/tr><tr><td>-c<\/td><td>\u4ec5\u663e\u793a\u79bb\u7ebfCPU\u4fe1\u606f<\/td><\/tr><tr><td>-e<\/td><td>\u663e\u793a\u6269\u5c55\u7684\u53ef\u8bfb\u683c\u5f0f<\/td><\/tr><tr><td>-h<\/td><td>\u663e\u793a\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr><tr><td>-p<\/td><td>\u4f7f\u7528\u53ef\u89e3\u6790\u7684\u683c\u5f0f<\/td><\/tr><tr><td>-s<\/td><td>\u8bbe\u7f6e\u7cfb\u7edf\u6839\u76ee\u5f55<\/td><\/tr><tr><td>-V<\/td><td>\u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr><tr><td>-x<\/td><td>\u663e\u793a\u5341\u516d\u8fdb\u5236\u63a9\u7801\u800c\u975eCPU\u5217\u8868\u4fe1\u606f<\/td><\/tr><tr><td>-y<\/td><td>\u663e\u793a\u7269\u7406ID\u800c\u975e\u903b\u8f91ID<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u53c2\u8003\u793a\u4f8b<\/strong><\/p>\n\n\n\n<p>\u663e\u793a\u6709\u5173CPU\u67b6\u6784\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>lscpu<\/strong>\nArchitecture:        x86_64\nCPU op-mode(s):      32-bit, 64-bit\nByte Order:          Little Endian\nCPU(s):              8\nOn-line CPU(s) list: 0-7\nThread(s) per core:  1\nCore(s) per socket:  8\nSocket(s):           1\nNUMA node(s):        1\nVendor ID:           GenuineIntel\nCPU family:          6\nModel:               158\nModel name:          Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz\nStepping:            10\nCPU MHz:             2400.007\nBogoMIPS:            4800.01\nHypervisor vendor:   VMware\nVirtualization type: full\nL1d cache:           32K\nL1i cache:           32K\nL2 cache:            256K\nL3 cache:            8192K\nNUMA node0 CPU(s):   0-7\nFlags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves arat flush_l1d arch_capabilities\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>lscpu\u547d\u4ee4\u6765\u81ea\u82f1\u6587\u8bcd\u7ec4\u201clist the CPU architecture\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u663e\u793aCPU [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4328","post","type-post","status-publish","format-standard","hentry","category-device"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4328"}],"version-history":[{"count":11,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4328\/revisions"}],"predecessor-version":[{"id":14695,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4328\/revisions\/14695"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}