HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to get "RES" of mem from unix95 ps
Operating System - HP-UX
1833324
Members
3122
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
08-26-2002 08:55 AM
08-26-2002 08:55 AM
how to get "RES" of mem from unix95 ps
Hi all,
I'm writing a script to poll process informations using unix95 ps, I know that
with UNIX95= ps -eo 'vsz pid ...' I can get the memory size of a process like the "SIZE" column in top, but is there a option with unix95 ps that I can get the "RES" column in top?
thanks,
Gary
I'm writing a script to poll process informations using unix95 ps, I know that
with UNIX95= ps -eo 'vsz pid ...' I can get the memory size of a process like the "SIZE" column in top, but is there a option with unix95 ps that I can get the "RES" column in top?
thanks,
Gary
- Tags:
- UNIX95
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 11:21 PM
08-26-2002 11:21 PM
Re: how to get "RES" of mem from unix95 ps
Hi
There is no option to give the res column.
However top has an undocumented -f file
option so if you need it do
top -d1 -n256 -f /tmp/toplis
And you have your machine in top format in file
/tmp/toplis where you can extract your data
steve Steel
There is no option to give the res column.
However top has an undocumented -f file
option so if you need it do
top -d1 -n256 -f /tmp/toplis
And you have your machine in top format in file
/tmp/toplis where you can extract your data
steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 11:35 PM
08-26-2002 11:35 PM
Re: how to get "RES" of mem from unix95 ps
Steve's answer is spot on. But remember, the RES total isnt 100% accurate. If you add up the RES column for all running processes then it may be much much larger than it should be (ie. glance/gpm will differ) thats because RES doesnt take into account shared memory areas, shared memory, semaphores etc etc. The only way to get really accurate memory sizes is to use glance or gpm and look at a processes memory regions individually to get the exact total.
Im from Palmerston North, New Zealand, but somehow ended up in London...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 11:45 PM
08-26-2002 11:45 PM
Re: how to get "RES" of mem from unix95 ps
Hi
For real neatness look at glance plus in adviser syntax
To run glance in the background against special adviser syntax,
logging data to a file, you must first create a file that contains the
appropriate adviser commands, then execute glance with stdout
redirected to a file. For example,
echo 'print gbl_stattime, " runq=", gbl_run_queue' >temp
glance -adviser_only -syntax ./temp -j 60 >outfile &
Then you can log data on almost anything
steve Steel
For real neatness look at glance plus in adviser syntax
To run glance in the background against special adviser syntax,
logging data to a file, you must first create a file that contains the
appropriate adviser commands, then execute glance with stdout
redirected to a file. For example,
echo 'print gbl_stattime, " runq=", gbl_run_queue' >temp
glance -adviser_only -syntax ./temp -j 60 >outfile &
Then you can log data on almost anything
steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP