1828415 Members
3416 Online
109977 Solutions
New Discussion

User load average

 
Xavi Segura_1
Frequent Advisor

User load average

Hi gurus,

Is possible get the load average per user in HPUX11i??

Explanation:

I've a Rp8420 box (20 CPU) with SAP R3, in a operating system level have 3 users (root, oraSID and SIDadm) and I need to know the load average for SIDadm user. With "top" command get all process and users, and using "grep" I can extract the process for SIDadm users, but exist another command to do this or some script to make a SUM?

Thanks and sorry for my english.
4 REPLIES 4
Ludovic Derlyn
Esteemed Contributor

Re: User load average

hi,

it's possible to obtain this information also by glance

regards
L-DERLYN
Ludovic Derlyn
Esteemed Contributor

Re: User load average

hi again

sorry it's not an exact information because glance give a global information for users

regards
L-DERLYN
TwoProc
Honored Contributor

Re: User load average

With glance, you can filter what you're looking at down to only one user. Of course, it still will be showing the all of the processes of that user, not an aggregate. From your first posting it sounded like you wanted an aggregate figure for a user, but in your last posting it sounds like you want the detail for each process for a single user. Anyways, glance can give you this, you'll need to play around with the filter options for each screen.
We are the people our parents warned us about --Jimmy Buffett
Bill Hassell
Honored Contributor

Re: User load average

The term "load average" does have an HP-UX meaning but it is an overall measurement of the number of running processes and reported by the uptime command.

I suspect what you want is the CPU usage as a percentage. The following commands will do this for you:

UNIX95=1 ps -u root -o pcpu,user,pid,args
UNIX95=1 ps -u orasid -o pcpu,user,pid,args
UNIX95=1 ps -u sidadm -o pcpu,user,pid,args

Now the percentage used by root will almost always be zero. Occasionally a single process will consume a lot of CPU time but this is usually temporary or it is a process that may need a patch.


Bill Hassell, sysadmin