- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding and configuring device swap
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
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
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-2006 03:30 AM
03-14-2006 03:30 AM
Adding and configuring device swap
None of my coworkers and no one else I know has ever heard of changing the swap priority if you only have one device. Can someone help me and explain whether its true or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:35 AM
03-14-2006 03:35 AM
Re: Adding and configuring device swap
Help this help,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=941041
Regards
Pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:38 AM
03-14-2006 03:38 AM
Re: Adding and configuring device swap
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:44 AM
03-14-2006 03:44 AM
Re: Adding and configuring device swap
A few applications SAP for one refuse to start if they reserve at least 1X of memory. Obviously that is impossible so swap is used as a reservation mechanism. Pseudo swap helps but deivce swap is still needed. Since we are forced to use device swap it would be nice to know how to cinfigure it properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:45 AM
03-14-2006 03:45 AM
Re: Adding and configuring device swap
You would want to interleave swap devices *if* you were actually swapping, which you don't want to do in the first place.
However, you would not want to configure two device swap spaces on the *same* physical disk. As you indicated, this would cause disk head movement *if* you were actually swapping (which you don't want to do in the first place). If for some reason you were constrained to this configuration, then, yes, I would make the swap priority disproportional so that one swap device was used before the other; thereby reducing "head-banging".
Of course, if you ever actually begin to do I/O for swapping, you have a server that is beginning to experience performance problems!
Given the above, by adding memory you are reducing the chances of swapping anyway.
What you *do* want to do, in addition to adding more physical memory, is to enable "pseudoswap" by setting 'swapmem_on'=1 in your kernel. With this option set, the kernel counts 75% of your memory as available for process swap reservation. This does not actually consume physical memory. It is an "accounting kludge" only.
This means that you need less actual swap space configured -- certainly no where near what you would without the option turned on.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:49 AM
03-14-2006 03:49 AM
Re: Adding and configuring device swap
I should also say that your rule of 2x swap for memory is literally decades out of date. Moreover that should be 4x because of mirroring and every dab of swap should be mirrored.
For all of my servers with large amounts of memory, I typically configure about 1GB of primary swap (you must have some); I then add enough additional swap to come up to 25% of memory; enable pseudoswap; and monitor the system. You bought all of that memory so that you never swap. I just can't see the need for that much disk that is never going to be used.
Also, swap space should have nothing to do with dump space and dump unlike swap should never be mirrored.