如何识别我的 CPU 型号?

0 cache xeon

我有一个 3.06GHz 的 Intel Xeon CPU,缓存大小为 512KB。

我想知道机器的片上缓存是 L1 还是 L2。有没有办法通过 Unix 命令知道这一点?

Ste*_*ton 5

你不说 Unix 是哪种风格,但在 Linux 上你可以:

$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-60
stepping        : 2
cpu MHz         : 1994.397
cache size      : 512 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm
bogomips        : 3992.75
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
Run Code Online (Sandbox Code Playgroud)

不确定如何从 Solaris 机器中获取相同数量的信息。我找到的最接近的是:

$ /usr/sbin/psrinfo -v
Status of virtual processor 0 as of: 08/07/2009 10:43:52
  on-line since 01/19/2009 12:17:57.
  The i386 processor operates at 2612 MHz,
        and has an i387 compatible floating point processor.
Run Code Online (Sandbox Code Playgroud)