- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help understand swapping in HPUX
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
тАО03-14-2007 05:32 AM
тАО03-14-2007 05:32 AM
Help understand swapping in HPUX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2007 05:37 AM
тАО03-14-2007 05:37 AM
Re: Help understand swapping in HPUX
Can you post your "swapinfo -tam"?
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2007 05:41 AM
тАО03-14-2007 05:41 AM
Re: Help understand swapping in HPUX
In HP-UX, by default, so called "psuedo swap" is enabled. That is why you see the memory utilization in swapinfo
This is controlled by the kernel paramer swapmem_on. By default this is 1. In most cases, this can be disabled. Set this to 0, rebuild the kernel and boot using the kernel. You will not see the memory line in the swapinfo output anymore.
Also in HP-Ux, the processes "reserve" swap space even though it may never be used (unless you enable lazy swap allocation for the binary). And HP-UX swap management will always allocate (or reserve) space from the swap device with lowest priority number. That is probably you see why the new device swap is never used.
The new device swap will only be used if the primary one is completely used.
To rectify, you will need to change the priorities for the swap devices in /etc/fstab and reboot.
Hope this helps.
Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2007 05:43 AM
тАО03-14-2007 05:43 AM
Re: Help understand swapping in HPUX
SWAP FROM GLANCE:
Swap Util U UR R | 67% 67% 67
swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 12240 477 11763 4% 0 - 1 /dev/vg00/lvol2
dev 8712 0 8712 0% 0 - 0 /dev/vgswap/lvswap1
reserve - 12594 -12594
memory 11215 8438 2777 75%
total 32167 21509 10658 67% - 0 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2007 05:56 AM
тАО03-14-2007 05:56 AM
Re: Help understand swapping in HPUX
But it is probably not a very good idea since both the swap devices are not of the same size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2007 06:00 AM
тАО03-14-2007 06:00 AM
Re: Help understand swapping in HPUX
Unices differ in how they handle low-memory conditions. HP-UX has chosen to deal with this by enforcing the rule that all virtual allocations must reserve the equivalent amount of swap space. As a result, any physical memory used to back the virtual object should always be movable to swap if the system decides to page it out. This shows in your swapinfo output on the "reserve" line -- and you'll note the reservation is larger than either of your device swap areas [hence you are using some of each as far as reservable swap resources / potential User Virtual Address space].
Memory/pseudo-swap is an accounting trick where the kernel allows physical memory to account for the swap reservation as well. The primary use of this is on systems with working sets that fit into physical memory so that they don't need large amounts of swap -- it is also used when memory is locked (and is unpagable). Since you mentioned Oracle which is a big lockable memory client -- I expect your memory line being 75% used reflects locked memory.
As always, the VM whitepaper has more detail on these issues:
http://docs.hp.com/en/1218/mem_mgt.html