Hi Guys,

How to understand kernel PID Understating, I have seen #ps -aux
command show all user process and system process will show, I can't
find Some PID is not there, How can I see Hidden process numbers

root ~ # ps -aux
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   2928  1820 ?        Ss   15:56   0:00 /sbin/init
root         2  0.0  0.0      0     0 ?        S    15:56   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    15:56   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S    15:56   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S    15:56   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S    15:56   0:00 [migration/1]
root         7  0.0  0.0      0     0 ?        S    15:56   0:00 [ksoftirqd/1]
root         8  0.0  0.0      0     0 ?        S    15:56   0:00 [watchdog/1]
root         9  0.0  0.0      0     0 ?        S    15:56   0:00 [events/0]
root        10  0.0  0.0      0     0 ?        S    15:56   0:00 [events/1]
root        11  0.0  0.0      0     0 ?        S    15:56   0:00 [cpuset]
root        12  0.0  0.0      0     0 ?        S    15:56   0:00 [khelper]
root        13  0.0  0.0      0     0 ?        S    15:56   0:00 [async/mgr]
root        14  0.0  0.0      0     0 ?        S    15:56   0:00 [pm]
root        16  0.0  0.0      0     0 ?        S    15:56   0:00 [sync_supers]
root        17  0.0  0.0      0     0 ?        S    15:56   0:00 [bdi-default]
root        18  0.0  0.0      0     0 ?        S    15:56   0:00 [kintegrityd/0]
root        19  0.0  0.0      0     0 ?        S    15:56   0:00 [kintegrityd/1]
root        20  0.0  0.0      0     0 ?        S    15:56   0:00 [kblockd/0]
root        21  0.0  0.0      0     0 ?        S    15:56   0:00 [kblockd/1]
root        22  0.0  0.0      0     0 ?        S    15:56   0:00 [kacpid]
root        23  0.0  0.0      0     0 ?        S    15:56   0:00 [kacpi_notify]
root        24  0.0  0.0      0     0 ?        S    15:56   0:00 [kacpi_hotplug]
root        25  0.0  0.0      0     0 ?        S    15:56   0:00 [ata/0]
root        26  0.0  0.0      0     0 ?        S    15:56   0:00 [ata/1]
root        27  0.0  0.0      0     0 ?        S    15:56   0:00 [ata_aux]
root        28  0.0  0.0      0     0 ?        S    15:56   0:00 [ksuspend_usbd]
root        29  0.0  0.0      0     0 ?        S    15:56   0:00 [khubd]
root        30  0.0  0.0      0     0 ?        S    15:56   0:00 [kseriod]
root        31  0.0  0.0      0     0 ?        S    15:56   0:00 [kmmcd]
root        34  0.0  0.0      0     0 ?        S    15:56   0:00 [khungtaskd]
root        35  0.0  0.0      0     0 ?        S    15:56   0:00 [kswapd0]
root        36  0.0  0.0      0     0 ?        SN   15:56   0:00 [ksmd]
root        37  0.0  0.0      0     0 ?        S    15:56   0:00 [aio/0]
root        38  0.0  0.0      0     0 ?        S    15:56   0:00 [aio/1]
root        39  0.0  0.0      0     0 ?        S    15:56   0:00
[ecryptfs-kthrea]
root        40  0.0  0.0      0     0 ?        S    15:56   0:00 [crypto/0]
root        41  0.0  0.0      0     0 ?        S    15:56   0:00 [crypto/1]
root        45  0.0  0.0      0     0 ?        S    15:56   0:00 [scsi_eh_0]
root        46  0.0  0.0      0     0 ?        S    15:56   0:00 [scsi_eh_1]
root        47  0.0  0.0      0     0 ?        S    15:56   0:00 [scsi_eh_2]
root        48  0.0  0.0      0     0 ?        S    15:56   0:02 [scsi_eh_3]
root        53  0.0  0.0      0     0 ?        S    15:56   0:00 [kstriped]
root        54  0.0  0.0      0     0 ?        S    15:56   0:00 [kmpathd/0]
root        55  0.0  0.0      0     0 ?        S    15:56   0:00 [kmpathd/1]
root        56  0.0  0.0      0     0 ?        S    15:56   0:00
[kmpath_handlerd]
root        57  0.0  0.0      0     0 ?        S    15:56   0:00 [ksnapd]
root        58  0.0  0.0      0     0 ?        S    15:56   0:00 [kondemand/0]
root        59  0.0  0.0      0     0 ?        S    15:56   0:00 [kondemand/1]
root        60  0.0  0.0      0     0 ?        S    15:56   0:00
[kconservative/0]
root        61  0.0  0.0      0     0 ?        S    15:56   0:00
[kconservative/1]

//Some PID not there? why?

root       288  0.0  0.0      0     0 ?        S    15:56   0:00 [scsi_eh_4]
root       289  0.0  0.0      0     0 ?        S    15:56   0:00 [usb-storage]
root       297  0.0  0.0      0     0 ?        S    15:56   0:00 [i915]
root       321  0.0  0.0      0     0 ?        S    15:56   0:00
[usbhid_resumer]
root       376  0.0  0.0      0     0 ?        S    15:56   0:00 [flush-8:0]
root       378  0.0  0.0      0     0 ?        S    15:56   0:00 [kjournald]

//Some PID not there? why?

root       422  0.0  0.0   2448   972 ?        S    15:56   0:00
upstart-udev-bridge --daemon
root       425  0.0  0.0   2724  1144 ?        S<s  15:56   0:00 udevd --daemon
root       529  0.0  0.0      0     0 ?        S    15:56   0:00 [kpsmoused]
root       727  0.0  0.0      0     0 ?        S    15:56   0:00 [hd-audio0]
daemon     791  0.0  0.0   1896   520 ?        Ss   15:56   0:00 portmap
root       873  0.0  0.0      0     0 ?        S    15:56   0:00 [kjournald]
root       876  0.0  0.0      0     0 ?        S    15:56   0:00 [kjournald]
root       879  0.0  0.0      0     0 ?        S    15:56   0:00 [kjournald]
root       882  0.0  0.0      0     0 ?        S    15:56   0:00 [kjournald]
root       885  0.0  0.0      0     0 ?        S    15:56   0:00 [kjournald]
root       907  0.0  0.1  15348  3996 ?        Ss   15:56   0:00 smbd -F
root       917  0.0  0.0      0     0 ?        S    15:56   0:00 [rpciod/0]
root       918  0.0  0.0   5552  1960 ?        Ss   15:56   0:00
/usr/sbin/sshd -D
root       919  0.0  0.0      0     0 ?        S    15:56   0:00 [rpciod/1]
102        923  0.0  0.0   3352  1652 ?        Ss   15:56   0:00
dbus-daemon --system --fork
root       942  0.0  0.0      0     0 ?        S    15:56   0:00 [nfsiod]
root       967  0.0  0.1  18768  3244 ?        Ssl  15:56   0:00 gdm-binary
root       968  0.0  0.2   9512  4504 ?        Ss   15:56   0:00 NetworkManager
root       976  0.0  0.0   2372   564 ?        Ss   15:56   0:00 rpc.idmapd
avahi      978  0.0  0.0   3060  1660 ?        S    15:56   0:00
avahi-daemon: running [Ethics-Server.local]
root       979  0.0  0.1  19556  3164 ?        Sl   15:56   0:00
/usr/sbin/console-kit-daemon --no-daemon
root       981  0.0  0.1   4172  2336 ?        S    15:56   0:00
/usr/sbin/modem-manager
avahi      983  0.0  0.0   2928   548 ?        Ss   15:56   0:00
avahi-daemon: chroot helper

//Some PID not there? why?

root      1050  0.0  0.0  15348  1208 ?        S    15:56   0:00 smbd -F
root      1052  0.0  0.0   4836  1740 ?        S    15:56   0:00
/sbin/wpa_supplicant -u -s
statd     1056  0.0  0.0   1968   768 ?        Ss   15:56   0:00 rpc.statd -L
root      1064  0.0  0.1  20500  3796 ?        Sl   15:56   0:00
/usr/lib/gdm/gdm-simple-slave --display-id /org/gnome/DisplayManager/
root      1083  0.0  0.0  13892   928 ?        S<sl 15:56   0:00 /sbin/auditd
root      1085  0.0  0.0  13208   776 ?        S<sl 15:56   0:00 /sbin/audispd
root      1087  0.0  0.0      0     0 ?        S    15:56   0:00 [kauditd]
root      1089  2.1  0.9  29516 19624 tty7     Ss+  15:56   2:25
/usr/bin/X :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-ble5P7/dat
root      1137  0.0  0.0   1792   564 tty4     Ss+  15:56   0:00
/sbin/getty -8 38400 tty4
root      1141  0.0  0.0   1792   560 tty5     Ss+  15:56   0:00
/sbin/getty -8 38400 tty5
root      1142  0.0  0.3  10492  6948 ?        Ss   15:56   0:01
/home/dhana013/test/bin/python ../bin/gunicorn_django -w 3 --user=dha
root      1149  0.0  0.4  16764  9260 ?        Ss   15:56   0:00
/usr/sbin/uwsgi --socket /opt/run/spam.sock --chmod-socket --module w
root      1155  0.0  0.0   1792   568 tty2     Ss+  15:56   0:00
/sbin/getty -8 38400 tty2
root      1156  0.0  0.0   1792   564 tty3     Ss+  15:56   0:00
/sbin/getty -8 38400 tty3
root      1161  0.0  0.0   1792   564 tty6     Ss+  15:56   0:00
/sbin/getty -8 38400 tty6
root      1173  0.0  0.0   2048   872 ?        Ss   15:56   0:00 acpid
-c /etc/acpi/events -s /var/run/acpid.socket
root      1233  0.0  0.0   2376   908 ?        Ss   15:56   0:00 cron
daemon    1234  0.0  0.0   2248   436 ?        Ss   15:56   0:00 atd
syslog    1252  0.0  0.0   1988   712 ?        Ss   15:56   0:00
/sbin/syslogd -u syslog
mysql     1256  0.0  0.9 146376 18616 ?        Ssl  15:56   0:01
/usr/sbin/mysqld
root      1286  0.0  0.0   1936   564 ?        S    15:56   0:00
/bin/dd bs=1 if=/proc/kmsg of=/var/run/klogd/kmsg
klog      1288  0.0  0.1   4036  2840 ?        Ss   15:56   0:00
/sbin/klogd -P /var/run/klogd/kmsg
gdm       1306  0.0  0.0   3384   780 ?        S    15:56   0:00
/usr/bin/dbus-launch --exit-with-session
dhana013  1366  0.0  0.6  28896 13252 ?        S    15:56   0:00
/home/dhana013/test/bin/python ../bin/gunicorn_django -w 3 --user=dha

To Find perticular PID

root ~ # ps -p 1
  PID TTY          TIME CMD
    1 ?        00:00:00 init
root ~ # ps -p 100
  PID TTY          TIME CMD
root ~ # ps -p 62
  PID TTY          TIME CMD
root ~ #


please guide me guys, give any idea clues.

-Ganesh.


Did I learn something today? If not, I wasted it.
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to