linux如何查看cpu型號(hào)?

linux中可以通過(guò)查看/proc/cpuinfo文件的model name信息、或直接使用命令cat /proc/cpuinfo | grep ‘model name’ |uniq?來(lái)查看cpu型號(hào)。

linux如何查看cpu型號(hào)?

linux系統(tǒng)中,提供了proc文件系統(tǒng)顯示系統(tǒng)的軟硬件信息。如果想了解系統(tǒng)中CPU的提供商和相關(guān)配置信息,則可以通過(guò)/proc/cpuinfo文件得到。

使用以下命令來(lái)讀取/proc/cpuinfo文件,查看cpu的信息

cat??/proc/cpuinfo

輸出:

processor  :?0 vendor_id  :GenuineIntel cpu?family  :6 model    :26 model?name :Intel(R)?Xeon(R)?CPU?E5520??@?2.27GHz stepping  ??:5 cpu?MHz  ??:1600.000 cache?size  :?8192?KB physical?id  :0 siblings   ?:8 core?id   ??:?0 cpu?cores  ?:4 apicid  ???????:0 fpu     ??:yes fpu_exception?:yes cpuid?level  ?:?11 wp      :yes flags?     :?fpu?vme?de?pse?tsc?msr?pae?mce?cx8?apic?sep?mtrr?pge?mca?cmov?pat?pse36?clflush?dts?acpi?mmx?fxsr?sse?sse2?ss?ht?tm?syscall?nx?rdtscp?lm?constant_tsc?ida?nonstop_tsc?pni?monitor?ds_cpl?vmx?est?tm2?cx16?xtpr?popcnt?lahf_lm bogomips  ?:4522.12 clflush?size  :64 cache_alignment  :?64 address?sizes   ?:?40?bits?physical,?48?bits?virtual power?management?:

其中查看“model name”行輸出,就可查看cpu的名稱,型號(hào),主頻等信息。

相關(guān)說(shuō)明:

 ● processor:系統(tǒng)中邏輯處理核的編號(hào)。對(duì)于單核處理器,則可認(rèn)為是其CPU編號(hào),對(duì)于多核處理器則可以是物理核、或者使用超線程技術(shù)虛擬的邏輯核;它的計(jì)數(shù)是從0開始的。
 ● vendor_id:CPU制造商
 ● cpu family:CPU產(chǎn)品系列代號(hào)
 ● model:CPU屬于其系列中的哪一代的代號(hào)
 ● model name:CPU屬于的名字及其編號(hào)、標(biāo)稱主頻
 ● stepping:CPU屬于制作更新版本
 ● cpu MHz:CPU的實(shí)際使用主頻
 ● cache size:CPU二級(jí)緩存大小
 ● physical id:?jiǎn)蝹€(gè)CPU的標(biāo)號(hào)
 ● siblings:?jiǎn)蝹€(gè)CPU邏輯物理核數(shù)
 ● core id:當(dāng)前物理核在其所處CPU中的編號(hào),這個(gè)編號(hào)不一定連續(xù)
 ● cpu cores:該邏輯核所處CPU的物理核數(shù)
 ● apicid:用來(lái)區(qū)分不同邏輯核的編號(hào),系統(tǒng)中每個(gè)邏輯核的此編號(hào)必然不同,此編號(hào)不一定連續(xù)
 ● fpu:是否具有浮點(diǎn)運(yùn)算單元(Floating Point Unit)
 ● fpu_exception:是否支持浮點(diǎn)計(jì)算異常
 ● cpuid level:執(zhí)行cpuid指令前,eax寄存器中的值,根據(jù)不同的值cpuid指令會(huì)返回不同的內(nèi)容
 ● wp :表明當(dāng)前CPU是否在內(nèi)核態(tài)支持對(duì)用戶空間的寫保護(hù)(Write Protection)
 ● flags:當(dāng)前CPU支持的功能
 ● bogomips? ?:在系統(tǒng)內(nèi)核啟動(dòng)時(shí)粗略測(cè)算的CPU速度(Million Instructions Per Second)
 ● clflush size? :每次刷新緩存的大小單位
 ● cache_alignment :緩存地址對(duì)齊單位
 ● address sizes:可訪問(wèn)地址空間位數(shù)

如何不想獲取cpu的全部信息,只是想要查看cpu型號(hào),可以使用以下命令:

cat?/proc/cpuinfo?|?grep?'model?name'?|uniq

輸出:

model?name?:?Intel(R)?Xeon(R)?CPU?E5520??@?2.27GHz

相關(guān)視頻教程推薦:《Linux教程

以上就是本篇文章的全部?jī)?nèi)容,希望能對(duì)大家的學(xué)習(xí)有所幫助。更多精彩內(nèi)容大家可以關(guān)注php中文網(wǎng)相關(guān)教程欄目!!!

以上就是

? 版權(quán)聲明
THE END
喜歡就支持一下吧
點(diǎn)贊8 分享