Computing.Net > Forums > Unix > output of ps -ef command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

output of ps -ef command

Reply to Message Icon

Name: Br1an
Date: October 2, 2002 at 19:02:02 Pacific
OS: Unix
CPU/Ram: 256
Comment:

Hi,

when i do a :
ps -ef | grep username

then what is the meaning of each column ?
I wanna know the size of the memory that
a process X is using, its proc id (these
are the most important i'm concerned with,
but i'd to know abt other colums too)..
please have a look at this example:

%ps -ef | grep me

me 3583 2702 0 11:53:29 pts/131 0:00 /usr/bin/perl ./forkproc2.pl

please number the column from left to right,
start from 1 (since some programmers have
the habit to number things from 0 :).
say, column 1 is "me" , i.e:my username
column 2 is "3583" ,i.e : proc id ??
something like that...
thanks a lot everyone




Sponsored Link
Ads by Google

Response Number 1
Name: scott
Date: October 2, 2002 at 19:30:05 Pacific
Reply:

1:user id
2:Proccess id
3:parents proccess id
4:proccessor utilization(obsolete)
5:process starting time
6:terminal controlling proccess
7:cumulative execution time
8:full command

Thats basiclly it...
Scott


0

Response Number 2
Name: Br1an
Date: October 2, 2002 at 19:52:13 Pacific
Reply:

Hi Scott,
is 4 (proc utilization) the resource that
this process is using i.e amount of RAM ?


0

Response Number 3
Name: scott
Date: October 2, 2002 at 21:14:27 Pacific
Reply:

It is not related to memory resources being used. It is used for sharing CPU resources among processes. So 4 would be a value used to determine when the process is able to utilize the cpu. Think of it as a way for the cpu to prioritize tasks.

Scott


0

Response Number 4
Name: James Boothe
Date: October 3, 2002 at 07:11:35 Pacific
Reply:

Do "man ps" to see column definitions.

If you do "ps -efl", the 10th column is memory size (on HP-UX anyway). This is the number of memory pages, the default page size being 4KB. You can confirm the configured memory page size on an HP-UX box with:

grep physical /var/adm/syslog/syslog.log

And by the way, that 8th column is not really the "full command" but only the first part of the command (roughly 62 characters).


0

Response Number 5
Name: Dallas
Date: October 3, 2002 at 12:33:43 Pacific
Reply:

I concur with James... simply do a "man ps" command to adapt the output to your particular flavor of Unix. Reading through the man pages will also provide you with possible switches you could use to pull back only the info you want.

Linux ex:
ps -eo %mem,pid,user,args

These switches will only pull back memory, the pid, the user, and the arguments.

Hope this helps, Dallas.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: output of ps -ef command

How to kill processes older than x www.computing.net/answers/unix/how-to-kill-processes-older-than-x-/4238.html

how to properly use - ps -ef ??? www.computing.net/answers/unix/how-to-properly-use-ps-ef-/7280.html

Saving Output of Sed www.computing.net/answers/unix/saving-output-of-sed/7542.html