- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX process VM size: discriminate private and sh...
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
08-27-2003 02:34 AM
08-27-2003 02:34 AM
HP-UX process VM size: discriminate private and shared memory...
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 02:46 AM
08-27-2003 02:46 AM
Re: HP-UX process VM size: discriminate private and shared memory...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 03:10 AM
08-27-2003 03:10 AM
Re: HP-UX process VM size: discriminate private and shared memory...
UNIX95= ps -u joan -o vsz,ruser,pid,args |sort -rn
This shows all processes owned by the real user joan, showing the virtual size in Kbytes in descending order.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 07:41 AM
08-27-2003 07:41 AM
Re: HP-UX process VM size: discriminate private and shared memory...
It divides the credited size of a region by the reference count. If three processes share a memory segment then they each get billed for one third of its size. You can run the program with either user ids or user names to look for.
The ps command is really naive about process size. It reports only the total size of text, data, and stack. It completely misses mmap, shared memory and shared libraries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 06:16 AM
08-28-2003 06:16 AM
Re: HP-UX process VM size: discriminate private and shared memory...
Your best bet would be the attached procsize.sh script which extracts itself to an executable procsize util.
With just ps, the resident set size includes the sharedmemory and libs. Once u extract procsize to ur system, run
# procsize -Rvn
This will count the shared memory only once for all the processes that are using the shmem.
Thanks,
Sundar.