Re: Cpu utilization by a user (50 Views)
Reply
Trusted Contributor
Prasanth V Aravind
Posts: 257
Registered: ‎09-05-2007
Message 1 of 6 (50 Views)
Accepted Solution

Cpu utilization by a user



How i can find , Cpu utilization by a user. For example . the cpu utilization by oracle user.


Prasanth
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 2 of 6 (50 Views)

Re: Cpu utilization by a user

Do you have Glance available? If so, you can set up a filter on User Name, so that only the processes of a particular user will be displayed. Otherwise, you will need to look at the XPG4 options of the ps command.


Pete

Pete
Please use plain text.
Honored Contributor
spex
Posts: 1,367
Registered: ‎05-14-1996
Message 3 of 6 (50 Views)

Re: Cpu utilization by a user

$ UNIX95= ps -u oracle -o cpu= -o pid= -o args= | sort -nk1
Please use plain text.
Trusted Contributor
James George_1
Posts: 252
Registered: ‎02-04-2002
Message 4 of 6 (50 Views)

Re: Cpu utilization by a user

Hi

this will give you the top 10 users

# UNIX95= ps -e -o "vsz pcpu ruser pid stime time state args" | sort -rn | head -10

James
forum is for techies .....heaven is for those who are born again !!
Please use plain text.
Honored Contributor
Tim Nelson
Posts: 3,725
Registered: ‎06-01-2000
Message 5 of 6 (50 Views)

Re: Cpu utilization by a user

Another option in glance.

You can create process groups in the parm files. i.e. all processes with the user oracle will be grouped together and reported on in a whole under the process group pane.

There are examples in the /var/opt/perf/parm file.

Please use plain text.
Regular Advisor
ng_7
Posts: 177
Registered: ‎05-13-2007
Message 6 of 6 (50 Views)

Re: Cpu utilization by a user

I think 'top' command will also give you the information you need.

ng
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation