HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Memory required by a process (core and virtual)
Operating System - HP-UX
1836438
Members
2522
Online
110100
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
Go to solution
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
07-25-2001 04:50 AM
07-25-2001 04:50 AM
'top' man page reports these definitions:
(SIZE) Total size of the process in kilobytes. This includes text, data, and stack.
(RES) Resident size of the process in kilobytes. The resident size information is, at best, an approximate value.
These sentences are not so clear to me:
1) I don't understand if, for SIZE, total means core (loaded in RAM) plus virtual memory or only total portion of core memory owned by the process;
2) What resident means? Does it mean not swappable? Why is it an approximate value?
Are there other means to investigate process' memory needs (I 'd like to determine the total size of memory and swap space required by a process)?
(SIZE) Total size of the process in kilobytes. This includes text, data, and stack.
(RES) Resident size of the process in kilobytes. The resident size information is, at best, an approximate value.
These sentences are not so clear to me:
1) I don't understand if, for SIZE, total means core (loaded in RAM) plus virtual memory or only total portion of core memory owned by the process;
2) What resident means? Does it mean not swappable? Why is it an approximate value?
Are there other means to investigate process' memory needs (I 'd like to determine the total size of memory and swap space required by a process)?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 05:44 AM
07-25-2001 05:44 AM
Solution
Hi Andrea,
SIZE is the Virtual Size of the process i.e. the sum of the size of all its segments or the amount of memory it would require if it was all loaded into RAM.
The Resident Size is the amount of memory actually held in RAM.
As to why it is approximate, I guess because the Resident Size can vary rapidly as a process runs. Pages will get paged in and out depending on the needs of the process and others. A process can also allocate/deallocate memory as it runs.
The HP-UX Memory Management White Paper can be found on an 11.00 system in /usr/share/doc - mem_mgt.ps or .txt.
Glance has comprehensive facilities for monitoring process memory regions but it is a purchasable option although well worth it in my opinion.
Hope this helps,
John
SIZE is the Virtual Size of the process i.e. the sum of the size of all its segments or the amount of memory it would require if it was all loaded into RAM.
The Resident Size is the amount of memory actually held in RAM.
As to why it is approximate, I guess because the Resident Size can vary rapidly as a process runs. Pages will get paged in and out depending on the needs of the process and others. A process can also allocate/deallocate memory as it runs.
The HP-UX Memory Management White Paper can be found on an 11.00 system in /usr/share/doc - mem_mgt.ps or .txt.
Glance has comprehensive facilities for monitoring process memory regions but it is a purchasable option although well worth it in my opinion.
Hope this helps,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 07:18 AM
07-25-2001 07:18 AM
Re: Memory required by a process (core and virtual)
SIZE as reported by top is _only_ the virtual size of text+data+stack. Note that this is _not_ the total virtual size of a process (uareas for threads, shared libraries and some other stuff isn't counted in text+data+stack).
Resident size == Private physical pages for the process (translation: how much of the process is actually in memory that isn't shared with other processes). It's approximate for one thing because top gets this stuff from pstat, which is only updated about once a second... and doesn't exactly use a fine
grain algorithm.
The fun thing about this is that RES can easily be > SIZE, which is fairly counter-intuitive when you read that man page. Consider a process where all text, data, and stack pages are not swapped out (not a rare thing). RES then is SIZE + uareas + privately mapped shared memory segments + whatever else goes in there that I'm forgetting.
Moral of the story? Use top for coarse grained trends. Otherwise, as John pointed out, glance is much better.
Resident size == Private physical pages for the process (translation: how much of the process is actually in memory that isn't shared with other processes). It's approximate for one thing because top gets this stuff from pstat, which is only updated about once a second... and doesn't exactly use a fine
grain algorithm.
The fun thing about this is that RES can easily be > SIZE, which is fairly counter-intuitive when you read that man page. Consider a process where all text, data, and stack pages are not swapped out (not a rare thing). RES then is SIZE + uareas + privately mapped shared memory segments + whatever else goes in there that I'm forgetting.
Moral of the story? Use top for coarse grained trends. Otherwise, as John pointed out, glance is much better.
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