- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Should device swap all be equal size?
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
05-07-2001 10:11 AM
05-07-2001 10:11 AM
What happens if my 2 swap areas, both priority 1, are of two different sizes? I was taught that, since swap is interleaved you can only use up to the maximum of the smaller size. Is that right?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 10:23 AM
05-07-2001 10:23 AM
SolutionNo. Given two swap devices of equal priority but unequal size, interleaving will simply cease when the smaller space is exhausted. That is, the performance of your swap will decrease, but swap space can still be allocated.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 10:26 AM
05-07-2001 10:26 AM
Re: Should device swap all be equal size?
they can be of diffent sizes but of the same priority , and the size do matter and depend on the total memory size. Interleaving make the access better but then there are min size constraints.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 10:27 AM
05-07-2001 10:27 AM
Re: Should device swap all be equal size?
I assume the two swap areas are on different drives; is so, then you are correct in setting the priorities equal. However, if they are on the SAME physical drive the you should set the priorities to different values - in this case interleaving only hurts you.
Hope this helps, Clay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 11:26 AM
05-07-2001 11:26 AM
Re: Should device swap all be equal size?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 12:49 PM
05-07-2001 12:49 PM
Re: Should device swap all be equal size?
If you are saying that by having two swap partitions you have one primary swap and one secondary swap partion, then it may be necessary to have the secondary swap partition much larger than the primary partition - depending on the size of the system memory, and what is necessary to support your environment. Primary swap, if used, must reside within the first 2GB of the boot disk, thus limiting its size.
With more than one swap partition at the same priority, the partitions will interleave until the smallest partition is exhausted - as James stated. However it is important to understand that if the devices are on the same "jbod" type controller (such as internal drives on a "K"), this interleaving may cause more harm than good since it will cause the disk controller to switch disks between each swap-chunk written. If this is the case, you may want to specify a different priority for one of the partitions.
Also, if one of your partitions resides on a boot disk, such as the primary swap partition, and secondary swap resides somewhere else, you may want to look at increasing the priority of the secondary swap to "0" so that you O.S. disk(s) are not affected until absolutely necessary (primary swap is hard-coded at priority "1").
Hope this helps,
David Lieberman
Sr. UNIX Administrator
21st Century Insurance Group