sun查cpu主频指令 usr/sbin/psrinfo -v
...虚拟处理器 63 在下列时间的状态:09/10/2013 14:23:52 自 04/08/2013 17:41:40 开始已在运行。 sparcv9 处理器以 2660 MHz 运行, 而且有 sparcv9 浮点数处理器
sun的prtdiag指令: 查cpu个数
bash-3.2$ uname -a SunOS m5000-1 5.10 Generic_147440-01 sun4u sparc SUNW,SPARC-Enterprise bash-3.2$ prtdiag System Configuration: Oracle Corporation sun4u SPARC Enterprise M5000 Server System clock frequency: 1012 MHz (注意,这是时钟主频,不是cpu主频) Memory size: 131072 Megabytes ==================================== CPUs ==================================== CPU CPU Run L2$ CPU CPU LSB Chip ID MHz MB Impl. Mask --- ---- ---------------------------------------- ---- --- ----- ---- 00 0 0, 1, 2, 3, 4, 5, 6, 7 2660 11.0 7 193 00 1 8, 9, 10, 11, 12, 13, 14, 15 2660 11.0 7 193 00 2 16, 17, 18, 19, 20, 21, 22, 23 2660 11.0 7 193 00 3 24, 25, 26, 27, 28, 29, 30, 31 2660 11.0 7 193 01 0 32, 33, 34, 35, 36, 37, 38, 39 2660 11.0 7 193 01 1 40, 41, 42, 43, 44, 45, 46, 47 2660 11.0 7 193 01 2 48, 49, 50, 51, 52, 53, 54, 55 2660 11.0 7 193 01 3 56, 57, 58, 59, 60, 61, 62, 63 2660 11.0 7 193
x86系统查询 cat /proc/cpuinfo
test@test-laptop:~$ cat /proc/cpuinfo | grep process processor : 0 processor : 1