Linux notes – system status

To view the process tree.

[user@host ~]$pstree
init─┬─acpid
├─atd
├─automount
├─bonobo-activati
├─cannaserver
├─cardmgr
├─clock-applet
├─crond
├─cups-config-dae
├─cupsd
├─2*[dbus-daemon-1]
├─dbus-launch
├─eggcups
├─events/0─┬─aio/0
│ ├─kacpid
│ ├─kauditd
│ ├─kblockd/0
│ ├─khelper
……omit


To watch the IO status

[user@host ~]# iostat
Linux 2.6.9-42.0.2.ELhugemem (paradiso) 09/07/2006

avg-cpu: %user %nice %sys %iowait %idle
0.13 0.00 0.07 0.15 99.65

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 4.45 15.19 44.61 1652624 4852448
sda1 0.00 0.01 0.00 1386 8
sda2 6.39 14.21 44.08 1545370 4794984
sda3 0.01 0.01 0.00 896 352
sda4 0.00 0.00 0.00 2 0
sda5 0.18 0.96 0.52 104050 57104

[user@host ~]# watch –interval=1 iostat

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.