HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- procsize vs. kmeminfo
Operating System - HP-UX
1833758
Members
2814
Online
110063
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
04-19-2004 09:50 PM
04-19-2004 09:50 PM
procsize vs. kmeminfo
1. im trying to monitor my process real memory
im using 2 commands:
kmeminfo -user
procsize -fRn
the output is not the same, any one know what can be the reaon?
2. how can i tell how much swap each process is taking (without using kmeminfo -user)
thanx.
im using 2 commands:
kmeminfo -user
procsize -fRn
the output is not the same, any one know what can be the reaon?
2. how can i tell how much swap each process is taking (without using kmeminfo -user)
thanx.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:07 AM
04-20-2004 07:07 AM
Re: procsize vs. kmeminfo
Hello Maxim,
I checked on my system and they have always matched. The reason you might have a confusion is because some of the process may not show a text or data since that process may not be active and the kernel did have to take a page fault and load any text or data in memory hence the phy/res sizes will show up zero. What you would see is only the UAREA associated with that process. The pregion and uarea are not swapped out but the rest text data etc can be paged out and if the processes becomes active you can see the pages being swapped back in.
Take a known active process and compare the res/virtual sizes shown in procsize to the virtual and physical pages allocated to that segment in the kmeminfo output and you will see that they match.
Look carefully at the reported memory regions and remember procsize reports only total of each region. So if you several sharedmemory regions (as seen in kmeminfo for that proc) you will see the total of those regions in the procsize output under the SHMEM column.
I can provide examples if you need them.
Here are the commands I used.
./procsize -fRVn -p 1739
./kmeminfo -pid 1739
------------------
Again to get per process swap information you need tools like kmeminfo or p4 to get that kind of information. I am not aware of any other system provided tools to get that info.
You could choose to call into HP support if you wish more detailed analysis of any problem you are facing.
I checked on my system and they have always matched. The reason you might have a confusion is because some of the process may not show a text or data since that process may not be active and the kernel did have to take a page fault and load any text or data in memory hence the phy/res sizes will show up zero. What you would see is only the UAREA associated with that process. The pregion and uarea are not swapped out but the rest text data etc can be paged out and if the processes becomes active you can see the pages being swapped back in.
Take a known active process and compare the res/virtual sizes shown in procsize to the virtual and physical pages allocated to that segment in the kmeminfo output and you will see that they match.
Look carefully at the reported memory regions and remember procsize reports only total of each region. So if you several sharedmemory regions (as seen in kmeminfo for that proc) you will see the total of those regions in the procsize output under the SHMEM column.
I can provide examples if you need them.
Here are the commands I used.
./procsize -fRVn -p 1739
./kmeminfo -pid 1739
------------------
Again to get per process swap information you need tools like kmeminfo or p4 to get that kind of information. I am not aware of any other system provided tools to get that info.
You could choose to call into HP support if you wish more detailed analysis of any problem you are facing.
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