热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

当前位置 :| 主页>Linux教程>Linux入门>

Linux下怎样查看机器配置cpu/内存/硬盘

来源: 作者: 时间:2007-05-17 Tag: 点击:
 你说: (10:59:33)
dmesg | grep hd

[root@bj etc]# dmesg|grep hd
hdb: CD-224E, ATAPI CD/DVD-ROM drive
hdb: attached ide-cdrom driver.
hdb: ATAPI 24X CD-ROM drive, 128kB Cache
SCSI device sda: 71132959 512-byte hdwr sectors (36420 MB)


这是36G吧?
你说: (11:01:40)
是!


[root@bj etc]# dmesg|grep cpu
cpu_sibling_map[0] = 3
cpu_sibling_map[1] = 2
cpu_sibling_map[2] = 1
cpu_sibling_map[3] = 0
cpu: 0, clocks: 1328920, slice: 265784
cpu: 3, clocks: 1328920, slice: 265784
cpu: 1, clocks: 1328920, slice: 265784
cpu: 2, clocks: 1328920, slice: 265784


你说: (11:02:52)
# dmesg | grep proc
Detected 1804.140 MHz processor.
#


想查CPU有几个,什么型号的,类似这样的表述PIII800*2

[root@bj etc]# dmesg|grep CPU
Initializing CPU#0
CPU: Trace cache: 12K u, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
Intel machine check reporting enabled on CPU#0.
CPU:   After generic, caps: bfebfbff 00000000 00000000 00000000
CPU:         Common caps: bfebfbff 00000000 00000000 00000000
CPU: Trace cache: 12K u, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
Intel machine check reporting enabled on CPU#0.
CPU:   After generic, caps: bfebfbff 00000000 00000000 00000000
CPU:         Common caps: bfebfbff 00000000 00000000 00000000
CPU0: Intel(R) Xeon(TM) CPU 2.80GHz stepping 07
per-CPU timeslice cutoff: 1463.06 usecs.
enabled ExtINT on CPU#0
Initializing CPU#1
masked ExtINT on CPU#1
CPU: Trace cache: 12K u, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 3
Intel machine check reporting enabled on CPU#1.
CPU:   After generic, caps: bfebfbff 00000000 00000000 00000000
CPU:         Common caps: bfebfbff 00000000 00000000 00000000
CPU1: Intel(R) Xeon(TM) CPU 2.80GHz stepping 07
Initializing CPU#2
masked ExtINT on CPU#2
CPU: Trace cache: 12K u, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 3
Intel machine check reporting enabled on CPU#2.
CPU:   After generic, caps: bfebfbff 00000000 00000000 00000000
CPU:         Common caps: bfebfbff 00000000 00000000 00000000
CPU2: Intel(R) Xeon(TM) CPU 2.80GHz stepping 07
Initializing CPU#3
masked ExtINT on CPU#3
CPU: Trace cache: 12K u, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
Intel machine check reporting enabled on CPU#3.
CPU:   After generic, caps: bfebfbff 00000000 00000000 00000000
CPU:         Common caps: bfebfbff 00000000 00000000 00000000
CPU3: Intel(R) Xeon(TM) CPU 2.80GHz stepping 07
..... CPU clock speed is 2790.7326 MHz.
CPU0<T0:1328912,T1:1063120,D:8,S:265784,C:1328920>
CPU1<T0:1328912,T1:797344,D:0,S:265784,C:1328920>
CPU2<T0:1328912,T1:531552,D:8,S:265784,C:1328920>
CPU3<T0:1328912,T1:265776,D:0,S:265784,C:1328920>
checking TSC synchronization across CPUs: passed.

看不懂
你说: (11:06:25)
Intel Xeon CPU 2.80GHz * 4

啊,不会吧,4个?

你说: (11:06:53)
CPU0/1/2/3
你说: (11:06:56)
# dmesg | grep CPU
Initializing CPU#0
CPU: Before vendor init, caps: bfebfbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 12K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: After vendor init, caps: bfebfbff 00000000 00000000 00000000
Intel machine check reporting enabled on CPU#0.
CPU:   After generic, caps: bfebfbff 00000000 00000000 00000000
CPU:         Common caps: bfebfbff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz stepping 07
#


这个不是真正的CPU吧,是不是有虚拟的

这里记录的服务器记录从来没有4个的,最不会吧两个
你说: (11:08:30)
新Xeon有HyperThreding技术,如果有两个物理的处理器并打开HT功能后会有显示4个,你至少有两个

哦,好的,那就写两个吧!:P


怎样看系统版本啊?
你说: (11:10:47)
uname -a

[root@bj etc]# uname -a
Linux bj 2.4.25 #11 SMP Tue Mar 30 15:15:52 CST 2004 i686 i686 i386 GNU/Linux


这是什么版本,才linux2?
你说: (11:11:26)
Kernel 2.4.25 #11 SMP
你说: (11:11:55)
# dmesg | grep redhat
Linux version 2.4.18-3 (bhcompile@daffy.perf.redhat.com) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)) #1 Thu Apr 18 07:37:53 EDT 2002
#


Linux version 2.4.25 (root@bj) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #11 SMP Tue Mar 30 15:15:5

这是redhat3。2。2 吗?这么低啊?
你说: (11:16:18)
? dmesg | more

嗯,就是dmesg查出来的
你说: (11:23:04)
查。。。。。。

不用查了,就写linux2.4.25好了,没错吧


Linux Kernel 2.4.25 #11 SMP

最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册