- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Resident process memory Size (RSS) *WITHOUT* Glanc...
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
10-06-2004 07:40 PM
10-06-2004 07:40 PM
Resident process memory Size (RSS) *WITHOUT* Glance/gpm
I'm searching how to display, within a shell script, the Resident Size (RSS) of a particular process, WITHOUT using Glance/gpm.
I read a lot of thread about memory size, using UNIX95 and/or ps -l but i seems that they display only Virtual Size (VSS).
I think it is not possible, but let's read unix performance guru responses ...
guaranteed points !!!
Thanks in advance.
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 08:15 PM
10-06-2004 08:15 PM
Re: Resident process memory Size (RSS) *WITHOUT* Glance/gpm
regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 08:16 PM
10-06-2004 08:16 PM
Re: Resident process memory Size (RSS) *WITHOUT* Glance/gpm
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 08:20 PM
10-06-2004 08:20 PM
Re: Resident process memory Size (RSS) *WITHOUT* Glance/gpm
have a look at the "sz" metric (in pages) provided by ps(1). Also interesting is the "RES" column of top(1). However, there are differences how shared resources are handled... afaik ps(1) ommits them completely while top(1) includes the process' share of them (e.g. a fifth of a shmem segment if currently 5 processes are attached).
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 08:28 PM
10-06-2004 08:28 PM
Re: Resident process memory Size (RSS) *WITHOUT* Glance/gpm
As you explain it, I think that sz field (or vsz) of ps is nearest to what Olivier want. IMHO, shared memory must not be included in RSS.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 08:42 PM
10-06-2004 08:42 PM
Re: Resident process memory Size (RSS) *WITHOUT* Glance/gpm
You are right... just checked the source to be sure:
...
case FIELD_SZ: (void)printf("%*d", of->width,
(int)(ps->pst_dsize + ps->pst_tsize +
ps->pst_ssize)); break;
case FIELD_VSZ: (void)printf("%*d", of->width,
(int)((ps->pst_vdsize + ps->pst_vtsize +
ps->pst_vssize) * (NBPG / 1024)));
break;
...
So sz is RSS and vsz is VSS... *without* shared resources, just adding data, text and stack.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2004 01:59 PM
10-07-2004 01:59 PM
Re: Resident process memory Size (RSS) *WITHOUT* Glance/gpm
No snide remarks from John Payne, please.....