Skip to content


快速查看Linux系统软硬件配置bash


wget http://aspersa.googlecode.com/svn/trunk/summary
chmod a+x summary
./summary

用root用户运行在系统信息,内存,磁盘等方面显示会更详细点

# Aspersa System Summary Report ##############################
Date | 2011-02-24 03:40:36 UTC (local TZ: CST +0800)
Hostname | c1gstudio
Uptime | 10:33, 1 user, load average: 3.52, 3.26, 3.32
System | Dell Inc.; PowerEdge R410; vNot Specified ()
Service Tag | xxxxxxx
Platform | Linux
Release | CentOS release 5.5 (Final)
Kernel | 2.6.18-194.el5
Architecture | CPU = 64-bit, OS = 64-bit
Threading | NPTL 2.5
Compiler | GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-48).
SELinux | Disabled
Virtualized | No virtualization detected
# Processor ##################################################
Processors | physical = 2, cores = 8, virtual = 16, hyperthreading = yes
Speeds | 16×2261.061
Models | 16xIntel(R) Xeon(R) CPU E5520 @ 2.27GHz
Caches | 16×8192 KB
# Memory #####################################################
Total | 11.72G
Free | 5.67G
Used | physical = 6.05G, swap = 0.00k, virtual = 6.05G
Buffers | 516.82M
Caches | 2.84G
Dirty | 6724 kB
UsedRSS | 9.8G
Swappiness | vm.swappiness = 60
DirtyPolicy | vm.dirty_ratio = 40, vm.dirty_background_ratio = 10
Locator Size Speed Form Factor Type Type Detail
========= ======== ================= ============= ============= ===========
DIMM_A1 4096 MB 1333 MHz DIMM DDR3 Synchronous
DIMM_A2 4096 MB 1333 MHz DIMM DDR3 Synchronous
DIMM_B1 4096 MB 1333 MHz DIMM DDR3 Synchronous
DIMM_B2 4096 MB 1333 MHz DIMM DDR3 Synchronous
DIMM_A3 {EMPTY} Unknown DIMM DDR3 Synchronous
DIMM_A4 {EMPTY} Unknown DIMM DDR3 Synchronous
DIMM_B3 {EMPTY} Unknown DIMM DDR3 Synchronous
DIMM_B4 {EMPTY} Unknown DIMM DDR3 Synchronous
# Mounted Filesystems ########################################
Filesystem Size Used Type Opts Mountpoint
/dev/mapper/VolGroup00-LogVol01 9.7G 2% ext3 rw /tmp
/dev/mapper/VolGroup00-LogVol02 58G 21% ext3 rw /
/dev/mapper/VolGroup00-LogVol03 196G 11% ext3 rw /opt
/dev/mapper/VolGroup01-Vol01 136G 1% ext3 rw /vm1
/dev/sda1 190M 17% ext3 rw /boot
tmpfs 5.9G 1% tmpfs rw /dev/shm
# Disk Schedulers And Queue Size #############################
sda | [cfq] 128
sdb | [cfq] 128
sr0 | [cfq] 128
# Disk Partioning ############################################
Device Type Start End Size
============ ==== ========== ========== ==================
/dev/sda Disk 300000000000
/dev/sda1 Part 1 25 197406720
/dev/sda2 Part 26 36472 299778554880
/dev/sdb Disk 300000000000
/dev/sdb1 Part 1 36472 299984186880
# Kernel Inode State #########################################
dentry-state | 185384 179820 45 0 0 0
file-nr | 5610 0 1174801
inode-nr | 173045 143
# LVM Volumes ################################################
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LogVol00 VolGroup00 -wi-ao 7.91G
LogVol01 VolGroup00 -wi-ao 10.00G
LogVol02 VolGroup00 -wi-ao 59.00G
LogVol03 VolGroup00 -wi-ao 202.28G
Vol01 VolGroup01 -wi-ao 138.00G
# RAID Controller ############################################
Controller | Fusion-MPT SAS
# Network Config #############################################
Controller | Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet (rev 20)
Controller | Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet (rev 20)
FIN Timeout | net.ipv4.tcp_fin_timeout = 60
Port Range | net.ipv4.ip_local_port_range = 1024 65535
# Interface Statistics #######################################
interface rx_bytes rx_packets rx_errors tx_bytes tx_packets tx_errors
========= ========= ========== ========== ========== ========== ==========
lo 3500000000 22500000 0 3500000000 22500000 0
eth0 1000000000 80000000 0 4000000000 70000000 0
eth1 1500000000 10000000 0 4000000000 15000000 0
sit0 0 0 0 0 0 0
virbr0 0 0 0 450 6 0
# Network Connections ########################################
Connections from remote IP addresses
1.80.74.240 1
1.80.133.200 4
1.85.0.140 2
14.104.71.204 1
14.208.109.44 10
14.210.135.2 2
24.141.8.153 6
27.17.180.165 1
27.17.194.85 7
Connections to local IP addresses
61.xxx.xxx.xx 3000
122.xxx.xxx.xx 1000
127.0.0.1 3000
192.168.0.21 2500
Connections to top 10 local ports
80 4000
9000 3000
9354 1
9356 1
9358 1
9360 1
9362 1
9365 1
9366 1
9368 1
States of connections
CLOSING 1
ESTABLISHED 2500
FIN_WAIT1 200
FIN_WAIT2 350
LAST_ACK 100
LISTEN 7
SYN_RECV 15
TIME_WAIT 6000
# Top Processes ##############################################
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4893 nobody 16 0 254m 73m 55m S 58.7 0.6 8:53.18 php-cgi
4879 nobody 16 0 260m 79m 57m R 47.0 0.7 8:56.18 php-cgi
4896 nobody 16 0 252m 71m 55m S 35.2 0.6 8:55.26 php-cgi
4866 nobody 16 0 254m 74m 56m S 23.5 0.6 8:59.46 php-cgi
4890 nobody 16 0 256m 76m 58m S 23.5 0.6 8:52.82 php-cgi
4851 nobody 16 0 256m 75m 56m S 21.5 0.6 9:02.35 php-cgi
4859 nobody 16 0 254m 74m 58m S 21.5 0.6 9:02.85 php-cgi
4868 nobody 16 0 256m 76m 58m S 21.5 0.6 8:45.38 php-cgi
4826 nobody 16 0 253m 73m 56m S 19.6 0.6 8:41.44 php-cgi
# Simplified and fuzzy rounded vmstat (wait please) ##########
procs —swap– —–io—- —system—- ——–cpu——–
r b si so bi bo ir cs us sy il wa st
6 0 0 0 2 20 60 7 11 2 88 0 0
1 0 0 0 35 0 5000 3500 11 2 87 0 0
5 0 0 0 0 1750 4500 3500 8 2 89 0 0
5 0 0 0 0 80 7000 6000 23 4 73 0 0
4 0 0 0 0 0 9000 8000 22 4 74 0 0
# The End ####################################################

参考:http://bbs.linuxtone.org/thread-8696-1-1.html

Posted in linux 维护优化, 技术.

Tagged with , .


No Responses (yet)

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.