- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swapinfo memory line
Operating System - HP-UX
1752785
Members
6002
Online
108789
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
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
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-28-2009 08:11 AM
07-28-2009 08:11 AM
Solution
Got it -- brain slipped a minor gear.
The algorithm I mentioned (90% of available) is correct and is used to configure *User* memory swap maximums.
The System-wide memory swap maximum, however, is all the memory which is reserveable at all. (Since the kernel is allowed to lock everything it can, etc.). Hence the total line reflects the *System* Memory Reservation class and is tied solely to the amount of physical memory which is present and given to the reservation management layer. pstat reports the system state, not the maximum available to the calling process [which, mind you could be different if products like WLM are in play].
Which in practice on v3 means all RAM that isn't PFDATs. PFDATs are about 5% -- hence the 95% seen here. The available line for the system will be lower and reflects the early boot usage (and then becomes lower still as User and Kernel start normal operation and reservation).
The algorithm I mentioned (90% of available) is correct and is used to configure *User* memory swap maximums.
The System-wide memory swap maximum, however, is all the memory which is reserveable at all. (Since the kernel is allowed to lock everything it can, etc.). Hence the total line reflects the *System* Memory Reservation class and is tied solely to the amount of physical memory which is present and given to the reservation management layer. pstat reports the system state, not the maximum available to the calling process [which, mind you could be different if products like WLM are in play].
Which in practice on v3 means all RAM that isn't PFDATs. PFDATs are about 5% -- hence the 95% seen here. The available line for the system will be lower and reflects the early boot usage (and then becomes lower still as User and Kernel start normal operation and reservation).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2009 11:15 AM
07-29-2009 11:15 AM
Re: swapinfo memory line
hi Don,
I'm still not 100% sure,but it seems you are right ;)
All RAM that isn't PFDATs works now as pseudo-swap...
/I suppose swapinfo uses the same pst_vminfo struct, .psv_swapmem_max ,etc. /
And only 4 info:
About reported pseudo-swap usage even when no physical swap has been allocated.
---------
HP-UX 11i Internals,ISBN : 0-13-032861-8 , 2004!, Chapter 7(Pseudo swap,Interpreting the Output of swapinfo):
"When a process starts, its swap space requirements are calculated and reserved. As long as there is device or file system swap space available to cover this reservation, all is fine. Once we exceed the physical swap limit, we begin to allocate from the pseudo-swap area.
...
If you run the swapinfo command and have pseudo-swap enabled, you will see a line that reports the amount of memory swap available and the amount currently in use. Don't be surprised if pseudo-swap usage is reported even when no physical swap has been allocated. Since pseudo-swap is letting us cheat the limit, the system must be able to adjust this cheat as the kernel takes dynamic pages out of circulation, effectively reducing the available memory count. Therefore, the system reports these kernel-allocated pages as allocated pseudo-swap pages. This effectively reduces the swap reservation limit available and keeps the system from overcommitting its memory resource."
I'm still not 100% sure,but it seems you are right ;)
All RAM that isn't PFDATs works now as pseudo-swap...
/I suppose swapinfo uses the same pst_vminfo struct, .psv_swapmem_max ,etc. /
And only 4 info:
About reported pseudo-swap usage even when no physical swap has been allocated.
---------
HP-UX 11i Internals,ISBN : 0-13-032861-8 , 2004!, Chapter 7(Pseudo swap,Interpreting the Output of swapinfo):
"When a process starts, its swap space requirements are calculated and reserved. As long as there is device or file system swap space available to cover this reservation, all is fine. Once we exceed the physical swap limit, we begin to allocate from the pseudo-swap area.
...
If you run the swapinfo command and have pseudo-swap enabled, you will see a line that reports the amount of memory swap available and the amount currently in use. Don't be surprised if pseudo-swap usage is reported even when no physical swap has been allocated. Since pseudo-swap is letting us cheat the limit, the system must be able to adjust this cheat as the kernel takes dynamic pages out of circulation, effectively reducing the available memory count. Therefore, the system reports these kernel-allocated pages as allocated pseudo-swap pages. This effectively reduces the swap reservation limit available and keeps the system from overcommitting its memory resource."
- « Previous
-
- 1
- 2
- Next »
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP