标签:
http://3918479.blog.51cto.com/3908479/857900
查看服务器的cpu配置
Fb-bj138# dmesg | grep CPU
CPU: Intel(R) Core(TM) i3 CPU M 380 @ 2.53GHz (2527.07-MHz K8-class CPU)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
查看服务器的内存
Fb-bj138# dmesg | grep memory
real memory = 524288000 (500 MB)
avail memory = 481828864 (459 MB)
查看服务器磁盘分区使用情况
Fb-bj138# df -Th
Filesystem Type Size Used Avail Capacity Mounted on
/dev/da0a ufs 9.9G 359M 8.7G 4% /
devfs devfs 1.0k 1.0k 0B 100% /dev
/dev/da0d ufs 14G 2.8G 10G 20% /usr
/dev/da0e ufs 13G 32M 12G 0% /data
查看网络流量
Fb-bj138# systat -if 2 //每2秒刷新一次,显示Traffic流量平均值,Peak峰值,Total总流量
/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10
Load Average
Interface Traffic Peak Total
em0 in 0.087 KB/s 0.496 KB/s 28.029 MB
out 0.374 KB/s 0.579 KB/s 4.217 MB
查看硬盘大小
Fb-bj138# diskinfo -vt /dev/da0 //da0是整个磁盘名
/dev/da0
512 # sectorsize
42949672960 # mediasize in bytes (40G)
83886080 # mediasize in sectors
0 # stripesize
0 # stripeoffset
5221 # Cylinders according to firmware.
255 # Heads according to firmware.
63 # Sectors according to firmware.
# Disk ident.
Seek times:
Full stroke: 250 iter in 1.561636 sec = 6.247 msec
Half stroke: 250 iter in 0.452481 sec = 1.810 msec
Quarter stroke: 500 iter in 1.363145 sec = 2.726 msec
Short forward: 400 iter in 1.191727 sec = 2.979 msec
Short backward: 400 iter in 5.698081 sec = 14.245 msec
Seq outer: 2048 iter in 0.431235 sec = 0.211 msec
Seq inner: 2048 iter in 0.381998 sec = 0.187 msec
Transfer rates:
outside: 102400 kbytes in 0.512517 sec = 199798 kbytes/sec
middle: 102400 kbytes in 0.265945 sec = 385042 kbytes/sec
inside: 102400 kbytes in 0.298630 sec = 342899 kbytes/sec
Fb-bj138# diskinfo -vt /dev/da0a //da0a是磁盘分区
/dev/da0a
512 # sectorsize
10737418240 # mediasize in bytes (10G)
20971520 # mediasize in sectors
0 # stripesize
0 # stripeoffset
1305 # Cylinders according to firmware.
255 # Heads according to firmware.
63 # Sectors according to firmware.
# Disk ident.
Seek times:
Full stroke: 250 iter in 0.596769 sec = 2.387 msec
Half stroke: 250 iter in 0.512045 sec = 2.048 msec
Quarter stroke: 500 iter in 0.466134 sec = 0.932 msec
Short forward: 400 iter in 0.211083 sec = 0.528 msec
Short backward: 400 iter in 1.091816 sec = 2.730 msec
Seq outer: 2048 iter in 0.437509 sec = 0.214 msec
Seq inner: 2048 iter in 0.446752 sec = 0.218 msec
Transfer rates:
outside: 102400 kbytes in 0.567034 sec = 180589 kbytes/sec
middle: 102400 kbytes in 0.350021 sec = 292554 kbytes/sec
inside: 102400 kbytes in 0.375098 sec = 272995 kbytes/sec
标签:
原文地址:http://www.cnblogs.com/misstaste/p/5906453.html