Unable to understand ps output.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unable to understand ps output.
# 1  
Old 05-03-2011
Unable to understand ps output.

I m executing ps command and sorting it according to memory usage.

Please find the output of the command.

Code:
# ps aux --sort pmem
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   2060   624 ?        Ss   01:54   0:00 init [5]
root         2  0.0  0.0      0     0 ?        S<   01:54   0:00 [migration/0]
root         3  0.0  0.0      0     0 ?        SN   01:54   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S<   01:54   0:00 [watchdog/0]
root         5  0.0  0.0      0     0 ?        S<   01:54   0:00 [migration/1]
root         6  0.0  0.0      0     0 ?        SN   01:54   0:00 [ksoftirqd/1]
root         7  0.0  0.0      0     0 ?        S<   01:54   0:00 [watchdog/1]
root         8  0.0  0.0      0     0 ?        S<   01:54   0:04 [events/0]
root         9  0.0  0.0      0     0 ?        S<   01:54   0:00 [events/1]
root        10  0.0  0.0      0     0 ?        S<   01:54   0:00 [khelper]
root        11  0.0  0.0      0     0 ?        S<   01:54   0:00 [kthread]
root        15  0.0  0.0      0     0 ?        S<   01:54   0:00 [kblockd/0]
root        16  0.0  0.0      0     0 ?        S<   01:54   0:00 [kblockd/1]
root        17  0.0  0.0      0     0 ?        S<   01:54   0:00 [kacpid]
root        77  0.0  0.0      0     0 ?        S<   01:54   0:00 [cqueue/0]
root        78  0.0  0.0      0     0 ?        S<   01:54   0:00 [cqueue/1]
root        81  0.0  0.0      0     0 ?        S<   01:54   0:00 [khubd]
root        83  0.0  0.0      0     0 ?        S<   01:54   0:00 [kseriod]
root       153  0.0  0.0      0     0 ?        S    01:54   0:00 [pdflush]
root       154  0.0  0.0      0     0 ?        S    01:54   0:00 [pdflush]
root       155  0.0  0.0      0     0 ?        S<   01:54   0:00 [kswapd0]
root       156  0.0  0.0      0     0 ?        S<   01:54   0:00 [aio/0]
root       157  0.0  0.0      0     0 ?        S<   01:54   0:00 [aio/1]
root       314  0.0  0.0      0     0 ?        S<   01:54   0:00 [kpsmoused]
root       348  0.0  0.0      0     0 ?        S<   01:54   0:00 [ata/0]
root       349  0.0  0.0      0     0 ?        S<   01:54   0:00 [ata/1]
root       350  0.0  0.0      0     0 ?        S<   01:54   0:00 [ata_aux]
root       366  0.0  0.0      0     0 ?        S<   01:54   0:00 [ksnapd]
root       369  0.0  0.0      0     0 ?        S<   01:54   0:00 [kjournald]
root       397  0.0  0.0      0     0 ?        S<   01:54   0:00 [kauditd]
root       431  0.0  0.0   2440   908 ?        S<s  01:54   0:00 /sbin/udevd -d
root      3644  0.0  0.0      0     0 ?        S<   01:54   0:00 [kmpathd/0]
root      3645  0.0  0.0      0     0 ?        S<   01:54   0:00 [kmpathd/1]
root      3670  0.0  0.0      0     0 ?        S<   01:55   0:00 [kjournald]
root      3672  0.0  0.0      0     0 ?        S<   01:55   0:00 [kjournald]
root      4020  0.0  0.0  12128   632 ?        S<sl 01:55   0:00 auditd
root      4022  0.0  0.0  12048   648 ?        S<sl 01:55   0:00 /sbin/audispd
root      4046  0.0  0.0   1716   564 ?        Ss   01:55   0:00 syslogd -m 0
root      4049  0.0  0.0   1672   404 ?        Ss   01:55   0:00 klogd -x
root      4061  0.0  0.0   2428   364 ?        Ss   01:55   0:00 irqbalance
rpc       4082  0.0  0.0   1808   556 ?        Ss   01:55   0:00 portmap
root      4111  0.0  0.0   1920   808 ?        Ss   01:55   0:00 rpc.statd
root      4148  0.0  0.0   5436   584 ?        Ss   01:55   0:00 rpc.idmapd
dbus      4167  0.0  0.0   2744   804 ?        Ss   01:55   0:00 dbus-daemon --s
root      4178  0.0  0.0   2148   756 ?        Ss   01:55   0:00 /usr/sbin/hcid
root      4182  0.0  0.0   1740   500 ?        Ss   01:55   0:00 /usr/sbin/sdpd
root      4206  0.0  0.0      0     0 ?        S<   01:55   0:00 [krfcommd]
root      4245  0.0  0.1  22964  1268 ?        Ssl  01:55   0:00 pcscd
root      4267  0.0  0.0   1904   448 ?        Ss   01:55   0:00 /usr/bin/hidd -
root      4283  0.0  0.1  10828  1308 ?        Ssl  01:55   0:00 automount
root      4302  0.0  0.0   1664   536 ?        Ss   01:55   0:00 /usr/sbin/acpid
root      4313  0.0  0.0   5080   492 ?        Ss   01:55   0:00 ./hpiod
root      4318  0.0  0.4  13256  4692 ?        S    01:55   0:00 python ./hpssd.
root      4333  0.0  0.1   6988  1048 ?        Ss   01:55   0:00 /usr/sbin/sshd
root      4344  0.0  0.1   9744  2032 ?        Ss   01:55   0:00 cupsd
root      4356  0.0  0.0   2720   836 ?        Ss   01:55   0:00 xinetd -stayali
root      4390  0.0  0.1   9020  1860 ?        Ss   01:55   0:00 sendmail: accep
smmsp     4398  0.0  0.1   8072  1512 ?        Ss   01:55   0:00 sendmail: Queue
root      4409  0.0  0.0   1896   360 ?        Ss   01:55   0:00 gpm -m /dev/inp
root      4421  0.0  0.1   5260  1104 ?        Ss   01:55   0:00 crond
xfs       4452  0.0  0.1   3924  1704 ?        Ss   01:55   0:00 xfs -droppriv -
root      4473  0.0  0.0   2240   428 ?        Ss   01:55   0:00 /usr/sbin/atd
avahi     4509  0.0  0.1   2568  1328 ?        Ss   01:55   0:00 avahi-daemon: r
avahi     4510  0.0  0.0   2568   308 ?        Ss   01:55   0:00 avahi-daemon: c
68        4521  0.0  0.3   5540  3560 ?        Ss   01:55   0:00 hald
root      4522  0.0  0.0   3132   968 ?        S    01:55   0:00 hald-runner
68        4529  0.0  0.0   1992   796 ?        S    01:55   0:00 hald-addon-acpi
68        4534  0.0  0.0   1996   780 ?        S    01:55   0:00 hald-addon-keyb
root      4543  0.1  0.0   1948   612 ?        S    01:55   0:09 hald-addon-stor
root      4621  0.0  0.0   1932   344 ?        S    01:55   0:00 /usr/sbin/smart
root      4626  0.0  0.0   1652   424 tty1     Ss+  01:55   0:00 /sbin/mingetty
root      4627  0.0  0.0   1652   424 tty2     Ss+  01:55   0:00 /sbin/mingetty
root      4630  0.0  0.0   1652   424 tty3     Ss+  01:55   0:00 /sbin/mingetty
root      4635  0.0  0.0   1656   424 tty4     Ss+  01:55   0:00 /sbin/mingetty
root      4637  0.0  0.0   1656   448 tty5     Ss+  01:55   0:00 /sbin/mingetty
root      4638  0.0  0.0   1656   428 tty6     Ss+  01:55   0:00 /sbin/mingetty
root      4639  0.0  0.2  15448  2332 ?        Ss   01:55   0:00 /usr/sbin/gdm-b
root      4729  0.0  0.2  16168  2220 ?        S    01:55   0:00 /usr/sbin/gdm-b
root      4731  0.0  0.3  27392  3740 ?        Sl   01:55   0:00 /usr/libexec/gd
root      4732  0.0  0.4  10732  4848 tty7     Ss+  01:55   0:01 /usr/bin/Xorg :
root      4746  0.0  0.9  24444  9772 ?        SN   01:55   0:00 /usr/bin/python
gdm       4756  0.0  1.5  30488 15540 ?        Ss   01:55   0:00 /usr/libexec/gd
root      4758  0.0  0.1   2552  1104 ?        SN   01:55   0:00 /usr/libexec/ga
root      4763  0.0  0.2  10036  2936 ?        Ss   01:58   0:04 sshd: root@pts/
root      4765  0.0  0.1   4528  1396 pts/1    Ss   01:58   0:00 -bash
root      4797  0.0  0.2   9844  2836 ?        Ss   01:59   0:00 sshd: root@pts/
root      4799  0.0  0.1   4528  1408 pts/2    Ss+  01:59   0:00 -bash
root      5534  0.0  0.0   4216   900 pts/1    R+   04:04   0:00 ps aux --sort p

i dont think memory is sorted here .Please help.
# 2  
Old 05-03-2011
Not all keys are available for sorting, try
Code:
--sort sz


Last edited by Skrynesaver; 05-03-2011 at 08:00 AM.. Reason: Can't spell wurth a damn
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can't understand script output

New to korn shel1 and having an issue. The following is suppose to read the parameter values from files in a source directory and then pass them on to a log file in a different directory, The ArchiveTracker scripts is suppose to call the parameterreader script to exact the parameter values and... (3 Replies)
Discussion started by: bayouprophet
3 Replies

2. UNIX for Advanced & Expert Users

unable to understand the output of TRUSS command

Hi, I am trying to set ulimit for soft stack unlimited, but this is not taking effect, after tracing the ulimit -a unlimited command, the below output was generated, which i am unable to comprehend. Could any one help me with this? prcbap1-r10prod: truss -d ulimit -s unlimited Tue Dec 30... (2 Replies)
Discussion started by: NasirAbbasi
2 Replies

3. UNIX for Dummies Questions & Answers

Unable to understand RAID PARTITION

Hi i am studying about raid partion.i am not able to understand RAID level 5. below is excerpt taken from tutorial. RAID level 5 are they trying to say that the will be one extra disk which contain all the data. let says there are 4 disk. out of 4 , 3 disk are used for storing data and... (15 Replies)
Discussion started by: scriptor
15 Replies

4. UNIX for Dummies Questions & Answers

Unable to understand awk script.

Hi below is the samll awk script which i am not able to understand properly. here a bit confusion in 2nd line for me 1. why *\ is not used before . in second line as it was used in first line *\$*\. */ 2. why always \ is used in every first line 3. is there any specific meaning... (9 Replies)
Discussion started by: scriptor
9 Replies

5. UNIX for Dummies Questions & Answers

Not able to understand this output

I am hitting this command: dvlna021-(/cm/ims/dev/gds-scheduler/10/app/Software/active/Soft/conf)->ls -lrt gds_userenv_* This is the output lrwxrwxrwx 1 aimse was 65 Jul 31 12:56 gds_userenv_scheduler_2.ksh -> /cm/ims/dev/gds-scheduler/10/app/conf/gds_userenv_scheduler_2.ksh ... (2 Replies)
Discussion started by: Nsharma3006
2 Replies

6. Shell Programming and Scripting

Unable to understand if condition

Hi geeks, I am trying to understand below if statement. can someone please explain me meaning of if condition. if ] then echo -e "1" fi Thanks Please use CODE tags. (3 Replies)
Discussion started by: jagnikam
3 Replies

7. Shell Programming and Scripting

Need to understand the output of last command

root@desktop:~# last reboot | head -1 reboot system boot 2.6.31-17-generi Tue Jan 26 12:05 - 13:52 (01:46) What does the last two fields(12:05 - 13:52 (01:46)) of the output mean? (2 Replies)
Discussion started by: proactiveaditya
2 Replies

8. Solaris

Unable to understand disk layout and where are the free space

Hi I am unable to understand the disk layout of one of my disk attached to v240. This is newly installed system from jumpstart. I am unable to see the free space on backup slice 2 and there are 0 to 8 slices listed when I run format and print the disk info, also there is no reference of... (9 Replies)
Discussion started by: kumarmani
9 Replies

9. UNIX for Dummies Questions & Answers

unable to understand a awk code

i am not able to understand the following code for awk: $awk -F"|" '{ kount++} >END { for (desig in kount) > print desig,kount }' emp.list the input file i.e. emp.list is :: 3432| p.k.agrwal |g.m |sales 4566|g.l.sharma |director|production 3433|r shah | g.m | production... (1 Reply)
Discussion started by: streetfi8er
1 Replies

10. UNIX for Dummies Questions & Answers

Unable to understand associative nature of awk arrays

About associative nature of awk arrays i'm still confused, not able to understand yet how array element can be accessed based on a string, I got one example at gawk manual to illustrate associative nature of awk arrays, it goes here: Codeawk ' # Print list of word frequencies { for (i = 1;... (3 Replies)
Discussion started by: nervous
3 Replies
Login or Register to Ask a Question