Ps

Aus SchnallIchNet
Wechseln zu: Navigation, Suche

some process stuff

# ps ax --format "%p:%a"

PID:COMMAND
 1:init [5]
 2:[migration/0]
 3:[ksoftirqd/0]
 4:[watchdog/0]
 5:[migration/1]
 6:[ksoftirqd/1]
 7:[watchdog/1]
 8:[events/0]
 9:[events/1]
10:[khelper]
...
# ps axf -o pid,wchan=WIDE-WCHAN-COLUMN -o comm

  PID WIDE-WCHAN-COLUMN COMMAND
    1 -                 init
    2 migration_thread  migration/0
    3 ksoftirqd         ksoftirqd/0
    4 migration_thread  migration/1
    5 ksoftirqd         ksoftirqd/1
    6 worker_thread     events/0
    7 worker_thread     events/1
    8 worker_thread     khelper
    9 worker_thread     kthread
  617 worker_thread      \_ kacpid
  988 worker_thread      \_ kblockd/0
  989 worker_thread      \_ kblockd/1
 1090 worker_thread      \_ aio/0
 1091 worker_thread      \_ aio/1
 1689 serio_thread       \_ kseriod
 1939 worker_thread      \_ xfslogd/0
 1940 worker_thread      \_ xfslogd/1
 1941 worker_thread      \_ xfsdatad/0
 1942 worker_thread      \_ xfsdatad/1
 1943 -                  \_ xfsbufd
 1963 18446604441075359  \_ xfssyncd
 3023 18446604441063341  \_ xfssyncd
 3024 18446604441097461  \_ xfssyncd
 3025 18446604441097838  \_ xfssyncd
 3902 hub_thread         \_ khubd
 4025 worker_thread      \_ rpciod/0
 4026 worker_thread      \_ rpciod/1
17487 pdflush            \_ pdflush
17542 pdflush            \_ pdflush
 1089 kswapd            kswapd0
 1828 -                 scsi_eh_0
 3022 kjournald         kjournald
 3071 -                 udevd
 3837 -                 irqbalance
 3909 -                 shpchpd_event
 3971 -                 resmgrd
 3972 -                 dbus-daemon
 6194 -                 syslog-ng
 6197 syslog            klogd
 6225 -                 portmap
 6457 -                 acpid
 6475 -                 sshd
16281 -                  \_ sshd
16285 wait               |   \_ bash
13608 -                  |       \_ top
 6411 -                  \_ sshd
 6419 wait                   \_ bash
 6932 -                          \_ ps
 6585 -                 ntpd
 6607 -                 atd
 6623 stext             nscd
 6631 -                 ha_logd
 6641 -                  \_ ha_logd
 6683 -                 heartbeat
 6686 pipe_wait          \_ heartbeat
 6687 -                  \_ heartbeat
 6688 -                  \_ heartbeat
 7237 -                  \_ ccm
 7238 -                  \_ cib
 7239 -                  \_ lrmd
 7240 -                  \_ stonithd
 7241 -                  \_ attrd
 7242 -                  \_ crmd
 7260 -                  |   \_ tengine
 7261 -                  |   \_ pengine
 7243 -                  \_ mgmtd
 6754 -                 cron
 6899 pipe_wait          \_ cron
 6900 wait               |   \_ sh
 6904 -                  |       \_ ipmitool
 6901 pipe_wait          \_ cron
 6902 -                      \_ memcacheVehicle
 6764 -                 memcached
 6770 -                 hald
 6783 -                  \_ hald-addon-acpi
 6831 -                  \_ hald-addon-stor
 6854 -                  \_ hald-addon-stor
 7009 -                 mingetty
 7010 -                 mingetty
 7011 -                 mingetty
 7012 -                 mingetty
 7013 -                 mingetty
 7014 -                 mingetty
 7015 -                 agetty
 4040 stext             monit
18346 -                 munin-node
19477 -                 master
19489 -                  \_ qmgr
 2227 -                  \_ pickup
19625 -                 xinetd
 4027 -                 lockd
11007 sync_page         php5
26060 sync_page         php5
31831 sync_page         php5
31265 -                 httpd2-prefork
31266 -                  \_ httpd2-prefork
...