- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to Find CPU & Memory Utilization per package
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2011 09:22 PM
02-06-2011 09:22 PM
We have multiple cluster packages in one HPUNIX 11.31 host.
We need to find out CPU & Memory utilization per package.
I tried with extract command. but it is not clear.
Is it possible to find per package wise?
Thanks & Regards
Shameem
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2011 10:39 PM - last edited on 09-29-2011 02:02 PM by Kevin_Paul
02-06-2011 10:39 PM - last edited on 09-29-2011 02:02 PM by Kevin_Paul
Re: How to Find CPU & Memory Utilization per package
Hello Shameensoft,
What i have seen new in MCSG 11.20 , concept of assigning logical weights and priorities to the individual packages ,where max no of packages on a node & package with high priorities can be fixed, but this is again a logical concept.
I am not sure if MCSG has any such tool to
provide exact CPU & Memory consumption of the package.
You can look for PRM which is Process Resource Manager
http://h30499.www3.hp.com/t5/Workload-Resource-Management/PRM-Process-resource-manager/m-p/2618397#M494
Hope this helps.
Thanks & Regards
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2011 11:07 PM
02-06-2011 11:07 PM
Solution>> What i have seen new in MCSG 11.20 , concept of assigning logical weights and priorities to the individual packages ,where max no of packages on a node & package with high priorities can be fixed, but this is again a logical concept.
Package weights and priorities control how and when packages are allowed to startup/stop in relation to other packages - they have nothing to do with the CPU/Memory utilization of those packages.
>> You can look for PRM which is Process Resource Manager
PRM would allow you to _control_ CPU and memory utilization, not _report on it_ which is I think what Shameem asked for...
Shameem,
You are looking in the right place if you are looking at the extract command, as it is part of the Performance Agent software which you can use for this task.
However the Performance Agent has no concept of Serviceguard packages, so you need to figure out which processes in the process table are associated with each package...
Let's say I have 2 packages on my cluster called OLTP and MIS - both Oracle databases... to tell Performance Agent about these databases I have to edit the file /var/opt/perf/parm and add a record for each application that matches a reasonable specification for the processes in that package.
So for example, if both databases ran as seperate packages, and the processes ran as different user names (oraoltp and oramis), then I could simply add the following to the parm file:
application = Oracle_OLTP
user = oraoltp
application = Oracle_MIS
user = oramis
That's nice and easy... however if the database processes in both packages were running as the same user, I might have to get a bit cleverer and add some specs that define the processes in the process table... so something like:
application = Oracle_OLTP
file = ora_*_OLTP,oracleOLTP*
application = Oracle_MIS
file = ora_*_MIS,oracleMIS*
Would allow the Performance Agent to match on the Oracle server and shadow processes for those 2 instances...
Make sure the ensries you add to /var/opt/perf/parm are always _above_ the last entry in the file:
application = other_user_root
user = root
If that one's not last, you may have problems...
Once you are done editing the parm file, you need to restart the Performance Agent using:
ovpa restart all
And then you can see if your spec is working by looking in
glance -A
You should now see an entry in Glance for your application with a number of processes... use 'S' and the index number of your process to drill down and see that all the processes associated with your package are shown there.
Once that's working, you can leave it running for a bit and then use the extract command to get historical data too, but I think we'll leave that for another post.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2011 11:36 PM
02-06-2011 11:36 PM
Re: How to Find CPU & Memory Utilization per package
I was trying to say the same thing ,might be in different words that "priorities /weights" is just a logical concept nothing to do with real time values , i know it`s not exactly he asked for - )
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 12:54 AM
02-07-2011 12:54 AM
Re: How to Find CPU & Memory Utilization per package
What Duncan said is exactly correct.
We have separate database for each application.
Kindly resposne for my below query.
1 . Is application name related to process name which exists in ps -ef output? ps -ef output have process name with user information.
2. We have SAP & Oracle. do we need to configure in parm for both?
Thanks & Regards
Shameem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 01:00 AM
02-07-2011 01:00 AM
Re: How to Find CPU & Memory Utilization per package
The label specified in the:
application =
line can be anything you like, as long as it is one contiguous string - you can call your application "shameeems_app" if you want - it's just a label...
There are some examples for SAP in the file:
/opt/perf/examples/ovpaconfig/parm_apps
Have a look there...
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 03:00 AM
02-07-2011 03:00 AM
Re: How to Find CPU & Memory Utilization per package
Thanks & Regards
Shameem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 10:28 PM
02-07-2011 10:28 PM
Re: How to Find CPU & Memory Utilization per package
I have configured with user name for both oracle & SAP (unique user name) application separately.
I would like to configure SAP application with file option.
I found below options exists in /opt/perf/examples/ovpaconfig/parm_apps file.
file = dw.sap*, disp+work*
file = saptemu, sapgui, sappcd
file = saposcol*, rslgcoll, rslgsend, se.sap*, co.sap*
file = sapdba, ms.sap*, startsap, stopsap
file = gw*, gwwr, gwdr, appc_server, R3trans*, tp*, exp*, imp*
file = brbackup, brrecover, brarchive, brconnect, brtools, sapback
It is all related with SAP. but it is only few options. I hope lots of options are there for SAP.
My question :
is it enough to configure only these options to get the accurate performance details or needs to be added more or can we keep it with username configuration?
Kindly advise on this.
Regards
Shameem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 11:27 PM
02-07-2011 11:27 PM
Re: How to Find CPU & Memory Utilization per package
I can't answer that for you... you really need to look at the output of "ps -ef" on your system and compare against that list. On some SAP systems, the processes are neatly divided with the SIDadm user running SAP, and the oraSID user running Oracle, but I have seen other systems where this wasn't the case. So the real answer is "suck it and see".
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 12:28 AM
02-08-2011 12:28 AM
Re: How to Find CPU & Memory Utilization per package
The processes are neatly divided with the SIDadm user running SAP, and the oraSID user running Oracle in our hosts.
In this case, will it better to use with user name option?
Regards
Shameem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 12:37 AM
02-08-2011 12:37 AM
Re: How to Find CPU & Memory Utilization per package
Yes in this case, use the "user = " field.
HTH
Duncan
I am an HPE Employee
