- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding how much memory locked on HPUX 11.x
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
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
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-08-2001 10:33 PM
тАО08-08-2001 10:33 PM
Can anyone tell me what specific commands or application(s) can be used on HP-UX 11.x to determine:
a: The total amount of memory currently locked by all processes.
b: The amount of memory currently locked by an individual process.
This is in relation to memory that has been locked through the use of the plock(2) system call.
Cheers, Trevor
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2001 10:52 PM
тАО08-08-2001 10:52 PM
SolutionFrom glance you can get the total memory locked and memory locked by each process.
In glance the memory region metrics gives you the
memory locked.
The actual metric that is displayed here for each process is
proc_region_locked
but unfourtunately this includes the memory locked by system calls plock,datalock and shmctl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2001 11:08 PM
тАО08-08-2001 11:08 PM
Re: Finding how much memory locked on HPUX 11.x
I can see the memory locked by an individual process in the Memory Regions screen but I can't see how much memory is locked system wide. Is ths possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2001 11:25 PM
тАО08-08-2001 11:25 PM
Re: Finding how much memory locked on HPUX 11.x
I am not 100% sure but i think the
gbl_mem_cache + gbl_mem_user
or
gbl_mem_avail - gbl_mem_free
will give the memory locked during an interval.
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2001 02:43 AM
тАО08-09-2001 02:43 AM
Re: Finding how much memory locked on HPUX 11.x
Regards,
Trevor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2001 07:22 AM
тАО08-09-2001 07:22 AM
Re: Finding how much memory locked on HPUX 11.x
The command should all be on one line.
UNIX95= ps -e -o vsz=Kbytes -o pid,args=Command-Line | sort -rnk1
We were able to track a scopeaux memory leak using it. You can grep out processes that you want to know about.
Eileen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2001 02:10 AM
тАО08-10-2001 02:10 AM
Re: Finding how much memory locked on HPUX 11.x
I believe
dmesg is going to give U the amount of
Memory that is locked..
Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2001 08:36 AM
тАО08-10-2001 08:36 AM
Re: Finding how much memory locked on HPUX 11.x
Unfortunately, the metric PROC_REGION_LOCKED is currently unavailable on HP-UX 11.00. The only value
you will see in Glance is 'na'.
The command 'dmesg' can tell you the size of "locakble memory", but this will not tell you how much memory is actually locked.
I don't see a simple way to determine the total amount of locked memory on HP-UX 11.00, but if pseudo-swap in enabled then you can use the 'memory' line in the output of 'swapinfo -tam' as an indicator. If you take the value under "USED PCT" and multiply it by 3/4, your system is using AT LEAST that much locked memory.
If it is using more than that, I am not sure what that is.
You can find more information in the document
/usr/share/doc/mem_mgt.txt ,
under these 4 sections: Lockable Memory, Reservation of Physical Swap Space, Reservation of Pseudo-Swap Space, and Pseudo Swap and Lockable Memory
On HP-UX 10.20, you could use the metric PROC_REGION_LOCKED to generate a report.
For example, try saving the attached file as 'procreglock.syntax' in your current directory and then run
glance -adviser_only -syntax procreglock.syntax
Depending on your system, it may take a while before a single iteration is completed.
The output will contain the list of all process using locked memory, and for each such process, there will be a list of its locked memory regions. Keep in mind, however, that the sum total in the last column does not mean much, since:
1. some of those regions may be shared among processes
2. there may be other types of locked memory, such as buffer cache
HTH
Mladen