The easiest way to check CPU speed and CPU model on Linux is to issue the below command from the CLI.
- more /proc/cpuinfo | egrep 'model name|cpu MHz'
This will return results like the below that will list CPU model name on one line followed by CPU speed on the next line.
- [root@server ~]# less /proc/cpuinfo | egrep 'model name|cpu MHz'
- model name : Dual-Core AMD Opteron(tm) Processor 2212
- cpu MHz : 2010.302
- model name : Dual-Core AMD Opteron(tm) Processor 2212
- cpu MHz : 2010.302
- model name : Dual-Core AMD Opteron(tm) Processor 2212
- cpu MHz : 2010.302
- model name : Dual-Core AMD Opteron(tm) Processor 2212
- cpu MHz : 2010.302
The entire output for a 2GHz Dual-Core AMD Opteron without using grep to obtain only CPU speed and model name would look like the below.
- [root@sdev data]# less /proc/cpuinfo
- processor : 0
- vendor_id : AuthenticAMD
- cpu family : 15
- model : 65
- model name : Dual-Core AMD Opteron(tm) Processor 2212
- stepping : 2
- cpu MHz : 2010.302
- cache size : 1024 KB
- physical id : 1
- siblings : 1
- core id : 0
- cpu cores : 1
- fpu : yes
- fpu_exception : yes
- cpuid level : 1
- wp : yes
- flags : fpu tsc msr pae mce cx8 apic mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_leg
- acy
- bogomips : 4023.93
- TLB size : 1024 4K pages
- clflush size : 64
- cache_alignment : 64
- address sizes : 40 bits physical, 48 bits virtual
- power management: ts fid vid ttp tm stc
- processor : 1
- vendor_id : AuthenticAMD
- cpu family : 15
- model : 65
- model name : Dual-Core AMD Opteron(tm) Processor 2212
- stepping : 2
- cpu MHz : 2010.302
- cache size : 1024 KB
- physical id : 1
- siblings : 1
- core id : 0
- cpu cores : 1
- fpu : yes
- fpu_exception : yes
- cpuid level : 1
- wp : yes
- flags : fpu tsc msr pae mce cx8 apic mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm cr8_
- legacy
- bogomips : 4023.93
- TLB size : 1024 4K pages
- clflush size : 64
- cache_alignment : 64
- address sizes : 40 bits physical, 48 bits virtual
- power management: ts fid vid ttp tm stc
- processor : 2
- vendor_id : AuthenticAMD
- cpu family : 15
- model : 65
- model name : Dual-Core AMD Opteron(tm) Processor 2212
- stepping : 2
- cpu MHz : 2010.302
- cache size : 1024 KB
- physical id : 1
- siblings : 1
- core id : 0
- cpu cores : 1
- fpu : yes
- fpu_exception : yes
- cpuid level : 1
- wp : yes
- flags : fpu tsc msr pae mce cx8 apic mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm cr8_
- legacy
- bogomips : 4023.93
- TLB size : 1024 4K pages
- clflush size : 64
- cache_alignment : 64
- address sizes : 40 bits physical, 48 bits virtual
- power management: ts fid vid ttp tm stc
- processor : 3
- vendor_id : AuthenticAMD
- cpu family : 15
- model : 65
- model name : Dual-Core AMD Opteron(tm) Processor 2212
- stepping : 2
- cpu MHz : 2010.302
- cache size : 1024 KB
- physical id : 1
- siblings : 1
- core id : 0
- cpu cores : 1
- fpu : yes
- fpu_exception : yes
- cpuid level : 1
- wp : yes
- flags : fpu tsc msr pae mce cx8 apic mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm cr8_
- legacy
- bogomips : 4023.93
- TLB size : 1024 4K pages
- clflush size : 64
- cache_alignment : 64
- address sizes : 40 bits physical, 48 bits virtual
- power management: ts fid vid ttp tm stc