[贴教程]Linux下怎样查看机器配置啊?cpu/内存/硬盘
你说: (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
Linux下查看机器配置 CPU、内存和硬盘
来源:赛迪网技术社区
作者:
时间:2007-05-17
点击:
最新评论共有 0 位网友发表了评论
查看所有评论
发表评论
- 赞助商连接
热点关注
- Ubuntu Linux与Windows系
- Linux常见问题1000个为什
- Linux系统的安装和配置
- 推荐:Linux用户态与内核
- Linux下新手基本操作及技
- 安装Linux无盘工作站
- 送给solaris x86新手的大
- Linux下查看机器配置 CPU
- 在 Linux上如何运行 Windo
- 为系统处理器编写Linux设
- 使用Inotify 监控Linux 文
- 教您30分钟打造Linux的VPN
- 经典文档:Linux网络服务
- Linux NFS服务器性能优化
- 基于网络的RedHat系统无人
- 在Linux系统下FTP的配置与
- 起步走 二十五步跟我搞定L
- 高手进阶必读:Linux内核
- Linux系统可卸载内核模块
- Linux系统可卸载内核模块