FROM: http://hi.baidu.com/yilinghl/blog/item/5b17918b097839d4fc1f103f.html
CPU:
more /proc/cpuinfo
-------
附:
(超線程技術就是利用特殊的硬件指令,把兩個邏輯內核模擬成兩個物理芯片,讓單個處理器都能使用線程級並行計算,進而兼容多線程操作系統和軟件,減少了CPU的閒置時間,提高的CPU的運行效率。
___________________
geowang@geowang-desktop:~$ more /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz
stepping : 7
cpu MHz : 2333.063
cache size : 2048 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
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 pbe syscall lm constant_ts
c arch_perfmon pebs bts rep_good nopl pni monitor ds_cpl est tm2 ssse3 cx16 xtpr
sse4_1 lahf_lm
bogomips : 4666.12
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz
stepping : 7
cpu MHz : 2333.063
cache size : 2048 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
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 pbe syscall lm constant_tsc arch_perfmon pe
bs bts rep_good nopl pni monitor ds_cpl est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
bogomips : 4666.16
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz
stepping : 7
cpu MHz : 2333.063
cache size : 2048 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
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 pbe syscall lm constant_tsc arch_perfmon pe
bs bts rep_good nopl pni monitor ds_cpl est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
bogomips : 4666.18
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz
stepping : 7
cpu MHz : 2333.063
cache size : 2048 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 10
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 pbe syscall lm constant_tsc arch_perfmon pe
bs bts rep_good nopl pni monitor ds_cpl est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
bogomips : 4666.18
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
--------
查看系統:
uname -a
一般64的系統都會帶有X86_64 ,而32位的都不帶,一般是i386或者i686等。
geowang@geowang-desktop:~$ uname -a
Linux geowang-desktop 2.6.27-9-server #1 SMP Thu Nov 20 22:56:07 UTC 2008 x86_64 GNU/Linux
------------------------
ubuntu系統
方法一
在終端中執行下列指令:
cat /etc/issue
可以查看當前正在運行的 Ubuntu 的版本號。其輸出結果類似下面的內容:
Ubuntu 7.04 /n /l
方法二
使用 lsb_release 命令也可以查看 Ubuntu 的版本號,與方法一相比,內容更爲詳細。執行指令如下:
sudo lsb_release -a
將輸出結果:
Distributor ID: Ubuntu
Description: Ubuntu 7.04
Release: 7.04
Codename: feisty
今天看Ubuntu cookbook的一篇文章,提到如何查看Ubuntude版本,覺得不是很全面,我再來補充和分析一哈子,呵呵!
文章中提到方法一是查看/etc/issue文件中的內容,可以看到版本號。這裏要澄清的一個問題是,/etc/issue的作用主要是在本機登錄時,在登錄提示之前顯示相關的字符信息。/etc/issue.net顯示遠程登錄時的信息。當然一般的提示信息都包含系統版本,但是,如果別人改成自己的個性提示,那就麻煩了。所以我不推薦用這種方法查看系統版本。/etc/issue文件中包含一些換碼符,它們由agetty解釋,所有的換碼符必須緊跟於一個反斜線(/)的後面,比如/d將插入當前時間。
b 插入當前行的波特率
d 插入當前日期
s 插入操作系統的名稱
l 插入當前tty的名稱
m 插入計算機的體系結構id,如i486
n 插入計算機的節點名,即hostname
o 插入計算機的域名
r 插入內核的版本
t 插入當前時間
u 插入當前登陸的用戶數
U 插入1 user 或者 N users,N是當前登陸的用戶數
v 插入當前操作系統的版本
還有一個方法是使用lsb_release命令,個人覺得這種方法比較好。直接看一下怎麼使用這個命令了。查了一下,網上關於這個命令的詳細介紹根本沒有,過兩天我來寫一個好了。
第三種方法是使用uname。uname和lsb_release的區別在於前者主要是顯示系統的整個信息,後者只是顯示版本信息(但是比uname詳細)。直接uanme -a,關於這個命令的介紹很多,就不多說了。
各種平臺查看cpu信息指令
SUN :psrinfo -v
/usr/platform/sun4u/sbin/prtdiag
HP-UX :
dmesg | grep processor
top
ioscan -fnC processor
SAM -->; Performance Monitors -->; System Properties -->;
AIX:
prtconf
$ lsdev -Cc processor
proc0 Available 00-00 Processor
proc1 Available 00-01 Processor
$ lsattr -El proc0
frequency 375000000 Processor Speed False
smt_enabled false Processor SMT enabled False
smt_threads 0 Processor SMT threads False
state enable Processor state False
type PowerPC?_POWER3 Processor type False
Linux:
cat /proc/cpuinfo